Package arcElement

Class ArcEntering

  • All Implemented Interfaces:
    ArcInterface, junit.framework.Test

    public class ArcEntering
    extends Arc
    • Constructor Summary

      Constructors 
      Constructor Description
      ArcEntering​(Place place, int value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doTransition()
      Do the transition for the ArcEntering (add to the place value token)
      boolean isActive()
      Check if the ArcEntering is active (always true)
      boolean isPullable()
      Check if the ArcEntering is Pullable (always true)
      java.lang.String toString()  
      • Methods inherited from class junit.framework.TestCase

        assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName
      • Methods inherited from class java.lang.Object

        getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ArcEntering

        public ArcEntering​(Place place,
                           int value)
        Parameters:
        the - place link to ArcEntering and the value of this Arc Constructor for ArcEntering
    • Method Detail

      • doTransition

        public void doTransition()
        Do the transition for the ArcEntering (add to the place value token)
      • isActive

        public boolean isActive()
        Check if the ArcEntering is active (always true)
        Returns:
        true
      • isPullable

        public boolean isPullable()
        Check if the ArcEntering is Pullable (always true)
        Returns:
        true
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class junit.framework.TestCase
        Returns:
        a string that describe the ArcEntering