Mercurial > hg > Papers > 2022 > maeshiro-thesis
view paper/src/TopologyManagerConfig.cs @ 1:37483e2cff1c
Incomplete
author | KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 31 Jan 2022 12:07:40 +0900 |
parents | |
children |
line wrap: on
line source
using System; using Christie_net.daemon; namespace Christie_net.topology.manager { public class TopologyManagerConfig : Config{ public Boolean showTime = false; public String confFilePath; public Boolean dynamic = false; public TopologyType type = TopologyType.Tree; public int hasChild = 2; public TopologyManagerConfig(String[] args) : base(args) { for (int i = 0; i < args.Length; i++) { if ("--confFile".Equals(args[i])) { confFilePath = args[++i]; } else if ("--topology".Equals(args[i])) { String typeName = args[++i]; if ("tree".Equals(typeName)) { type = TopologyType.Tree; } } else if ("--child".Equals(args[i])) { hasChild = int.Parse(args[++i]); } else if ("--showTime".Equals(args[i])) { showTime = true; } } if (confFilePath == null) dynamic = true; } } }