Class MarkingEdge
java.lang.Object
org.tweetyproject.graphs.GeneralEdge<Marking>
org.tweetyproject.graphs.Edge<Marking>
org.tweetyproject.logics.petri.syntax.reachability_graph.MarkingEdge
- All Implemented Interfaces:
Comparable<MarkingEdge>
A class to describe markings of a Petri net.
A MarkingEdge is a directed edge between two markings indicating that the target marking
can be reached from the source marking by firing some transition
- Author:
- Benedikt Knopp
-
Constructor Summary
ConstructorDescriptionMarkingEdge
(Marking from, Marking to, Transition transition) Create a new instance -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(MarkingEdge that) Return the transitionvoid
setTransition
(Transition transition) Setter Transition
-
Constructor Details
-
MarkingEdge
Create a new instance- Parameters:
from
- the original markingto
- the resulting markingtransition
- the transition which, when fired, leads to this change of markings
-
-
Method Details
-
getTransition
-
setTransition
Setter Transition- Parameters:
transition
- the transition to set
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MarkingEdge>
-