public Chip(ChipName name, ChipType _type) { type = _type; Name = name; NumConnectLimit = LimitConnect.Get(name); }
public Circuit() { tree = new GraphTree(); // rootはCPUで固定 var temp = new Node(ChipFactory.GetInstance(ChipName.CPU)); // nextをnullでうめる temp.next.Clear(); for (int i = 0; i < LimitConnect.Get(ChipName.CPU); i++) { temp.next.Add(null); } tree.root = temp; tree.now = temp; }