PhysicsUpdate

class PhysicsUpdate<T>(val environment: Dynamics2DEnvironment<T>, val timeDistribution: TimeDistribution<T>) : GlobalReaction<T> (source)

A global Reaction responsible for updating the physics of an Dynamics2DEnvironment.

Constructors

Link copied to clipboard
constructor(environment: Dynamics2DEnvironment<T>, updateRate: Double = 30.0)
constructor(environment: Dynamics2DEnvironment<T>, timeDistribution: TimeDistribution<T>)

Properties

Link copied to clipboard
open override var actions: List<Action<T>>
Link copied to clipboard
open override var conditions: List<Condition<T>>
Link copied to clipboard

The environment to update.

Link copied to clipboard
open override val inboundDependencies: ListSet<out Dependency>
Link copied to clipboard
open override val outboundDependencies: ListSet<out Dependency>
Link copied to clipboard
open override val rate: Double
Link copied to clipboard
open override val tau: Time
Link copied to clipboard
open override val timeDistribution: TimeDistribution<T>

Functions

Link copied to clipboard
open override fun canExecute(): Boolean
Link copied to clipboard
open operator override fun compareTo(other: Actionable<T>): Int
Link copied to clipboard
open override fun execute()
Link copied to clipboard
open override fun initializationComplete(atTime: Time, environment: Environment<T, *>)
Link copied to clipboard
open override fun update(currentTime: Time, hasBeenExecuted: Boolean, environment: Environment<T, *>)