public class ReplayFitnessSetting extends java.lang.Object implements ReplaySettings<ReplayFitnessCost>
Constructor and Description |
---|
ReplayFitnessSetting() |
Modifier and Type | Method and Description |
---|---|
ReplayFitnessCost |
getInitialCost()
Returns the initial cost.
|
ReplayFitnessCost |
getMaximalCost()
Returns the maximal cost.
|
java.lang.Integer |
getWeight(ReplayAction action) |
boolean |
isAllowed(ReplayAction action)
Returns whether the given action type is allowed.
|
boolean |
isFinal(org.processmining.models.semantics.petrinet.Marking marking,
java.util.List<? extends java.lang.Object> trace)
Returns whether the trace has been replayed successfully.
|
void |
setAction(ReplayAction action,
boolean isEnabled) |
void |
setMaximalCost(java.lang.Integer i) |
void |
setWeight(ReplayAction action,
int weight) |
public java.lang.Integer getWeight(ReplayAction action)
public void setWeight(ReplayAction action, int weight)
public ReplayFitnessCost getInitialCost()
ReplaySettings
getInitialCost
in interface ReplaySettings<ReplayFitnessCost>
public ReplayFitnessCost getMaximalCost()
ReplaySettings
getMaximalCost
in interface ReplaySettings<ReplayFitnessCost>
public void setMaximalCost(java.lang.Integer i)
public void setAction(ReplayAction action, boolean isEnabled)
public boolean isAllowed(ReplayAction action)
ReplaySettings
isAllowed
in interface ReplaySettings<ReplayFitnessCost>
action
- The given action.public boolean isFinal(org.processmining.models.semantics.petrinet.Marking marking, java.util.List<? extends java.lang.Object> trace)
ReplaySettings
isFinal
in interface ReplaySettings<ReplayFitnessCost>
marking
- The current marking.trace
- The trace still to replay.