Class PolynomialEffects
java.lang.Object
gov.nasa.jpl.aerie.contrib.streamline.modeling.polynomial.PolynomialEffects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidconsume(MutableResource<Polynomial> resource, double amount) Consume some amount of a resource instantaneously.static voidconsume(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.static voidconsume(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> amount) Consume some amount of a resource instantaneously.static voidconsume(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.static voidconsumeUniformly(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.static voidconsumeUniformly(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.static voidconsuming(MutableResource<Polynomial> resource, double rate, Runnable action) Consume some resource a fixed rate during an actionstatic voidconsuming(MutableResource<Polynomial> resource, Polynomial profile, Runnable action) Consume resource according to a given polynomial profile while an action runs.static voidconsuming(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> rate, Runnable action) Consume some resource a fixed rate during an actionstatic voidconsuming$(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Polynomial> profile, Runnable action) Consume resource according to a given polynomial profile while an action runs.static voidproviding(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.static voidproviding(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.static voidproviding(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.static voidproviding(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.static voidproviding(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.static voidproviding$(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.static voidrestore(MutableResource<Polynomial> resource, double amount) Consume some amount of a resource instantaneously.static voidrestore(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.static voidrestore(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> amount) Restore some amount of a resource instantaneously.static voidrestore(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.static voidrestoreUniformly(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.static voidrestoreUniformly(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.static voidrestoring(MutableResource<Polynomial> resource, double rate, Runnable action) Restore some resource a fixed rate during an actionstatic voidrestoring(MutableResource<Polynomial> resource, Polynomial profile, Runnable action) Restore resource according to a given polynomial profile while an action runs.static voidrestoring(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Double> rate, Runnable action) Restore some resource a fixed rate during an actionstatic voidrestoring$(UnitAware<MutableResource<Polynomial>> resource, UnitAware<Polynomial> profile, Runnable action) Restore resource according to a given polynomial profile while an action runs.static voidusing(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.static voidusing(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.static voidusing(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.static voidusing(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.static voidusing(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.static voidusing$(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.
-
Method Details
-
consume
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
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
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
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
Decrease resource according to a given polynomial profile while an action runs, restoring the resource to its original profile when the action completes. -
using
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
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.
-