Example #1
0
        public Arc(Nodes.Node fromNode, Nodes.Node toNode, Systems.PlaceTransitionNet housingSystem)
            : base()
        {
            SortNodes();

            if (!IsAllowed())
            {
                throw new System.Exception("Arc " + arcID + " not allowed!");
            }

            fromNode.AddArc(this);
            toNode.AddArc(this);
            arcID = housingSystem.AddElement(this);
        }
Example #2
0
 public Node(Systems.NetSystem housingSystem)
     : base(housingSystem)
 {
     if (observable || controllable)
         housingSystem.AddElement(this);
 }