Class MutableState


  • public class MutableState
    extends Object
    The fst's mutable state implementation. Holds its outgoing MutableArc objects in an ArrayList allowing additions/deletions
    • Field Detail

      • _label

        protected char _label
      • _isTerminal

        protected boolean _isTerminal
      • _isStartState

        protected boolean _isStartState
    • Constructor Detail

      • MutableState

        public MutableState()
        Default Constructor
      • MutableState

        public MutableState​(boolean isStartState)
    • Method Detail

      • isTerminal

        public boolean isTerminal()
      • isStartState

        public boolean isStartState()
      • getLabel

        public char getLabel()
      • setLabel

        public void setLabel​(char label)
      • setIsTerminal

        public void setIsTerminal​(boolean isTerminal)
      • getArcCount

        public int getArcCount()
        Get the number of outgoing arcs
      • getArc

        public MutableArc getArc​(int index)
        Get an arc based on it's index the arcs ArrayList
        Parameters:
        index - the arc's index
        Returns:
        the arc
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object