示例#1
0
        public Chip(ChipName name, ChipType _type)
        {
            type = _type;
            Name = name;

            NumConnectLimit = LimitConnect.Get(name);
        }
示例#2
0
        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;
        }