Class PAState


  • public class PAState
    extends java.lang.Object
    Represents a state of the Prefix Automaton.
    • Constructor Detail

      • PAState

        public PAState()
        Create a new prefix automaton state (empty List of Transitions).
      • PAState

        public PAState​(java.util.LinkedList<PATransition> outgoingTrans)
        Create a new prefix automaton state.
        Parameters:
        outgoingTrans - List of outgoing transitions.
    • Method Detail

      • isFinal

        public boolean isFinal()
        Check if state is final.
        Returns:
        True if state has no outgoing transitions, i.e., is final. Otherwise false.
      • addOutgoingTrans

        public void addOutgoingTrans​(PATransition t)
        Adds an outgoing transition to the state.
        Parameters:
        t - Outgoing transition.
      • checkForOutgoingAct

        public boolean checkForOutgoingAct​(Activity a)
        Checks if the state has a given transition.
        Parameters:
        a - Activity.
        Returns:
        True, if state has an (outgoing) transition a. Otherwise, false.
      • getOutgoingTrans

        public java.util.LinkedList<PATransition> getOutgoingTrans()
        Returns list of outgoing Transitions.
        Returns:
        List of outgoing Transitions.
      • getTrans

        public PATransition getTrans​(Activity a)
        Returns transition with activity a.
        Parameters:
        a - Activity.
        Returns:
        Transition.