Line | |
---|
1 | using HeuristicLab.Common;
|
---|
2 | using System;
|
---|
3 | using System.Threading;
|
---|
4 |
|
---|
5 | namespace HeuristicLab.Core.Networks {
|
---|
6 | [Item("MyProgrammableNetwork", "A programmable network.")]
|
---|
7 | public class MyProgrammableNetwork : ProgrammableNetwork.CompiledProgrammableNetwork {
|
---|
8 | protected MyProgrammableNetwork(MyProgrammableNetwork original, Cloner cloner) : base(original, cloner) { }
|
---|
9 | public MyProgrammableNetwork(ProgrammableNetwork context) : base(context) { }
|
---|
10 |
|
---|
11 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
12 | return new MyProgrammableNetwork(this, cloner);
|
---|
13 | }
|
---|
14 |
|
---|
15 | protected override void MessagePort_MessageReceived(object sender, EventArgs<IMessage, CancellationToken> e) {
|
---|
16 | // implement processing of messages here
|
---|
17 | }
|
---|
18 | }
|
---|
19 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.