public interface MGArc extends Arc
Modifier and Type | Method and Description |
---|---|
void |
accept(MarkedGraphVisitor visitor)
For the visitor design pattern
|
void |
consume()
To consume a token into the place of the arc
|
MGVertex |
getHead()
To get the head (destination) of the arc.
|
MGVertex |
getTail()
To get the tail (source) of the arc.
|
int |
getTokenCount()
Gives the number of token in the arc.
|
boolean |
isActif()
Check whether the arc has a token available to fire the head vertex.
|
void |
produce()
To add a token into the place of the arc
|
accept, addArcListener, getHeadPort, getTailPort, removeArcListener
getName, setName
boolean isActif()
MGVertex getTail()
MGVertex getHead()
void consume()
void produce()
int getTokenCount()
void accept(MarkedGraphVisitor visitor)
visitor
-