Class State<T>

  • Type Parameters:
    T - generic type of the content the basic states
    All Implemented Interfaces:
    Ranked

    public class State<T>
    extends AbstractState<List<BasicState<T>>>
    Class implementing a state of an Automaton.
    A state is a tuple (list) of basic states of principals.
    A state has a rank. Rank 1 is for an ensemble containing a single principal.
    A rank greater than one is for an ensemble of states of principals.
    Author:
    Davide Basile
    • Constructor Detail

      • State

        public State​(List<BasicState<T>> listState)
        Constructor for a State
        Parameters:
        listState - the list of basic states
    • Method Detail

      • getRank

        public Integer getRank()
        Method inherited from the interface Ranked. It returns the rank of the state.
        Returns:
        the rank of the state
      • isInitial

        public boolean isInitial()
        Returns true if the state is initial
        Specified by:
        isInitial in class AbstractState<List<BasicState<T>>>
        Returns:
        true if the state is initial
      • toString

        public String toString()
        Print a String representing this object
        Overrides:
        toString in class Object
        Returns:
        a String representing this object