Class DemandState

    • Constructor Detail

      • 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 Detail

      • 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
      • 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