Engine

open fun Engine(e: Environment<T, P>)

Builds a simulation for a given environment. By default it uses a DependencyGraph and an IndexedPriorityQueue internally. If you want to use your own implementations of DependencyGraph and Scheduler interfaces, don't use this constructor.

Parameters

e

the environment at the initial time


open fun Engine(e: Environment<T, P>, maxSteps: Long)

Builds a simulation for a given environment. By default it uses a DependencyGraph and an IndexedPriorityQueue internally. If you want to use your own implementations of DependencyGraph and Scheduler interfaces, don't use this constructor.

Parameters

e

the environment at the initial time

maxSteps

the maximum number of steps to do


open fun Engine(e: Environment<T, P>, maxSteps: Long, t: Time)

Builds a simulation for a given environment. By default it uses a DependencyGraph and an IndexedPriorityQueue internally. If you want to use your own implementations of DependencyGraph and Scheduler interfaces, don't use this constructor.

Parameters

e

the environment at the initial time

maxSteps

the maximum number of steps to do

t

the maximum time to reach


open fun Engine(e: Environment<T, P>, t: Time)

Builds a simulation for a given environment. By default it uses a DependencyGraph and an IndexedPriorityQueue internally. If you want to use your own implementations of DependencyGraph and Scheduler interfaces, don't use this constructor.

Parameters

e

the environment at the initial time

t

the maximum time to reach