|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvanted.petrinetelements.NodePN
vanted.petrinetelements.Place
public class Place
The Class Place for place handling.
Constructor Summary | |
---|---|
Place(org.graffiti.graph.Node node)
Instantiates a new place. |
Method Summary | |
---|---|
void |
addCapacity(Capacity capacity)
Adds the capacity of a place (if the place is a logical place then the capacities of the associated places are also added). |
void |
addInArc(OutArc arc)
Adds the in arc of a place. |
void |
addNode(org.graffiti.graph.Node node)
Adds the node and the attributes: Draw, IgnoreNode and Reachability. |
void |
addOutArc(InArc arc)
Adds the out arc of a place. |
void |
addToken(AbstractToken token)
Adds the token of a place (if the place is a logical place then this token of the associated places is also added). |
void |
clearTokens()
Clears all tokens (discrete, continuous) of a place (if the place is a logical place then all tokens of the associated places are also cleared). |
java.util.List<AbstractArc> |
getArcs()
Gets the arcs of a place. |
Capacity |
getCapacity()
Gets the capacity of a place. |
java.util.List<OutArc> |
getInArcs()
Gets the in arcs of a place. |
java.util.List<InArc> |
getOutArcs()
Gets the out arcs of a place. |
java.util.List<AbstractToken> |
getTokens()
Gets the tokens of a place. |
java.util.List<TokenContinuous> |
getTokensContinuous()
Gets the continuous tokens of a place. |
java.util.List<AbstractToken> |
getTokensDiscrete()
Gets the discrete tokens of a place. |
static boolean |
isPlace(org.graffiti.graph.Node nd)
Checks if the node is a place. |
void |
removeAllToken()
Removes the all token of a place (if the place is a logical place then all tokens of the associated places are also removed). |
void |
removeCapacity()
Removes the capacity of a place (if the place is a logical place then the capacities of the associated places are also removed). |
boolean |
removeNode(org.graffiti.graph.Node node)
Removes the node and the attributes: Draw, IgnoreNode and Reachability. |
void |
removeToken(AbstractToken token)
Removes the token of a place (if the place is a logical place then this token of the associated places is also removed). |
void |
setInArcs(java.util.List<InArc> inArcs)
Sets the in arcs of a place. |
void |
setOutArcs(java.util.List<OutArc> outArcs)
Sets the out arcs of a place. |
Methods inherited from class vanted.petrinetelements.NodePN |
---|
addDraw, addIdentity, addIgnoreNode, addReachability, getDraw, getID, getIdentity, getIgnoreNode, getName, getNode, getNodes, getReachability, removeDraw, removeIdentity, removeIgnoreNode, removeReachability, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Place(org.graffiti.graph.Node node)
node
- the nodeMethod Detail |
---|
public void addNode(org.graffiti.graph.Node node)
NodePN
addNode
in class NodePN
node
- the nodepublic boolean removeNode(org.graffiti.graph.Node node)
NodePN
removeNode
in class NodePN
node
- the node
public void addToken(AbstractToken token)
token
- the tokenpublic void removeToken(AbstractToken token)
token
- the tokenpublic void removeAllToken()
public java.util.List<AbstractToken> getTokens()
public java.util.List<AbstractToken> getTokensDiscrete()
public java.util.List<TokenContinuous> getTokensContinuous()
public static boolean isPlace(org.graffiti.graph.Node nd)
nd
- the nd
public void addOutArc(InArc arc)
arc
- the arcpublic void setInArcs(java.util.List<InArc> inArcs)
inArcs
- the new in arcspublic java.util.List<InArc> getOutArcs()
public void addInArc(OutArc arc)
arc
- the arcpublic void setOutArcs(java.util.List<OutArc> outArcs)
outArcs
- the new out arcspublic java.util.List<OutArc> getInArcs()
public java.util.List<AbstractArc> getArcs()
public void addCapacity(Capacity capacity)
capacity
- the capacitypublic void removeCapacity()
public Capacity getCapacity()
public void clearTokens()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |