Mercurial > hg > Database > Christie-sharp
view topology/TopologyDataGear.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 |
line wrap: on
line source
using System; using System.Collections.Generic; namespace Christie_net.topology { public class TopologyDataGear /*: Cloneable*/{ String nodeName; int totalNodeNum; //List<String> connectionList = new ArrayList<>(); List<String> connectionList = new List<String>(); public TopologyDataGear(){} public void setNodeName(String nodeName) { this.nodeName = nodeName; } public String getNodeName() { return nodeName; } public void setTotalNodeNum(int totalNodeNum) { this.totalNodeNum = totalNodeNum; } public int getTotalNodeNum() { return totalNodeNum; } public void addConnection(String connectionName) { this.connectionList.Add(connectionName); } public List<String> getConnectionList() { return connectionList; } /* public TopologyDataGear clone(){ TopologyDataGear cloneTopoDG = new TopologyDataGear(); try { cloneTopoDG = (TopologyDataGear)super.clone(); }catch (Exception e){ e.printStackTrace(); } return cloneTopoDG; } */ } }