Line | |
---|
1 | namespace HeuristicLab.Problems.ProgramSynthesis { |
---|
2 | using HeuristicLab.Common;
|
---|
3 | using HeuristicLab.Core;
|
---|
4 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
5 |
|
---|
6 | [StorableClass]
|
---|
7 | public class PlushEntry : Item {
|
---|
8 | public PlushEntry() { }
|
---|
9 |
|
---|
10 | public PlushEntry(Expression instruction = null, int close = 0, bool silent = false) {
|
---|
11 | Instruction = instruction;
|
---|
12 | Close = close;
|
---|
13 | Silent = silent;
|
---|
14 | }
|
---|
15 |
|
---|
16 | [StorableConstructor]
|
---|
17 | public PlushEntry(bool deserializing) : base(deserializing) { }
|
---|
18 |
|
---|
19 | public PlushEntry(PlushEntry origin, Cloner cloner) : base(origin, cloner) {
|
---|
20 | Instruction = cloner.Clone(origin.Instruction);
|
---|
21 | Close = origin.Close;
|
---|
22 | Silent = origin.Silent;
|
---|
23 | }
|
---|
24 |
|
---|
25 | [Storable]
|
---|
26 | public Expression Instruction { get; set; }
|
---|
27 | [Storable]
|
---|
28 | public int Close { get; set; }
|
---|
29 | [Storable]
|
---|
30 | public bool Silent { get; set; }
|
---|
31 |
|
---|
32 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
33 | return new PlushEntry(this, cloner);
|
---|
34 | }
|
---|
35 | }
|
---|
36 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.