Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class GlobalTestReaction<T>(val environment: Environment<T, *>, val timeDistribution: TimeDistribution<T>) : GlobalReaction<T>

Functions

Link copied to clipboard
fun <T, P : Position<P>> Simulation<T, P>.equalsForSteps(other: Simulation<T, P>, steps: Long)
Link copied to clipboard
fun <T, P : Position<P>, Vector<P>> loadYamlSimulation(resource: String, vars: Map<String, Double> = emptyMap()): Simulation<T, P>

Loads a simulation from a YAML file.

Link copied to clipboard
infix fun Action<*>.shouldEqual(other: Action<*>)
infix fun Actionable<*>.shouldEqual(other: Actionable<*>)
infix fun Condition<*>.shouldEqual(other: Condition<*>)
infix fun <T, P : Position<P>> Environment<T, P>.shouldEqual(other: Environment<T, P>)
infix fun LinkingRule<*, *>.shouldEqual(other: LinkingRule<*, *>)
infix fun NodeProperty<*>.shouldEqual(other: NodeProperty<*>)
infix fun Node<*>.shouldEqual(other: Node<*>)
Link copied to clipboard
fun <T, P : Position<P>, Vector<P>> Simulation<T, P>.startSimulation(onceInitialized: (EuclideanEnvironment<T, P>) -> Unit = { }, atEachStep: (EuclideanEnvironment<T, P>, Actionable<T>?, Time, Long) -> Unit = { _, _, _, _ -> }, whenFinished: (EuclideanEnvironment<T, P>, Time, Long) -> Unit = { _, _, _ -> }, steps: Long = 10000): EuclideanEnvironment<T, P>

Run the simulation this environment owns.