C
- The class implementing the cost structure. To be able to detect
which cost is better, it needs to implement Comparable.public class ReplayState<C extends ReplayCost & java.lang.Comparable<? super C>> extends java.lang.Object implements java.lang.Comparable<ReplayState<C>>
Constructor and Description |
---|
ReplayState(ReplayState<C> state,
org.processmining.models.semantics.petrinet.Marking marking,
org.processmining.models.graphbased.directed.petrinet.elements.Transition transition,
C cost,
java.util.List<? extends java.lang.Object> trace)
Constructs a new state, given its predecessor state, the new marking, the
transition leading from the predecessor state to the new state, the cost
to go from the predecessor state to the new state, and the trace still
left to replay from the new state.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ReplayState<C> state)
Compares this state to another state.
|
boolean |
equals(java.lang.Object o)
Returns whether o equals this state.
|
int |
hashCode()
Returns the hash code of this state.
|
java.lang.String |
toString()
String representation of this state.
|
public ReplayState(ReplayState<C> state, org.processmining.models.semantics.petrinet.Marking marking, org.processmining.models.graphbased.directed.petrinet.elements.Transition transition, C cost, java.util.List<? extends java.lang.Object> trace)
state
- The predecessor state of this state.marking
- The marking of this state.transition
- The transition leading from the predecessor state to this
state.cost
- The cost to go from the predecessor state to this state.trace
- the trace still left to replay from this state.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(ReplayState<C> state)
compareTo
in interface java.lang.Comparable<ReplayState<C extends ReplayCost & java.lang.Comparable<? super C>>>
public java.lang.String toString()
toString
in class java.lang.Object