Class StochasticLabelledPetriNetAdjustmentWeightsImpl
- java.lang.Object
-
- org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetImpl
-
- org.processmining.longdistancedependencies.StochasticLabelledPetriNetAdjustmentWeightsImpl
-
- All Implemented Interfaces:
StochasticLabelledPetriNetAdjustmentWeights,StochasticLabelledPetriNetAdjustmentWeightsEditable,org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNet,org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetEditable
public class StochasticLabelledPetriNetAdjustmentWeightsImpl extends org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetImpl implements StochasticLabelledPetriNetAdjustmentWeightsEditable
-
-
Constructor Summary
Constructors Constructor Description StochasticLabelledPetriNetAdjustmentWeightsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddTransition(double baseWeight)Add a silent transition.intaddTransition(java.lang.String label, double baseWeight)Add a labelled transition.org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemanticsgetDefaultSemantics()doublegetTransitionAdjustmentWeight(int transitionOn, int transitionHistory)doublegetTransitionBaseWeight(int transition)doublegetTransitionWeight(int transition, int[] history)voidsetTransitionAdjustmentWeight(int transitionTarget, int transitionHistory, double weight)voidsetTransitionBaseWeight(int transition, double weight)java.lang.StringtoString()-
Methods inherited from class org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetImpl
addPlace, addPlaceToInitialMarking, addPlaceToInitialMarking, addPlaceTransitionArc, addPlaceTransitionArc, addTransitionPlaceArc, addTransitionPlaceArc, getInputPlaces, getInputTransitions, getNumberOfPlaces, getNumberOfTransitions, getOutputPlaces, getOutputTransitions, getTransitionLabel, isInInitialMarking, isTransitionSilent, makeTransitionSilent, setTransitionLabel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNet
getInputPlaces, getInputTransitions, getNumberOfPlaces, getNumberOfTransitions, getOutputPlaces, getOutputTransitions, getTransitionLabel, isInInitialMarking, isTransitionSilent
-
Methods inherited from interface org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetEditable
addPlace, addPlaceToInitialMarking, addPlaceToInitialMarking, addPlaceTransitionArc, addPlaceTransitionArc, addTransitionPlaceArc, addTransitionPlaceArc, makeTransitionSilent, setTransitionLabel
-
-
-
-
Method Detail
-
setTransitionBaseWeight
public void setTransitionBaseWeight(int transition, double weight)- Specified by:
setTransitionBaseWeightin interfaceStochasticLabelledPetriNetAdjustmentWeightsEditable
-
addTransition
public int addTransition(double baseWeight)
Description copied from interface:org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetEditableAdd a silent transition.- Specified by:
addTransitionin interfaceorg.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetEditable- Overrides:
addTransitionin classorg.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetImpl- Returns:
- the index of the transition.
-
addTransition
public int addTransition(java.lang.String label, double baseWeight)Description copied from interface:org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetEditableAdd a labelled transition.- Specified by:
addTransitionin interfaceorg.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetEditable- Overrides:
addTransitionin classorg.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetImpl- Returns:
- the index of the transition.
-
getTransitionWeight
public double getTransitionWeight(int transition, int[] history)- Specified by:
getTransitionWeightin interfaceStochasticLabelledPetriNetAdjustmentWeights- Returns:
- the weight of the transition.
-
setTransitionAdjustmentWeight
public void setTransitionAdjustmentWeight(int transitionTarget, int transitionHistory, double weight)- Specified by:
setTransitionAdjustmentWeightin interfaceStochasticLabelledPetriNetAdjustmentWeightsEditable
-
getDefaultSemantics
public org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemantics getDefaultSemantics()
- Specified by:
getDefaultSemanticsin interfaceorg.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNet- Returns:
- an object that allows for a standardised interpretation of the language of the net. The returned object might not be thread safe and the implementer must ensure a new, fresh, object is returned for each call.
-
getTransitionBaseWeight
public double getTransitionBaseWeight(int transition)
- Specified by:
getTransitionBaseWeightin interfaceStochasticLabelledPetriNetAdjustmentWeights
-
getTransitionAdjustmentWeight
public double getTransitionAdjustmentWeight(int transitionOn, int transitionHistory)- Specified by:
getTransitionAdjustmentWeightin interfaceStochasticLabelledPetriNetAdjustmentWeights
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-