java.lang.Object
gov.nasa.jpl.aerie.contrib.streamline.modeling.polynomial.PolynomialEffects

public final class PolynomialEffects extends Object
  • Method Details

    • consume

      public static void consume(MutableResource<Polynomial> resource, double amount)
      Consume some amount of a resource instantaneously.
    • consuming

      public static void consuming(MutableResource<Polynomial> resource, Polynomial profile, Runnable action)
      Consume resource according to a given polynomial profile while an action runs.
    • consumeUniformly

      public static void consumeUniformly(MutableResource<Polynomial> resource, double amount, gov.nasa.jpl.aerie.merlin.protocol.types.Duration time)
      Consume some amount of a resource at a uniform rate over a fixed period of time.
    • consuming

      public static void consuming(MutableResource<Polynomial> resource, double rate, Runnable action)
      Consume some resource a fixed rate during an action
    • consume

      public static void consume(MutableResource<Polynomial> resource, double rate, gov.nasa.jpl.aerie.merlin.protocol.types.Duration time)
      Consume some resource at a fixed rate for a fixed period of time, asynchronously.
    • restoring

      public static void restoring(MutableResource<Polynomial> resource, Polynomial profile, Runnable action)
      Restore resource according to a given polynomial profile while an action runs.
    • restore

      public static void restore(MutableResource<Polynomial> resource, double amount)
      Consume some amount of a resource instantaneously.
    • restoreUniformly

      public static void restoreUniformly(MutableResource<Polynomial> resource, double amount, gov.nasa.jpl.aerie.merlin.protocol.types.Duration time)
      Restore some amount of a resource at a uniform rate over a fixed period of time.
    • restoring

      public static void restoring(MutableResource<Polynomial> resource, double rate, Runnable action)
      Restore some resource a fixed rate during an action
    • restore

      public static void restore(MutableResource<Polynomial> resource, double rate, gov.nasa.jpl.aerie.merlin.protocol.types.Duration time)
      Restore some resource at a fixed rate for a fixed period of time, asynchronously.
    • using

      public static void using(MutableResource<Polynomial> resource, Polynomial profile, Runnable action)
      Decrease resource according to a given polynomial profile while an action runs, restoring the resource to its original profile when the action completes.
    • using

      public static void using(MutableResource<Polynomial> resource, double amount, Runnable action)
      Decrease resource by a fixed amount while an action runs, restoring the resource to its original profile when the action completes.
    • using

      public static void using(MutableResource<Polynomial> resource, double amount, gov.nasa.jpl.aerie.merlin.protocol.types.Duration time)
      Decrease resource by a fixed amount for a fixed time, restoring the resource to its original profile when the action completes.
    • providing

      public static void providing(MutableResource<Polynomial> resource, Polynomial profile, Runnable action)
      Increase resource according to a given polynomial profile while an action runs, restoring the resource to its original profile when the action completes.
    • providing

      public static void providing(MutableResource<Polynomial> resource, double amount, Runnable action)
      Increase resource by a fixed amount while an action runs, restoring the resource to its original profile when the action completes.
    • providing

      public static void providing(MutableResource<Polynomial> resource, double amount, gov.nasa.jpl.aerie.merlin.protocol.types.Duration time)
      Increase resource by a fixed amount for a fixed time, restoring the resource to its original profile when the action completes.
    • consume

      public static void consume(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> amount)
      Consume some amount of a resource instantaneously.
    • consuming$

      public static void consuming$(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Polynomial> profile, Runnable action)
      Consume resource according to a given polynomial profile while an action runs.
    • consumeUniformly

      public static void consumeUniformly(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> amount, gov.nasa.jpl.aerie.merlin.protocol.types.Duration time)
      Consume some amount of a resource at a uniform rate over a fixed period of time.
    • consuming

      public static void consuming(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> rate, Runnable action)
      Consume some resource a fixed rate during an action
    • consume

      public static void consume(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> rate, gov.nasa.jpl.aerie.merlin.protocol.types.Duration time)
      Consume some resource at a fixed rate for a fixed period of time, asynchronously.
    • restoring$

      public static void restoring$(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Polynomial> profile, Runnable action)
      Restore resource according to a given polynomial profile while an action runs.
    • restore

      public static void restore(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> amount)
      Restore some amount of a resource instantaneously.
    • restoreUniformly

      public static void restoreUniformly(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> amount, gov.nasa.jpl.aerie.merlin.protocol.types.Duration time)
      Restore some amount of a resource at a uniform rate over a fixed period of time.
    • restoring

      public static void restoring(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> rate, Runnable action)
      Restore some resource a fixed rate during an action
    • restore

      public static void restore(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> rate, gov.nasa.jpl.aerie.merlin.protocol.types.Duration time)
      Restore some resource at a fixed rate for a fixed period of time, asynchronously.
    • using$

      public static void using$(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Polynomial> profile, Runnable action)
      Decrease resource according to a given polynomial profile while an action runs, restoring the resource to its original profile when the action completes.
    • using

      public static void using(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> amount, Runnable action)
      Decrease resource by a fixed amount while an action runs, restoring the resource to its original profile when the action completes.
    • using

      public static void using(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> amount, gov.nasa.jpl.aerie.merlin.protocol.types.Duration time)
      Decrease resource by a fixed amount for a fixed time, restoring the resource to its original profile when the action completes.
    • providing$

      public static void providing$(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Polynomial> profile, Runnable action)
      Increase resource according to a given polynomial profile while an action runs, restoring the resource to its original profile when the action completes.
    • providing

      public static void providing(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> amount, Runnable action)
      Increase resource by a fixed amount while an action runs, restoring the resource to its original profile when the action completes.
    • providing

      public static void providing(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> amount, gov.nasa.jpl.aerie.merlin.protocol.types.Duration time)
      Increase resource by a fixed amount for a fixed time, restoring the resource to its original profile when the action completes.