Free cookie consent management tool by TermsFeed Policy Generator

source: branches/Robocode/HeuristicLab.Problems.Robocode/Symbols/CodeNode.cs @ 9565

Last change on this file since 9565 was 9565, checked in by melkaref, 11 years ago

Robocode Plugin code without Mutation Operators

File size: 1.3 KB
RevLine 
[9565]1using HeuristicLab.Common;
2using HeuristicLab.Core;
3using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
4using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
5
6namespace HeuristicLab.Problems.Robocode
7{
8    [StorableClass]
9    public abstract class CodeNode : Symbol
10    {
11        public abstract string Prefix { get; set; }
12        public abstract string Suffix { get; set; }
13
14        [StorableConstructor]
15        protected CodeNode(bool deserializing) : base(deserializing) { }
16        protected CodeNode(CodeNode original, Cloner cloner)
17            : base(original, cloner) { }
18        protected CodeNode(string name, string description)
19            : base(name, description)
20        {
21        }
22
23        public override IDeepCloneable Clone(Cloner cloner)
24        {
25            throw new System.NotImplementedException();
26        }
27
28        public override int MaximumArity
29        {
30            get { throw new System.NotImplementedException(); }
31        }
32
33        public override int MinimumArity
34        {
35            get { throw new System.NotImplementedException(); }
36        }
37
38        public abstract string Interpret(ISymbolicExpressionTreeNode node, System.Collections.Generic.IEnumerable<ISymbolicExpressionTreeNode> children);
39    }
40}
Note: See TracBrowser for help on using the repository browser.