Class Arc
- java.lang.Object
-
- com.netgrif.application.engine.petrinet.domain.Imported
-
- com.netgrif.application.engine.petrinet.domain.PetriNetObject
-
- com.netgrif.application.engine.petrinet.domain.arcs.Arc
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
PTArc
public class Arc extends PetriNetObject
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Position>
breakpoints
protected Node
destination
protected java.lang.String
destinationId
protected java.lang.Integer
multiplicity
protected Reference
reference
protected Node
source
protected java.lang.String
sourceId
-
Fields inherited from class com.netgrif.application.engine.petrinet.domain.PetriNetObject
_id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Arc
clone()
void
execute()
Node
getDestination()
Place
getPlace()
Node
getSource()
Transition
getTransition()
boolean
isExecutable()
void
rollbackExecution(java.lang.Integer tokensConsumed)
void
setDestination(Node destination)
void
setSource(Node source)
java.lang.String
toString()
-
Methods inherited from class com.netgrif.application.engine.petrinet.domain.PetriNetObject
getObjectId, getStringId, setObjectId
-
Methods inherited from class com.netgrif.application.engine.petrinet.domain.Imported
getImportId, setImportId
-
-
-
-
Field Detail
-
source
protected Node source
-
sourceId
protected java.lang.String sourceId
-
destination
protected Node destination
-
destinationId
protected java.lang.String destinationId
-
multiplicity
protected java.lang.Integer multiplicity
-
reference
protected Reference reference
-
breakpoints
protected java.util.List<Position> breakpoints
-
-
Method Detail
-
getPlace
public Place getPlace()
-
getTransition
public Transition getTransition()
-
getSource
public Node getSource()
-
setSource
public void setSource(Node source)
-
getDestination
public Node getDestination()
-
setDestination
public void setDestination(Node destination)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isExecutable
public boolean isExecutable()
-
execute
public void execute()
-
rollbackExecution
public void rollbackExecution(java.lang.Integer tokensConsumed)
-
clone
public Arc clone()
- Overrides:
clone
in classjava.lang.Object
-
-