Class StochasticLabelledPetriNetSimpleWeightsImpl
- java.lang.Object
-
- org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetImpl
-
- org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetSimpleWeightsImpl
-
- All Implemented Interfaces:
StochasticLabelledPetriNet,StochasticLabelledPetriNetEditable,StochasticLabelledPetriNetSimpleWeights,StochasticLabelledPetriNetSimpleWeightsEditable
public class StochasticLabelledPetriNetSimpleWeightsImpl extends StochasticLabelledPetriNetImpl implements StochasticLabelledPetriNetSimpleWeightsEditable
-
-
Constructor Summary
Constructors Constructor Description StochasticLabelledPetriNetSimpleWeightsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddTransition(java.lang.String label, double weight)Add a labelled transition.StochasticLabelledPetriNetSemanticsgetDefaultSemantics()doublegetTransitionWeight(int transition)voidsetTransitionWeight(int transition, double weight)-
Methods inherited from class org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNetImpl
addPlace, addPlaceToInitialMarking, addPlaceToInitialMarking, addPlaceTransitionArc, addPlaceTransitionArc, addTransition, 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, toString, 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, addTransition, addTransitionPlaceArc, addTransitionPlaceArc, makeTransitionSilent, setTransitionLabel
-
-
-
-
Method Detail
-
setTransitionWeight
public void setTransitionWeight(int transition, double weight)- Specified by:
setTransitionWeightin interfaceStochasticLabelledPetriNetSimpleWeightsEditable
-
addTransition
public int addTransition(java.lang.String label, double weight)Description copied from interface:StochasticLabelledPetriNetEditableAdd a labelled transition.- Specified by:
addTransitionin interfaceStochasticLabelledPetriNetEditable- Overrides:
addTransitionin classStochasticLabelledPetriNetImpl- Returns:
- the index of the transition.
-
getTransitionWeight
public double getTransitionWeight(int transition)
- Specified by:
getTransitionWeightin interfaceStochasticLabelledPetriNetSimpleWeights- Returns:
- the weight of the transition.
-
getDefaultSemantics
public StochasticLabelledPetriNetSemantics getDefaultSemantics()
- Specified by:
getDefaultSemanticsin interfaceStochasticLabelledPetriNet- 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.
-
-