Class PTArc
- 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
-
- com.netgrif.application.engine.petrinet.domain.arcs.PTArc
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
InhibitorArc
,ReadArc
,ResetArc
public abstract class PTArc extends Arc
Special arcs that can only lead from Place to Transition (thus PT).- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.netgrif.application.engine.petrinet.domain.arcs.Arc
breakpoints, destination, destinationId, multiplicity, reference, source, sourceId
-
Fields inherited from class com.netgrif.application.engine.petrinet.domain.PetriNetObject
_id
-
-
Constructor Summary
Constructors Constructor Description PTArc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setDestination(Node destination)
Sets destination of this arc.void
setSource(Node source)
Sets source of this arc.-
Methods inherited from class com.netgrif.application.engine.petrinet.domain.arcs.Arc
clone, execute, getDestination, getPlace, getSource, getTransition, isExecutable, rollbackExecution, 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
-
-
-
-
Method Detail
-
setSource
public void setSource(Node source)
Sets source of this arc.
-
setDestination
public void setDestination(Node destination)
Sets destination of this arc.- Overrides:
setDestination
in classArc
- Parameters:
destination
- Node object of class Transition- Throws:
java.lang.IllegalArgumentException
- if destination is of class Place
-
-