Class DurationResource

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

public class DurationResource extends Resource<Duration>
  • Constructor Details

  • Method Details

    • profile

      public Duration 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<Duration>
      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(Duration toAdd)
    • subtract

      public void subtract(Duration 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<Duration>