Package main

Class Network


  • public class Network
    extends java.lang.Object
    • Field Detail

      • ArcOutering

        public static int ArcOutering
      • ArcCleaner

        public static int ArcCleaner
      • ArcZero

        public static int ArcZero
      • ArcEntering

        public static int ArcEntering
    • Constructor Detail

      • Network

        public Network()
    • Method Detail

      • addTransition

        public void addTransition()
        create a new transition
      • addArc

        public void addArc​(Transition transition,
                           Place place,
                           int value,
                           int identifier)
                    throws Network.UndefinedIdentifier
        create a new arc
        Parameters:
        transtion - the transition link to this arc
        place - the place link to this arc
        the - value of this arc
        identifier - the integer that correspond to the type of arc (define as static)
        Throws:
        Network.UndefinedIdentifier
      • deleteArc

        public void deleteArc​(Arc a)
        delete an arc
      • deletePlace

        public void deletePlace​(Place place)
        delete a place an the arcs link to it
      • deleteTransition

        public void deleteTransition​(Transition transition)
        delete a transition
      • fire

        public void fire​(Transition transition)
        fire the transition selected
      • toString

        public java.lang.String toString()
        string representation of a network
        Overrides:
        toString in class java.lang.Object
      • getPlaceList

        public java.util.List<Place> getPlaceList()
      • getListTransition

        public java.util.List<Transition> getListTransition()