vanted.petrinetelements
Class InArc

java.lang.Object
  extended by vanted.petrinetelements.AbstractArc
      extended by vanted.petrinetelements.InArc

public class InArc
extends AbstractArc

The Class InArc for arc handling, where the arc is an ingoing arc of a transition.

Author:
Kevin Pucknat

Constructor Summary
InArc(Place place, Transition transition, org.graffiti.graph.Edge edge)
          Instantiates a new in arc.
 
Method Summary
 void addGuard(Guard guard)
          Adds the guard to the ingoing arc.
 java.util.List<Guard> getGuards()
          Gets the guards of the ingoing arc.
 boolean isInArc()
          Checks if the arc is an ingoing arc.
 void removeAllGuards()
          Removes the all guards from the ingoing arc.
 void removeGuard(Guard guard)
          Removes the guard from the ingoing arc.
 
Methods inherited from class vanted.petrinetelements.AbstractArc
addArcWeight, addDraw, addExpression, getArcWeight, getDraw, getEdge, getEdges, getExpressions, getID, getPlace, getTransition, hashCode, removeAllExpressions, removeArcWeight, removeDraw, removeExpression, setEdge, setPlace, setTransition
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InArc

public InArc(Place place,
             Transition transition,
             org.graffiti.graph.Edge edge)
Instantiates a new in arc.

Parameters:
place - the place
transition - the transition
edge - the edge
Method Detail

isInArc

public boolean isInArc()
Checks if the arc is an ingoing arc.

Returns:
true, if the arc is an ingoing arc

addGuard

public void addGuard(Guard guard)
Adds the guard to the ingoing arc.

Parameters:
guard - the guard

removeGuard

public void removeGuard(Guard guard)
Removes the guard from the ingoing arc.

Parameters:
guard - the guard

removeAllGuards

public void removeAllGuards()
Removes the all guards from the ingoing arc.


getGuards

public java.util.List<Guard> getGuards()
Gets the guards of the ingoing arc.

Returns:
the guards