Class StateVariable


  • public class StateVariable
    extends java.lang.Object
    • Constructor Detail

      • StateVariable

        public StateVariable()
    • Method Detail

      • createCurrentStates

        public static CurrentStates createCurrentStates​(CurrentState... states)
        A Java helper method to create CurrentState

        Parameters:
        states - one or more CurrentState objects
        Returns:
        a new CurrentStates object containing all the given CurrentState objects
      • defaultMatcher

        public static boolean defaultMatcher​(DemandState demand,
                                             CurrentState current)
        A Java helper method to create CurrentState

        Parameters:
        states - one or more CurrentState objects
        demand - (undocumented)
        current - (undocumented)
        Returns:
        a new CurrentStates object containing all the given CurrentState objects
      • createCurrentStates

        public static CurrentStates createCurrentStates​(java.util.List<CurrentState> states)
        A Java helper method to create CurrentState

        Parameters:
        states - one or more CurrentState objects
        Returns:
        a new CurrentStates object containing all the given CurrentState objects