Package owl.automaton

Class AutomatonUtil


  • public final class AutomatonUtil
    extends Object
    • Method Detail

      • forEachNonTransientEdge

        public static <S> void forEachNonTransientEdge​(Automaton<S,​?> automaton,
                                                       BiConsumer<S,​Edge<S>> action)
      • getIncompleteStates

        public static <S> Map<S,​BddSet> getIncompleteStates​(Automaton<S,​?> automaton)
        Determines all states which are incomplete, i.e. there are valuations for which the state has no successor.
        Parameters:
        automaton - The automaton.
        Returns:
        The set of incomplete states and the missing valuations.
      • getNondeterministicStates

        public static <S> Set<S> getNondeterministicStates​(Automaton<S,​?> automaton)
      • getAcceptanceSets

        public static <S> ImmutableBitSet getAcceptanceSets​(Automaton<S,​?> automaton,
                                                            Set<S> states)
        Collect all acceptance sets occurring on transitions within the given state set.
        Type Parameters:
        S - the type of the states
        Parameters:
        automaton - the automaton
        states - the state set
        Returns:
        a set containing all acceptance indices
      • getAcceptanceSets

        public static <S> ImmutableBitSet getAcceptanceSets​(Automaton<S,​?> automaton)
        Collect all acceptance sets occurring on transitions.
        Parameters:
        automaton - the automaton
        Returns:
        a set containing all acceptance indices
      • isLessOrEqual

        public static <S> boolean isLessOrEqual​(Automaton<S,​?> automaton,
                                                int numberOfStates)