Class IntegerResource

java.lang.Object
gov.nasa.jpl.resource.Resource<Integer>
gov.nasa.jpl.resource.IntegerResource
All Implemented Interfaces:
ResourceContainer

public class IntegerResource extends Resource<Integer>
  • Constructor Details

    • IntegerResource

      public IntegerResource(int profile, String subsystem, String units, String interpolation, Integer minimum, Integer maximum)
    • IntegerResource

      public IntegerResource(String subsystem, String units, String interpolation)
    • IntegerResource

      public IntegerResource(int profile, String subsystem, String units, String interpolation)
    • IntegerResource

      public IntegerResource(int profile, String subsystem, String units)
    • IntegerResource

      public IntegerResource(String subsystem)
    • IntegerResource

      public IntegerResource()
  • Method Details

    • profile

      public Integer profile(Time t)
      Description copied from class: Resource
      Returns the default value of the resource before it is set() to a new value. Must be abstract since different data types have different intuitive defaults.
      Specified by:
      profile in class Resource<Integer>
      Parameters:
      t - The time one wants the default value at. Used for custom resources that may have time-varying profiles.
      Returns:
    • add

      public void add(int toAdd)
    • subtract

      public void subtract(int toSubtract)
    • update

      public void update()
      Description copied from class: Resource
      No-op method that adapters can override in custom resources
      Specified by:
      update in interface ResourceContainer
      Overrides:
      update in class Resource<Integer>