Package csw.params.core.states
Class StateVariable$
- java.lang.Object
-
- csw.params.core.states.StateVariable$
-
public class StateVariable$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static StateVariable$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description StateVariable$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CurrentStates
createCurrentStates(CurrentState... states)
A Java helper method to create CurrentStateCurrentStates
createCurrentStates(java.util.List<CurrentState> states)
A Java helper method to create CurrentStateCurrentStates
createCurrentStates(scala.collection.immutable.Seq<CurrentState> states)
A Java helper method to create CurrentStateboolean
defaultMatcher(DemandState demand, CurrentState current)
The default matcher for state variables tests for an exact match
-
-
-
Field Detail
-
MODULE$
public static final StateVariable$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
createCurrentStates
public 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 boolean defaultMatcher(DemandState demand, CurrentState current)
The default matcher for state variables tests for an exact match- Parameters:
demand
- the demand statecurrent
- the current state- Returns:
- true if the demand and current states match (in this case, are equal)
-
createCurrentStates
public CurrentStates createCurrentStates(scala.collection.immutable.Seq<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
-
createCurrentStates
public 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
-
-