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