Last change
on this file since 17021 was
15771,
checked in by bburlacu, 7 years ago
|
#2895: Add solution skeleton for PushGP with genealogy analysis.
|
File size:
551 bytes
|
Rev | Line | |
---|
[15771] | 1 | using HeuristicLab.Core; |
---|
| 2 | |
---|
| 3 | namespace HeuristicLab.Problems.ProgramSynthesis { |
---|
[14834] | 4 | public class PooledPushInterpreter : PushInterpreter {
|
---|
[14744] | 5 |
|
---|
| 6 | private readonly PushInterpreterPool pool;
|
---|
| 7 |
|
---|
[14777] | 8 | public PooledPushInterpreter(PushInterpreterPool pool, IReadOnlyPushConfiguration config, InterpreterPoolContainer poolContainer, IRandom random = null)
|
---|
| 9 | : base(config, random, poolContainer) {
|
---|
[14744] | 10 | this.pool = pool;
|
---|
| 11 | }
|
---|
| 12 |
|
---|
[14834] | 13 | public override void Dispose() {
|
---|
| 14 | base.Dispose();
|
---|
[15273] | 15 | ClearStacks();
|
---|
[14834] | 16 | pool.Free(this);
|
---|
[14744] | 17 | }
|
---|
| 18 | }
|
---|
| 19 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.