Class StochasticLabelledPetriNetSemanticsSimpleWeightsImpl
- java.lang.Object
-
- org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemanticsImpl
-
- org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemanticsSimpleWeightsImpl
-
- All Implemented Interfaces:
java.lang.Cloneable,StochasticLabelledPetriNetSemantics
public class StochasticLabelledPetriNetSemanticsSimpleWeightsImpl extends StochasticLabelledPetriNetSemanticsImpl
This semantics aims to avoid traversing all transitions. After construction, executing a transition will only consider the transitions whose enabledness may have changed. The only all-transition operation is BitSet.clear(). After construction, the semantics will only allocate local non-array variables.- Author:
- sander
-
-
Field Summary
-
Fields inherited from class org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemanticsImpl
enabledTransitions, numberOfEnabledTransitions
-
-
Constructor Summary
Constructors Constructor Description StochasticLabelledPetriNetSemanticsSimpleWeightsImpl(StochasticLabelledPetriNetSimpleWeights net)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StochasticLabelledPetriNetSemanticsSimpleWeightsImplclone()doublegetTotalWeightOfEnabledTransitions()doublegetTransitionWeight(int transition)-
Methods inherited from class org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSemanticsImpl
executeTransition, getEnabledTransitions, getNumberOfTransitions, getState, getTransitionLabel, isFinalState, isTransitionSilent, setInitialState, setState
-
-
-
-
Constructor Detail
-
StochasticLabelledPetriNetSemanticsSimpleWeightsImpl
public StochasticLabelledPetriNetSemanticsSimpleWeightsImpl(StochasticLabelledPetriNetSimpleWeights net)
-
-
Method Detail
-
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
-
clone
public StochasticLabelledPetriNetSemanticsSimpleWeightsImpl clone()
- Specified by:
clonein interfaceStochasticLabelledPetriNetSemantics- Overrides:
clonein classStochasticLabelledPetriNetSemanticsImpl
-
-