Ejemplo n.º 1
0
        public NeighborEvent(cHaggleEvent e)
            : base(e)
        {
            if (e.type != HaggleEvent.NEIGHBOR_UPDATE)
            {
                throw new Exception("Not a neighbor update event");
            }

            neighbors = new Node.NodeList(e.data);
        }
Ejemplo n.º 2
0
        public NeighborEvent(cHaggleEvent e)
            : base(e)
        {
            if (e.type != HaggleEvent.NEIGHBOR_UPDATE)
                        {
                                throw new Exception("Not a neighbor update event");
                        }

                        neighbors = new Node.NodeList(e.data);
        }