Class MarkingEdge
java.lang.Object
org.tweetyproject.graphs.GeneralEdge<T>
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) void
setTransition
(Transition 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
- Returns:
- the transition
-
setTransition
- Parameters:
transition
- the transition to set
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MarkingEdge>
-