Class StochasticLabelledPetriNetSemanticsAdjustmentWeightsImpl
- java.lang.Object
-
- org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemanticsImpl
-
- org.processmining.longdistancedependencies.StochasticLabelledPetriNetSemanticsAdjustmentWeightsImpl
-
- All Implemented Interfaces:
java.lang.Cloneable,org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemantics
public class StochasticLabelledPetriNetSemanticsAdjustmentWeightsImpl extends org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemanticsImpl
-
-
Constructor Summary
Constructors Constructor Description StochasticLabelledPetriNetSemanticsAdjustmentWeightsImpl(StochasticLabelledPetriNetAdjustmentWeights net)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidbyteToInt(byte[] source, int[] target, int sourceStart, int targetLength)voidexecuteTransition(int transition)Update the state to reflect execution of the transition.byte[]getState()doublegetTotalWeightOfEnabledTransitions()doublegetTransitionWeight(int transition)static voidintToByte(int[] source, byte[] target, int targetStart)voidsetInitialState()(Re)set the semantics to the initial state.voidsetState(byte[] newState)Set a copy of the given state.
-
-
-
Constructor Detail
-
StochasticLabelledPetriNetSemanticsAdjustmentWeightsImpl
public StochasticLabelledPetriNetSemanticsAdjustmentWeightsImpl(StochasticLabelledPetriNetAdjustmentWeights net)
-
-
Method Detail
-
setInitialState
public void setInitialState()
Description copied from interface:org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemantics(Re)set the semantics to the initial state.- Specified by:
setInitialStatein interfaceorg.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemantics- Overrides:
setInitialStatein classorg.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemanticsImpl
-
executeTransition
public void executeTransition(int transition)
Description copied from interface:org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemanticsUpdate the state to reflect execution of the transition.- Specified by:
executeTransitionin interfaceorg.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemantics- Overrides:
executeTransitionin classorg.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemanticsImpl
-
getTransitionWeight
public double getTransitionWeight(int transition)
- Returns:
- the weight of the transition. This might depend on the state.
-
getTotalWeightOfEnabledTransitions
public double getTotalWeightOfEnabledTransitions()
- Returns:
- the sum of the weight of the enabled transitions
-
getState
public byte[] getState()
- Specified by:
getStatein interfaceorg.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemantics- Overrides:
getStatein classorg.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemanticsImpl- Returns:
- a copy of the current state.
-
setState
public void setState(byte[] newState)
Description copied from interface:org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemanticsSet a copy of the given state.- Specified by:
setStatein interfaceorg.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemantics- Overrides:
setStatein classorg.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemanticsImpl
-
intToByte
public static void intToByte(int[] source, byte[] target, int targetStart)
-
byteToInt
public static void byteToInt(byte[] source, int[] target, int sourceStart, int targetLength)
-
-