Mercurial > hg > Database > Christie-sharp
annotate topology/manager/StartTopologyManager.cs @ 68:976d43003487
fix TopologyManager
author | KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 30 Jan 2022 18:02:09 +0900 |
parents | 1a42115e51bb |
children | 1169915705ab |
rev | line source |
---|---|
68
976d43003487
fix TopologyManager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
61
diff
changeset
|
1 using System; |
58
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 using Christie_net.codegear; |
59
c4f8630b7822
topology manager fix
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
58
diff
changeset
|
3 using Christie_net.topology.node; |
58
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 |
59
c4f8630b7822
topology manager fix
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
58
diff
changeset
|
5 namespace Christie_net.topology.manager { |
58
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 public class StartTopologyManager : StartCodeGear { |
59
c4f8630b7822
topology manager fix
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
58
diff
changeset
|
8 public StartTopologyManager(string[] args) : this(CreateCgm(new TopologyManagerConfig(args).localPort), new TopologyManagerConfig(args)){ |
58
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 } |
59
c4f8630b7822
topology manager fix
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
58
diff
changeset
|
10 public StartTopologyManager(TopologyManagerConfig topologyManagerConfig) : this(CreateCgm(topologyManagerConfig.localPort), topologyManagerConfig){ |
58
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
11 } |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
12 |
59
c4f8630b7822
topology manager fix
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
58
diff
changeset
|
13 public StartTopologyManager(CodeGearManager cgm, TopologyManagerConfig topologyManagerConfig) : base(cgm) { |
c4f8630b7822
topology manager fix
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
58
diff
changeset
|
14 cgm.Setup(new TopologyManager()); |
58
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
15 cgm.GetLocalDGM().Put("topologyManagerConfig", topologyManagerConfig); |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 } |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17 |
59
c4f8630b7822
topology manager fix
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
58
diff
changeset
|
18 public StartTopologyManager(TopologyManagerConfig conf, CodeGear startCG) :this(CreateCgm(conf.localPort), conf, startCG){ |
58
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
19 |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
20 } |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
21 |
59
c4f8630b7822
topology manager fix
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
58
diff
changeset
|
22 public StartTopologyManager(CodeGearManager cgm, TopologyManagerConfig conf, CodeGear startCG) : base(cgm) { |
c4f8630b7822
topology manager fix
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
58
diff
changeset
|
23 cgm.Setup(new TopologyManager()); |
58
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
24 cgm.Setup(new Start()); |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
25 cgm.GetLocalDGM().Put("startCG", startCG); |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
26 cgm.GetLocalDGM().Put("topologyNodeConfig", conf); |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
27 |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
28 } |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
29 |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
30 |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
31 |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
32 public static void Main(string[] args) { |
59
c4f8630b7822
topology manager fix
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
58
diff
changeset
|
33 TopologyManagerConfig topologyManagerConfig = new TopologyManagerConfig(args); |
58
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
34 new StartTopologyManager(topologyManagerConfig); |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
35 } |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
36 } |
0d2c956060d8
add topology manager
KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
37 } |