t

sessl.ml3

Observation

trait Observation extends SimpleObservation

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.

Self Type
Observation with Experiment
Example:
  1. 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 the status each time a Person dies
      observe("statusAtDeath" ~ expression("ego.status") at Death("Person"))
    }
Linear Supertypes
SimpleObservation, AbstractObservation, TrajectoryOperations, ExperimentConfiguration, Logging, StrictLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Observation
  2. SimpleObservation
  3. AbstractObservation
  4. TrajectoryOperations
  5. ExperimentConfiguration
  6. Logging
  7. StrictLogging
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Change(agentType: String, field: String, filter: String = "true") extends (Observation.this)#EventType with Product with Serializable
  2. case class Creation(agentType: String, filter: String = "true") extends (Observation.this)#EventType with Product with Serializable
  3. case class Death(agentType: String, filter: String = "true") extends (Observation.this)#EventType with Product with Serializable
  4. sealed trait EventType extends AnyRef
  5. implicit class ObservableName extends AnyRef
    Definition Classes
    AbstractObservation
  6. final class ProtoExpressionObservable[T] extends AnyRef
  7. implicit class TrajectoryIterOps[T] extends AnyRef
    Definition Classes
    TrajectoryOperations
  8. implicit class TrajectoryOps[T] extends AnyRef
    Definition Classes
    TrajectoryOperations

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addValueFor[T](runID: Int, observable: Observable[T], value: TimeStampedData[T]): Unit
    Attributes
    protected[sessl]
    Definition Classes
    SimpleObservation
  5. def agentCount(agentType: String, filter: String = "true"): Observable[Int]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. def collectExperimentResultsAspects(): Unit
    Definition Classes
    AbstractObservation → ExperimentConfiguration
  9. def collectReplicationsResults(assignId: Int): ObservationReplicationsResultsAspect
    Definition Classes
    SimpleObservation → AbstractObservation
  10. def collectReplicationsResultsAspects(assignId: Int): Unit
    Definition Classes
    AbstractObservation → ExperimentConfiguration
  11. def collectResults(runId: Int, removeData: Boolean): ObservationRunResultsAspect
    Definition Classes
    SimpleObservation → AbstractObservation
  12. def collectRunResultsAspects(runId: Int): Unit
    Definition Classes
    AbstractObservation → ExperimentConfiguration
  13. def configure(): Unit

    Setting the flags that control a proper call hierarchy, calling event handlers if installed.

    Setting the flags that control a proper call hierarchy, calling event handlers if installed.

    Definition Classes
    Observation → ExperimentConfiguration
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def experimentDone(): Unit
    Attributes
    protected
    Definition Classes
    ExperimentConfiguration
  17. def expression[T](expression: String): (Observation.this)#ProtoExpressionObservable[T]
  18. def expressionDistribution[T](agentType: String, expression: String, filter: String = "true"): Observable[Map[Long, T]]
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def getOrElseUpdate[T](name: String, obs: ⇒ Observable[T]): Observable[T]
    Attributes
    protected
    Definition Classes
    AbstractObservation
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def isObservationTimingDefined: Boolean
    Definition Classes
    AbstractObservation
  25. val logger: Logger
    Attributes
    protected
    Definition Classes
    StrictLogging
  26. implicit def lookupObservable[T](name: String): Observable[T]
    Definition Classes
    AbstractObservation
  27. def namedObservables: Map[String, Observable[_]]
    Definition Classes
    AbstractObservation
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. def observables: Set[Observable[_]]
    Definition Classes
    AbstractObservation
  32. lazy val observationTimes: Vector[Double]
    Definition Classes
    AbstractObservation
  33. def observe[T](obs: Observable[T], obss: Observable[_]*): Observable[T]
    Definition Classes
    AbstractObservation
  34. final def observeAt[T <: AnyVal](r: ValueRange[T])(implicit n: Numeric[T]): Unit
    Definition Classes
    AbstractObservation
  35. final def observeAt(observationTimes: Double*): Unit
    Definition Classes
    AbstractObservation
  36. def replicationsDone(assignID: Int): Unit
    Attributes
    protected
    Definition Classes
    ExperimentConfiguration
  37. def runDone(runID: Int): Unit
    Attributes
    protected
    Definition Classes
    ExperimentConfiguration
  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  43. def withExperimentResult(f: (ObservationExperimentResultsAspect) ⇒ Unit): Unit
    Definition Classes
    AbstractObservation
  44. def withReplicationsResult(f: (ObservationReplicationsResultsAspect) ⇒ Unit): Unit
    Definition Classes
    AbstractObservation
  45. def withRunResult(f: (ObservationRunResultsAspect) ⇒ Unit): Unit
    Definition Classes
    AbstractObservation

Inherited from SimpleObservation

Inherited from AbstractObservation

Inherited from TrajectoryOperations

Inherited from ExperimentConfiguration

Inherited from Logging

Inherited from StrictLogging

Inherited from AnyRef

Inherited from Any

Ungrouped