Class PesArc


  • public class PesArc
    extends java.lang.Object
    Model of PesArc, used in PrimeEventStructures This PesArc holds the PesNode from (where the arc starts), and the PesNode to (where the arc ends)
    Author:
    Robin Bergenthum, Raphael Meyer
    • Constructor Summary

      Constructors 
      Constructor Description
      PesArc()
      Default constructor
      PesArc​(PesNode from, PesNode to)
      Constructor with nodes
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)
      Returns whether these parameter values are equal to the given parameter values.
      PesNode getFrom()  
      PesNode getTo()  
      int hashCode()
      Returns the hash code for these parameters.
      void setFrom​(PesNode from)  
      void setTo​(PesNode to)  
      java.lang.String toString()
      toString of PesArc
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PesArc

        public PesArc()
        Default constructor
      • PesArc

        public PesArc​(PesNode from,
                      PesNode to)
        Constructor with nodes
        Parameters:
        from - the node where the arc begins
        to - the node where the arc end
    • Method Detail

      • getFrom

        public PesNode getFrom()
        Returns:
        the node, where the arcs starts
      • setFrom

        public void setFrom​(PesNode from)
        Parameters:
        from - set the node from
      • getTo

        public PesNode getTo()
        Returns:
        the node, where the arcs end
      • setTo

        public void setTo​(PesNode to)
        Parameters:
        to - set the node to
      • toString

        public java.lang.String toString()
        toString of PesArc
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Returns whether these parameter values are equal to the given parameter values.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        object - a given object to check if it is instanceof PesArc
        Returns:
        Whether these parameter values are equal to the given parameter values.
      • hashCode

        public int hashCode()
        Returns the hash code for these parameters.
        Overrides:
        hashCode in class java.lang.Object