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>breakpointsprotected Nodedestinationprotected java.lang.StringdestinationIdprotected java.lang.Integermultiplicityprotected Referencereferenceprotected Nodesourceprotected java.lang.StringsourceId-
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 Arcclone()voidexecute()NodegetDestination()PlacegetPlace()NodegetSource()TransitiongetTransition()booleanisExecutable()voidrollbackExecution(java.lang.Integer tokensConsumed)voidsetDestination(Node destination)voidsetSource(Node source)java.lang.StringtoString()-
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:
toStringin classjava.lang.Object
-
isExecutable
public boolean isExecutable()
-
execute
public void execute()
-
rollbackExecution
public void rollbackExecution(java.lang.Integer tokensConsumed)
-
clone
public Arc clone()
- Overrides:
clonein classjava.lang.Object
-
-