Class StochasticLabelledDataPetriNetImpl
- java.lang.Object
-
- org.processmining.stochasticlabelleddatapetrinet.StochasticLabelledDataPetriNetImpl
-
- All Implemented Interfaces:
StochasticLabelledDataPetriNet
- Direct Known Subclasses:
StochasticLabelledDataPetriNetWeightsDataDependent,StochasticLabelledDataPetriNetWeightsDataIndependent
public abstract class StochasticLabelledDataPetriNetImpl extends java.lang.Object implements StochasticLabelledDataPetriNet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceStochasticLabelledDataPetriNetImpl.SLPN-
Nested classes/interfaces inherited from interface org.processmining.stochasticlabelleddatapetrinet.StochasticLabelledDataPetriNet
StochasticLabelledDataPetriNet.VariableType
-
-
Constructor Summary
Constructors Constructor Description StochasticLabelledDataPetriNetImpl(StochasticLabelledDataPetriNet sldpn)Copy constructor from an existing SLDPN and the given data elements providing an immutable SLDPN.StochasticLabelledDataPetriNetImpl(StochasticLabelledDataPetriNetImpl.SLPN slpn, java.util.List<java.lang.String> variableLabels, java.util.List<StochasticLabelledDataPetriNet.VariableType> variableTypes, java.util.List<int[]> transitionReadVariables, java.util.List<int[]> transitionWriteVariables)StochasticLabelledDataPetriNetImpl(org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNet sldpn, java.util.List<java.lang.String> variableLabels, java.util.List<StochasticLabelledDataPetriNet.VariableType> variableTypes, java.util.List<int[]> readVariables, java.util.List<int[]> writeVariables)Copy constructor from an existing SLDPN and the given data elements providing an immutable SLDPN.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.processmining.datapetrinets.expression.GuardExpressiongetGuardExpression(int transition)int[]getInputPlaces(int transition)int[]getInputTransitions(int place)intgetNumberOfPlaces()intgetNumberOfTransitions()intgetNumberOfVariables()Data elementsint[]getOutputPlaces(int transition)int[]getOutputTransitions(int place)int[]getReadVariables(int transition)java.lang.StringgetTransitionLabel(int transition)java.lang.StringgetVariableLabel(int variable)StochasticLabelledDataPetriNet.VariableTypegetVariableType(int variable)int[]getWriteVariables(int transition)intisInInitialMarking(int place)booleanisTransitionSilent(int transition)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.processmining.stochasticlabelleddatapetrinet.StochasticLabelledDataPetriNet
getDefaultSemantics, getDefaultSerializer
-
-
-
-
Constructor Detail
-
StochasticLabelledDataPetriNetImpl
public StochasticLabelledDataPetriNetImpl(org.processmining.stochasticlabelledpetrinets.StochasticLabelledPetriNet sldpn, java.util.List<java.lang.String> variableLabels, java.util.List<StochasticLabelledDataPetriNet.VariableType> variableTypes, java.util.List<int[]> readVariables, java.util.List<int[]> writeVariables)Copy constructor from an existing SLDPN and the given data elements providing an immutable SLDPN.- Parameters:
slpn-variableLabels-variableTypes-transitionReadVariables-transitionWriteVariables-
-
StochasticLabelledDataPetriNetImpl
public StochasticLabelledDataPetriNetImpl(StochasticLabelledDataPetriNet sldpn)
Copy constructor from an existing SLDPN and the given data elements providing an immutable SLDPN.- Parameters:
slpn-variableLabels-variableTypes-transitionReadVariables-transitionWriteVariables-
-
StochasticLabelledDataPetriNetImpl
public StochasticLabelledDataPetriNetImpl(StochasticLabelledDataPetriNetImpl.SLPN slpn, java.util.List<java.lang.String> variableLabels, java.util.List<StochasticLabelledDataPetriNet.VariableType> variableTypes, java.util.List<int[]> transitionReadVariables, java.util.List<int[]> transitionWriteVariables)
-
-
Method Detail
-
getNumberOfTransitions
public int getNumberOfTransitions()
- Specified by:
getNumberOfTransitionsin interfaceStochasticLabelledDataPetriNet- Returns:
- the number of transitions. All transitions have indices starting at 0 and ending at the returned value (exclusive).
-
getNumberOfPlaces
public int getNumberOfPlaces()
- Specified by:
getNumberOfPlacesin interfaceStochasticLabelledDataPetriNet- Returns:
- the number of places. All places have indices starting at 0 and ending at the returned value (exclusive).
-
getTransitionLabel
public java.lang.String getTransitionLabel(int transition)
- Specified by:
getTransitionLabelin interfaceStochasticLabelledDataPetriNet- Parameters:
transition- the index of the transition- Returns:
- the label of the transition or NULL if there is not label assigned
-
isTransitionSilent
public boolean isTransitionSilent(int transition)
- Specified by:
isTransitionSilentin interfaceStochasticLabelledDataPetriNet- Parameters:
transition- the index of the transition- Returns:
- whether the transition is a silent transition
-
isInInitialMarking
public int isInInitialMarking(int place)
- Specified by:
isInInitialMarkingin interfaceStochasticLabelledDataPetriNet- Parameters:
place- the index of the place- Returns:
- the number of tokens on this place in the initial marking.
-
getInputPlaces
public int[] getInputPlaces(int transition)
- Specified by:
getInputPlacesin interfaceStochasticLabelledDataPetriNet- Parameters:
transition- the index of the transition- Returns:
- a list of places that have arcs to this transition. Transitions may appear multiple times. The caller must not change the returned array.
-
getOutputPlaces
public int[] getOutputPlaces(int transition)
- Specified by:
getOutputPlacesin interfaceStochasticLabelledDataPetriNet- Parameters:
transition- the index of the transition- Returns:
- a list of places that have arcs from this transition. Transitions may appear multiple times. The caller must not change the returned array.
-
getInputTransitions
public int[] getInputTransitions(int place)
- Specified by:
getInputTransitionsin interfaceStochasticLabelledDataPetriNet- Parameters:
place- the index of the place- Returns:
- a list of transitions that have arcs to this place. Places may appear multiple times. The caller must not change the returned array.
-
getOutputTransitions
public int[] getOutputTransitions(int place)
- Specified by:
getOutputTransitionsin interfaceStochasticLabelledDataPetriNet- Parameters:
place- the index of the place- Returns:
- a list of transitions that have arcs from this place. Places may appear multiple times. The caller must not change the returned array.
-
getNumberOfVariables
public int getNumberOfVariables()
Description copied from interface:StochasticLabelledDataPetriNetData elements- Specified by:
getNumberOfVariablesin interfaceStochasticLabelledDataPetriNet
-
getVariableLabel
public java.lang.String getVariableLabel(int variable)
- Specified by:
getVariableLabelin interfaceStochasticLabelledDataPetriNet
-
getVariableType
public StochasticLabelledDataPetriNet.VariableType getVariableType(int variable)
- Specified by:
getVariableTypein interfaceStochasticLabelledDataPetriNet
-
getReadVariables
public int[] getReadVariables(int transition)
- Specified by:
getReadVariablesin interfaceStochasticLabelledDataPetriNet
-
getWriteVariables
public int[] getWriteVariables(int transition)
- Specified by:
getWriteVariablesin interfaceStochasticLabelledDataPetriNet
-
getGuardExpression
public org.processmining.datapetrinets.expression.GuardExpression getGuardExpression(int transition)
- Specified by:
getGuardExpressionin interfaceStochasticLabelledDataPetriNet
-
-