Class DemandState

All Implemented Interfaces:
ParameterSetKeyData, StateVariable, CommandSerializable, Serializable, scala.Equals, scala.Product

public class DemandState extends ParameterSetType<DemandState> implements ParameterSetKeyData, StateVariable, scala.Product, Serializable
A state variable that indicates the ''demand'' or requested state.

param: prefix identifies the target subsystem param: stateName identifies the name of the state param: paramSet initial set of items (keys with values)

See Also:
  • Constructor Details

    • DemandState

      public DemandState(Prefix prefix, StateName stateName, scala.collection.immutable.Set<Parameter<?>> paramSet)
    • DemandState

      public DemandState(Prefix prefix, StateName stateName)
      A Java helper method to construct with String
      Parameters:
      prefix - (undocumented)
      stateName - (undocumented)
    • DemandState

      public DemandState(StateName stateName, Setup command)
      A Java helper method to create a DemandState from a Setup
      Parameters:
      stateName - (undocumented)
      command - (undocumented)
  • Method Details

    • apply

      public static DemandState apply(Prefix prefix, StateName stateName, scala.collection.immutable.Set<Parameter<?>> paramSet)
      A helper method to create DemandState

      Parameters:
      prefix - identifies the target subsystem
      stateName - identifies the name of the state
      paramSet - an optional initial set of items (keys with values)
      Returns:
      an instance of DemandState
    • prefix

      public Prefix prefix()
      Description copied from interface: ParameterSetKeyData
      Returns an object providing the subsystem and prefix for the parameter set
      Specified by:
      prefix in interface ParameterSetKeyData
      Specified by:
      prefix in interface StateVariable
      Returns:
      (undocumented)
    • stateName

      public StateName stateName()
      Description copied from interface: StateVariable
      identifies the name of the state
      Specified by:
      stateName in interface StateVariable
      Returns:
      (undocumented)
    • paramSet

      public scala.collection.immutable.Set<Parameter<?>> paramSet()
      Description copied from class: ParameterSetType
      Holds the parameters for this parameter set
      Specified by:
      paramSet in interface StateVariable
      Specified by:
      paramSet in class ParameterSetType<DemandState>
      Returns:
      (undocumented)
    • create

      protected DemandState create(scala.collection.immutable.Set<Parameter<?>> data)
      Create a new DemandState instance when a parameter is added or removed

      Specified by:
      create in class ParameterSetType<DemandState>
      Parameters:
      data - set of parameters
      Returns:
      a new instance of DemandState with provided data