package ml3
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
- case class AgentCount (agentType: String, filter: String) extends Observable with Product with Serializable
- case class Change (agentType: String, field: String, filter: String = "true") extends EventType with Product with Serializable
- case class Creation (agentType: String, filter: String = "true") extends EventType with Product with Serializable
- case class Death (agentType: String, filter: String = "true") extends EventType with Product with Serializable
- sealed trait EventType extends AnyRef
- class Experiment extends AbstractExperiment with SupportStopConditions with DynamicSimulationRuns
- case class Expression (expression: String) extends Observable with Product with Serializable
- case class ExpressionDistribution (agentType: String, expression: String, filter: String) extends Observable with Product with Serializable
- case class FirstReactionMethod () extends ML3Simulator with Product with Serializable
- trait ML3Simulator extends Simulator
- case class NextReactionMethod () extends ML3Simulator with Product with Serializable
- sealed trait Observable extends AnyRef
-
trait
Observation
extends SimpleObservation
This trait adds two ML3-specific observation methods.
This trait adds two ML3-specific observation methods. First, observations triggered by events are possible. As these events are triggered by a rule that fires for a specific agent, the value of expressions that are evaluated on the agent can be observed. Second, time-triggered observations of expressions that are evaluated for all agents of a certain type are possible, which result in a distribution of observed values for each observation time.
val exp = new Experiment with Observation { // observe at certain time steps observeAt(range(0, 1, 500) observe("numPerson" ~ agentCount("Person") observe("numPersonWithFilter" ~ agentCount("Person", "ego.status = 'active'") observe("statusDistribution" ~ expressionDistribution("Person", "ego.status")) // observe each time a Person dies observeAt(Death("Person")) { observe("statusAtDeath" ~ expression("ego.status")) } }
Example: - trait ParallelExecution extends AbstractParallelExecution
- trait ParameterMaps extends AnyRef
- trait SupportStopConditions extends AnyRef