Class/Object

it.unibo.scafi.simulation.SpatialSimulation

SpaceAwareSimulator

Related Docs: object SpaceAwareSimulator | package SpatialSimulation

Permalink

class SpaceAwareSimulator extends (SpatialSimulation.this)#NetworkSimulator with MetaActionManager with (SpatialSimulation.this)#StandardSpatialSensorNames

Linear Supertypes
(SpatialSimulation.this)#StandardSpatialSensorNames, MetaActionManager, (SpatialSimulation.this)#NetworkSimulator, SimpleSource, Source, (SpatialSimulation.this)#SimulatorOps, (SpatialSimulation.this)#Network, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SpaceAwareSimulator
  2. StandardSpatialSensorNames
  3. MetaActionManager
  4. NetworkSimulator
  5. SimpleSource
  6. Source
  7. SimulatorOps
  8. Network
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SpaceAwareSimulator(space: (SpatialSimulation.this)#SPACE[(SpatialSimulation.this)#ID], devs: Map[(SpatialSimulation.this)#ID, (SpatialSimulation.this)#DevInfo], toStr: ((SpatialSimulation.this)#NetworkSimulator) ⇒ String = SpaceAwareSimulator.defaultRepr, simulationSeed: Long, randomSensorSeed: Long)

    Permalink

Type Members

  1. case class MultiNodeChangeSensor(ids: Set[(SpatialSimulation.this)#ID], sensor: (SpatialSimulation.this)#CNAME, value: Any) extends MetaAction with Product with Serializable

    Permalink

    a meta action used to change a set of node sensor value

    a meta action used to change a set of node sensor value

    ids

    the id of node

    sensor

    the sensor changed

    value

    the new sensor value

  2. case class MultiNodeMovement(movementMap: Map[(SpatialSimulation.this)#ID, (SpatialSimulation.this)#P]) extends MetaAction with Product with Serializable

    Permalink

    meta action used to move a set of node

    meta action used to move a set of node

    movementMap

    the map of node id and new node position

  3. case class NodeChangeSensor(id: (SpatialSimulation.this)#ID, sensor: (SpatialSimulation.this)#CNAME, value: Any) extends MetaAction with Product with Serializable

    Permalink

    meta action used to change the value of a sensor

    meta action used to change the value of a sensor

    id

    the node id

    sensor

    the sensor name

    value

    the new value of sensor

  4. case class NodeDtMovement(id: (SpatialSimulation.this)#ID, dt: (Double, Double)) extends MetaAction with Product with Serializable

    Permalink

    meta action used to move node using a dt movement

    meta action used to move node using a dt movement

    id

    the node id

    dt

    the delta movement

  5. case class NodeMovement(id: (SpatialSimulation.this)#ID, point: (SpatialSimulation.this)#P) extends MetaAction with Product with Serializable

    Permalink

    meta action used to move a node into another position

    meta action used to move a node into another position

    id

    the node id

    point

    the new node position

  6. type O = SimulationObserver[(SpatialSimulation.this)#ID, (SpatialSimulation.this)#CNAME]

    Permalink

    observer type, a source can notify a observer class

    observer type, a source can notify a observer class

    Definition Classes
    NetworkSimulatorSource
  7. class SimulatorContextImpl extends (Simulation.this)#ContextImpl with (Simulation.this)#StandardTemporalSensorNames with (Simulation.this)#StandardPlatformSensorNames

    Permalink
    Definition Classes
    NetworkSimulator
  8. class SpatialSimulatorContextImpl extends SimulatorContextImpl with (SpatialSimulation.this)#StandardSpatialSensorNames

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def <--(observer: O): SpaceAwareSimulator.this.type

    Permalink

    fast way to add an observer

    fast way to add an observer

    observer

    want to observe current source

    returns

    the source

    Definition Classes
    Source
  4. final def <--!(observer: O): SpaceAwareSimulator.this.type

    Permalink
    Definition Classes
    Source
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. val LSNS_POSITION: (SpatialSimulation.this)#CNAME

    Permalink
    Definition Classes
    StandardSpatialSensorNames
  7. val NBR_RANGE: (SpatialSimulation.this)#CNAME

    Permalink
    Definition Classes
    StandardSpatialSensorNames
  8. val NBR_VECTOR: (SpatialSimulation.this)#CNAME

    Permalink
    Definition Classes
    StandardSpatialSensorNames
  9. var actionQueue: Queue[MetaAction]

    Permalink
    Attributes
    protected
    Definition Classes
    MetaActionManager
  10. def add(action: MetaAction): Unit

    Permalink

    add a meta action to queue list

    add a meta action to queue list

    action

    the action to add in queue

    Definition Classes
    MetaActionManager
  11. def addSensor[A](name: (SpatialSimulation.this)#CNAME, value: A): Unit

    Permalink
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def attach(observer: O): Boolean

    Permalink

    add an observer to the source

    add an observer to the source

    observer

    want observe this source

    returns

    false if the observer currently observe the source true otherwise

    Definition Classes
    SimpleSourceSource
  14. def chgSensorValue[A](name: (SpatialSimulation.this)#CNAME, ids: Set[(SpatialSimulation.this)#ID], value: A): Unit

    Permalink
  15. def clearExports(): Unit

    Permalink
    Definition Classes
    NetworkSimulatorSimulatorOps
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  17. def context(id: (SpatialSimulation.this)#ID): (SpatialSimulation.this)#CONTEXT

    Permalink
  18. def detach(observer: O): Boolean

    Permalink

    remove an observer to the source

    remove an observer to the source

    observer

    want to stop observer this source

    returns

    false if the observer currently doesn't observer the source true otherwise

    Definition Classes
    SimpleSourceSource
  19. val devs: Map[(SpatialSimulation.this)#ID, (SpatialSimulation.this)#DevInfo]

    Permalink
  20. val eMap: Map[(SpatialSimulation.this)#ID, (SpatialSimulation.this)#EXPORT]

    Permalink
    Attributes
    protected
    Definition Classes
    NetworkSimulator
  21. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  23. def exec(ap: ((SpatialSimulation.this)#CONTEXT) ⇒ (SpatialSimulation.this)#EXPORT): ((SpatialSimulation.this)#ID, (SpatialSimulation.this)#EXPORT)

    Permalink
    Definition Classes
    NetworkSimulatorSimulatorOps
  24. def exec(node: (SpatialSimulation.this)#EXECUTION, exp: ⇒ Any, id: (SpatialSimulation.this)#ID): Unit

    Permalink
    Definition Classes
    NetworkSimulatorSimulatorOps
  25. def execInOrderAndReturn(node: (SpatialSimulation.this)#EXECUTION, exp: ⇒ Any, firingSeq: Seq[(SpatialSimulation.this)#ID]): (SpatialSimulation.this)#Network with (SpatialSimulation.this)#SimulatorOps

    Permalink
    Definition Classes
    NetworkSimulatorSimulatorOps
  26. def execMany(node: (SpatialSimulation.this)#EXECUTION, exp: ⇒ Any, size: Int, action: ((SpatialSimulation.this)#Network, Int) ⇒ Unit = (n, i) => {}): Seq[(SpatialSimulation.this)#ID]

    Permalink

    node

    The local execution node

    exp

    The expression to be run

    size

    The number of executions to be performed

    action

    An optional action launched after each execution

    Definition Classes
    NetworkSimulatorSimulatorOps
  27. def executeMany(node: (SpatialSimulation.this)#EXECUTION, size: Int, action: ((SpatialSimulation.this)#Network, Int) ⇒ Unit = (n, i) => {}): Seq[(SpatialSimulation.this)#ID]

    Permalink
    Definition Classes
    NetworkSimulatorSimulatorOps
  28. def export(id: (SpatialSimulation.this)#ID): Option[(SpatialSimulation.this)#EXPORT]

    Permalink
    Definition Classes
    NetworkSimulatorNetwork
  29. def exports(): Map[(SpatialSimulation.this)#ID, Option[(SpatialSimulation.this)#EXPORT]]

    Permalink
    Definition Classes
    NetworkSimulatorNetwork
  30. def getAllNeighbours(): Map[(SpatialSimulation.this)#ID, Iterable[(SpatialSimulation.this)#ID]]

    Permalink
  31. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  32. def getSensor(name: (SpatialSimulation.this)#CNAME): Option[Any]

    Permalink
    Definition Classes
    NetworkSimulator
  33. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  34. val idArray: ArrayBuffer[(SpatialSimulation.this)#ID]

    Permalink
    Definition Classes
    NetworkSimulator
  35. val ids: Set[(SpatialSimulation.this)#ID]

    Permalink
    Definition Classes
    SpaceAwareSimulatorNetworkSimulatorNetwork
  36. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  37. var lastRound: Map[(SpatialSimulation.this)#ID, Instant]

    Permalink
    Attributes
    protected
    Definition Classes
    NetworkSimulator
  38. def localSensor[A](name: (SpatialSimulation.this)#CNAME)(id: (SpatialSimulation.this)#ID): A

    Permalink
    Definition Classes
    SpaceAwareSimulatorNetworkSimulatorNetwork
  39. val localSensors: PartialFunction[(SpatialSimulation.this)#CNAME, PartialFunction[(SpatialSimulation.this)#ID, Any]]

    Permalink
    Definition Classes
    NetworkSimulator
  40. val lsnsMap: Map[(SpatialSimulation.this)#CNAME, Map[(SpatialSimulation.this)#ID, Any]]

    Permalink
    Definition Classes
    NetworkSimulator
  41. val nbrMap: Map[(SpatialSimulation.this)#ID, Set[(SpatialSimulation.this)#ID]]

    Permalink
    Definition Classes
    NetworkSimulator
  42. def nbrSensor[A](name: (SpatialSimulation.this)#CNAME)(id: (SpatialSimulation.this)#ID)(idn: (SpatialSimulation.this)#ID): A

    Permalink
    Definition Classes
    NetworkSimulatorNetwork
  43. val nbrSensors: PartialFunction[(SpatialSimulation.this)#CNAME, PartialFunction[((SpatialSimulation.this)#ID, (SpatialSimulation.this)#ID), Any]]

    Permalink
    Definition Classes
    NetworkSimulator
  44. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  45. def neighbourhood(id: (SpatialSimulation.this)#ID): Set[(SpatialSimulation.this)#ID]

    Permalink
    Definition Classes
    SpaceAwareSimulatorNetworkSimulatorNetwork
  46. def neighbouringSensorState(filter: ((SpatialSimulation.this)#CNAME, (SpatialSimulation.this)#ID, (SpatialSimulation.this)#ID) ⇒ Boolean = (s,n,nbr) => true): Map[(SpatialSimulation.this)#CNAME, Map[(SpatialSimulation.this)#ID, Map[(SpatialSimulation.this)#ID, Any]]]

    Permalink
    Definition Classes
    NetworkSimulatorNetwork
  47. def notify(e: Event): Unit

    Permalink

    notify all the observer

    notify all the observer

    e

    the event generate

    Definition Classes
    Source
  48. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  49. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  50. val nsnsMap: Map[(SpatialSimulation.this)#CNAME, Map[(SpatialSimulation.this)#ID, Map[(SpatialSimulation.this)#ID, Any]]]

    Permalink
    Definition Classes
    NetworkSimulator
  51. def observers: Iterable[O]

    Permalink

    returns

    the observers attached to current source

    Attributes
    protected
    Definition Classes
    SimpleSourceSource
  52. def process(): Unit

    Permalink

    execute all action in queue and clear the action queue

    execute all action in queue and clear the action queue

    Definition Classes
    SpaceAwareSimulatorMetaActionManager
  53. val randomSensor: Random

    Permalink
    Attributes
    protected
    Definition Classes
    NetworkSimulator
  54. val randomSensorSeed: Long

    Permalink
    Definition Classes
    NetworkSimulator
  55. def sensorState(filter: ((SpatialSimulation.this)#CNAME, (SpatialSimulation.this)#ID) ⇒ Boolean = (s,n) => true): Map[(SpatialSimulation.this)#CNAME, Map[(SpatialSimulation.this)#ID, Any]]

    Permalink
    Definition Classes
    NetworkSimulatorNetwork
  56. var sensors: Map[(SpatialSimulation.this)#CNAME, Any]

    Permalink
    Attributes
    protected
    Definition Classes
    NetworkSimulator
  57. def setPosition(id: (SpatialSimulation.this)#ID, newPos: (SpatialSimulation.this)#P): Unit

    Permalink
  58. val simulationRandom: Random

    Permalink
    Attributes
    protected
    Definition Classes
    NetworkSimulator
  59. val simulationSeed: Long

    Permalink
    Definition Classes
    NetworkSimulator
  60. val space: (SpatialSimulation.this)#SPACE[(SpatialSimulation.this)#ID]

    Permalink
  61. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  62. val toStr: ((SpatialSimulation.this)#NetworkSimulator) ⇒ String

    Permalink
    Definition Classes
    NetworkSimulator
  63. def toString(): String

    Permalink
    Definition Classes
    NetworkSimulator → AnyRef → Any
  64. def valueMap[T](): Map[(SpatialSimulation.this)#ID, T]

    Permalink
    Definition Classes
    SimulatorOps
  65. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  66. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from (SpatialSimulation.this)#StandardSpatialSensorNames

Inherited from MetaActionManager

Inherited from (SpatialSimulation.this)#NetworkSimulator

Inherited from SimpleSource

Inherited from Source

Inherited from (SpatialSimulation.this)#SimulatorOps

Inherited from (SpatialSimulation.this)#Network

Inherited from AnyRef

Inherited from Any

Ungrouped