Mercurial > hg > Database > Christie
view src/test/java/christie/example/PrefixTree/PrefixTreeNodeConfig.java @ 243:9d0b932ad84f
tweak
author | ichikitakahiro <e165713@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 23 Jan 2020 02:10:00 +0900 |
parents | 6cbf93a11d24 |
children |
line wrap: on
line source
package christie.example.PrefixTree; import christie.topology.node.TopologyNodeConfig; public class PrefixTreeNodeConfig extends TopologyNodeConfig { int totalNodeNum; int i; public PrefixTreeNodeConfig(String[] args) { super(args); for (int j = 0; j< args.length; j++) { if ("--totalNodeNum".equals(args[j])) { totalNodeNum = Integer.parseInt(args[++j]); }else if ("--i".equals(args[j])) { i = Integer.parseInt(args[++j]); } } } public int getTotalNodeNum() { return totalNodeNum; } public int getI() { return i; } }