Last change
on this file since 13067 was
12945,
checked in by jkarder, 9 years ago
|
#2205: disabled compiler warning cs0436 for all code resources
|
File size:
1.4 KB
|
Line | |
---|
1 | #pragma warning disable 436
|
---|
2 |
|
---|
3 | using HeuristicLab.Common;
|
---|
4 | using HeuristicLab.Core;
|
---|
5 | using HeuristicLab.Core.Networks;
|
---|
6 | using System;
|
---|
7 | using System.Threading;
|
---|
8 |
|
---|
9 | #region How to use the variable store?
|
---|
10 | // use "Vars" to access variables in the variable store (e.g. Vars.x = 5)
|
---|
11 | // use "Vars[string]" to access variables using runtime strings (e.g. Vars["x"] = 5)
|
---|
12 | // use "Vars.Contains(string)" to check if a variable exists
|
---|
13 | // use "Vars.Clear()" to remove all variables
|
---|
14 | // use "foreach (KeyValuePair<string, object> v in Vars) { ... }" to iterate over all variables
|
---|
15 | // use "Variables" to work with IEnumerable<T> extension methods on the variable store
|
---|
16 | #endregion
|
---|
17 |
|
---|
18 | namespace HeuristicLab.Networks.Programmable {
|
---|
19 | [Item("MyProgrammableNetwork", "A programmable network.")]
|
---|
20 | public class MyProgrammableNetwork : ProgrammableNetwork.CompiledProgrammableNetwork {
|
---|
21 | protected MyProgrammableNetwork(MyProgrammableNetwork original, Cloner cloner) : base(original, cloner) { }
|
---|
22 | public MyProgrammableNetwork(ProgrammableNetwork context) : base(context) { }
|
---|
23 |
|
---|
24 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
25 | return new MyProgrammableNetwork(this, cloner);
|
---|
26 | }
|
---|
27 |
|
---|
28 | public override void Initialize() {
|
---|
29 | base.Initialize();
|
---|
30 | // implement initialization here
|
---|
31 | }
|
---|
32 |
|
---|
33 | protected override void ProcessMessage(IMessage message, IMessagePort port, CancellationToken token) {
|
---|
34 | // implement processing of messages here
|
---|
35 | }
|
---|
36 | }
|
---|
37 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.