Interface StochasticDeterministicFiniteAutomaton

    • Method Detail

      • getInitialState

        int getInitialState()
      • getNumberOfStates

        int getNumberOfStates()
        Returns:
        The highest index of any state in the automaton + 1. Does not necessarily count the number of states, but gives an upper bound.
      • containsEdge

        boolean containsEdge​(int stateFrom,
                             short activity)
      • addEdge

        int addEdge​(int source,
                    short activity,
                    double probability)
        Add an edge to the graph. If there is already an activity-edge outgoing of source, its target is replaced by the given target. The probability is always replaced.
        Parameters:
        source -
        activity -
        target -
        probability -
        Returns:
        The index of the target state (which may be newly created).
      • addEdge

        void addEdge​(int source,
                     short activity,
                     int target,
                     double probability)
        Adds an edge to the graph. Returns the (possibly new) target state. If the edge was already present, the probability is added to the existing edge.
        Parameters:
        source -
        activity -
        probability -
      • addState

        int addState()