Exemplo n.º 1
0
        private void OnLoad()
        {
            // TODO : Implémenter l'attribution automatique des ports
            DnaNode dnaNode = new DnaNode("Node", "127.0.0.1", 3002);

            dnaNode.Connect(TxtIp, 3000);
            VmLogBox.LogBox += DateTime.Now.ToLongTimeString() + " - Node démarré, en attente..." + Environment.NewLine;
        }
Exemplo n.º 2
0
        public DnaNode[] children = new DnaNode[5];// 0 ->A     1->G    2->T    3->A    4->'0'

        public DnaNode(char letter, DnaNode parent)
        {
            this.letter = letter;
            this.parent = parent;
            if (letter != '$')
            {
                this.number = ++nodesCount;
            }
        }