Class/Object

it.unibo.scafi.simulation.Simulation

NetworkSimulator

Related Docs: object NetworkSimulator | package Simulation

Permalink

class NetworkSimulator extends (Simulation.this)#Network with (Simulation.this)#SimulatorOps with SimpleSource

Self Type
(Simulation.this)#NetworkSimulator with (Simulation.this)#NETWORK
Linear Supertypes
SimpleSource, Source, (Simulation.this)#SimulatorOps, (Simulation.this)#Network, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NetworkSimulator
  2. SimpleSource
  3. Source
  4. SimulatorOps
  5. Network
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NetworkSimulator(simulationSeed: Long = 0L, randomSensorSeed: Long = 0L, idArray: ArrayBuffer[(Simulation.this)#ID] = MArray(), localSensors: PartialFunction[(Simulation.this)#CNAME, PartialFunction[(Simulation.this)#ID, Any]] = Map.empty, nbrSensors: PartialFunction[(Simulation.this)#CNAME, PartialFunction[((Simulation.this)#ID, (Simulation.this)#ID), Any]] = Map.empty, nbrMap: Map[(Simulation.this)#ID, Set[(Simulation.this)#ID]] = MMap(), toStr: ((Simulation.this)#NetworkSimulator) ⇒ String = NetworkSimulator.defaultRepr)

    Permalink

Type Members

  1. type O = SimulationObserver[(Simulation.this)#ID, (Simulation.this)#CNAME]

    Permalink

    observer type, a source can notify a observer class

    observer type, a source can notify a observer class

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

    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: (NetworkSimulator.this)#O): NetworkSimulator.this

    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: (NetworkSimulator.this)#O): NetworkSimulator.this

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

    Permalink
    Definition Classes
    AnyRef → Any
  6. def addSensor[A](name: (Simulation.this)#CNAME, value: A): Unit

    Permalink
    Definition Classes
    NetworkSimulatorSimulatorOps
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def attach(observer: (NetworkSimulator.this)#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
  9. def chgSensorValue[A](name: (Simulation.this)#CNAME, ids: Set[(Simulation.this)#ID], value: A): Unit

    Permalink
    Definition Classes
    NetworkSimulatorSimulatorOps
  10. def clearExports(): Unit

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

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

    Permalink
    Definition Classes
    NetworkSimulatorSimulatorOps
  13. def detach(observer: (NetworkSimulator.this)#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
  14. val eMap: Map[(Simulation.this)#ID, (Simulation.this)#EXPORT]

    Permalink
    Attributes
    protected
  15. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    NetworkSimulatorSimulatorOps
  20. def execMany(node: (Simulation.this)#EXECUTION, exp: ⇒ Any, size: Int, action: ((Simulation.this)#Network, Int) ⇒ Unit = (n, i) => {}): Seq[(Simulation.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
  21. def executeMany(node: (Simulation.this)#EXECUTION, size: Int, action: ((Simulation.this)#Network, Int) ⇒ Unit = (n, i) => {}): Seq[(Simulation.this)#ID]

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

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

    Permalink
    Definition Classes
    NetworkSimulatorNetwork
  24. final def getClass(): Class[_]

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

    Permalink
  26. def hashCode(): Int

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

    Permalink
  28. val ids: Set[(Simulation.this)#ID]

    Permalink
    Definition Classes
    NetworkSimulatorNetwork
  29. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Attributes
    protected
  31. def localSensor[A](name: (Simulation.this)#CNAME)(id: (Simulation.this)#ID): A

    Permalink
    Definition Classes
    NetworkSimulatorNetwork
  32. val localSensors: PartialFunction[(Simulation.this)#CNAME, PartialFunction[(Simulation.this)#ID, Any]]

    Permalink
  33. val lsnsMap: Map[(Simulation.this)#CNAME, Map[(Simulation.this)#ID, Any]]

    Permalink
  34. val nbrMap: Map[(Simulation.this)#ID, Set[(Simulation.this)#ID]]

    Permalink
  35. def nbrSensor[A](name: (Simulation.this)#CNAME)(id: (Simulation.this)#ID)(idn: (Simulation.this)#ID): A

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

    Permalink
  37. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink

    notify all the observer

    notify all the observer

    e

    the event generate

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

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

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

    Permalink
  44. def observers: Iterable[(NetworkSimulator.this)#O]

    Permalink

    returns

    the observers attached to current source

    Attributes
    protected
    Definition Classes
    SimpleSourceSource
  45. val randomSensor: Random

    Permalink
    Attributes
    protected
  46. val randomSensorSeed: Long

    Permalink
  47. def sensorState(filter: ((Simulation.this)#CNAME, (Simulation.this)#ID) ⇒ Boolean = (s,n) => true): Map[(Simulation.this)#CNAME, Map[(Simulation.this)#ID, Any]]

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

    Permalink
    Attributes
    protected
  49. val simulationRandom: Random

    Permalink
    Attributes
    protected
  50. val simulationSeed: Long

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

    Permalink
    Definition Classes
    AnyRef
  52. val toStr: ((Simulation.this)#NetworkSimulator) ⇒ String

    Permalink
  53. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. 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 SimpleSource

Inherited from Source

Inherited from (Simulation.this)#SimulatorOps

Inherited from (Simulation.this)#Network

Inherited from AnyRef

Inherited from Any

Ungrouped