Last change
on this file since 18242 was
15334,
checked in by pkimmesw, 7 years ago
|
#2665 Testet Problems, Testet error functions, Small fixes, Created HL files
|
File size:
1.1 KB
|
Line | |
---|
1 | namespace HeuristicLab.Problems.ProgramSynthesis.Push.Encoding {
|
---|
2 | using HeuristicLab.Common;
|
---|
3 | using HeuristicLab.Core;
|
---|
4 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
5 | using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
|
---|
6 |
|
---|
7 | [StorableClass]
|
---|
8 | public class PlushEntry : Item {
|
---|
9 | public PlushEntry() { }
|
---|
10 |
|
---|
11 | public PlushEntry(Expression instruction = null, int close = 0, bool silent = false) {
|
---|
12 | Instruction = instruction;
|
---|
13 | Close = close;
|
---|
14 | Silent = silent;
|
---|
15 | }
|
---|
16 |
|
---|
17 | [StorableConstructor]
|
---|
18 | public PlushEntry(bool deserializing) : base(deserializing) { }
|
---|
19 |
|
---|
20 | public PlushEntry(PlushEntry origin, Cloner cloner) : base(origin, cloner) {
|
---|
21 | Instruction = cloner.Clone(origin.Instruction);
|
---|
22 | Close = origin.Close;
|
---|
23 | Silent = origin.Silent;
|
---|
24 | }
|
---|
25 |
|
---|
26 | [Storable]
|
---|
27 | public Expression Instruction { get; set; }
|
---|
28 | [Storable]
|
---|
29 | public int Close { get; set; }
|
---|
30 | [Storable]
|
---|
31 | public bool Silent { get; set; }
|
---|
32 |
|
---|
33 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
34 | return new PlushEntry(this, cloner);
|
---|
35 | }
|
---|
36 | }
|
---|
37 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.