Interface StochasticLabelledDataPetriNetSemantics

    • Method Detail

      • setInitialState

        void setInitialState​(DataState initialDataState)
        (Re)set the semantics to the initial state
      • executeTransition

        void executeTransition​(int transition,
                               DataState dataEffect)
        Update the state to reflect execution of the transition.
        Parameters:
        transition - index fired
        dataEffect - containing values for all (and only those) written variables
      • getEnabledTransitions

        java.util.BitSet getEnabledTransitions()
        Parameters:
        state -
        Returns:
        an array of indices of the transitions that are enabled. May be changed and stored by the caller.
      • isFinalState

        boolean isFinalState()
        Returns:
        whether the current state is a final state.
      • getState

        byte[] getState()
        Returns:
        a copy of the current state.
      • setState

        void setState​(byte[] state)
        Set a copy of the given state.
        Parameters:
        state -
      • getDataState

        DataState getDataState()
        Returns:
        a copy of the current data state
      • setDataState

        void setDataState​(DataState dataState)
        Set the data state to a copy of the supplied state
        Parameters:
        dataState -
      • getTransitionWeight

        double getTransitionWeight​(int transition)
        Parameters:
        transition -
        Returns:
        the weight of the transition. This might depend on the state.
      • getTotalWeightOfEnabledTransitions

        double getTotalWeightOfEnabledTransitions()
        Parameters:
        enabledTransitions -
        Returns:
        the sum of the weight of the enabled transitions
      • isTransitionSilent

        boolean isTransitionSilent​(int transition)
        Parameters:
        transition - index
        Returns:
        whether the transition is observable (false) or silent (true)
      • getTransitionLabel

        java.lang.String getTransitionLabel​(int transition)
      • getNumberOfVariables

        int getNumberOfVariables()
      • getVariableLabel

        java.lang.String getVariableLabel​(int variable)