Trait

it.unibo.scafi.distrib.actor.PlatformDevices

ObservableDeviceActor

Related Doc: package PlatformDevices

Permalink

trait ObservableDeviceActor extends Platform.ComputationDeviceActor with ObservableActorBehavior

Extends a ComputationDeviceActor with an ObservableActorBehavior. In other wards, it defines a computation device actors that is also observable, that is, can handle a set of observers and can notify them when certain events occur. In particular, observers are notified:

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObservableDeviceActor
  2. ObservableActorBehavior
  3. ComputationDeviceActor
  4. BaseNbrManagementBehavior
  5. ActuatorManagementBehavior
  6. SensorManagementBehavior
  7. SensingBehavior
  8. BasicActorBehavior
  9. BaseDeviceActor
  10. Actor
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

Abstract Value Members

  1. abstract val aggregateExecutor: Option[Platform.ProgramContract]

    Permalink
    Definition Classes
    ComputationDeviceActor
  2. abstract def propagateMsgToNeighbors(msg: Any): Unit

    Permalink
    Definition Classes
    ComputationDeviceActor
  3. abstract val selfId: Platform.UID

    Permalink
    Definition Classes
    BaseDeviceActor

Concrete 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 ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def actuatorManagementBehavior: Receive

    Permalink
    Definition Classes
    ActuatorManagementBehavior
  5. val actuators: Map[Platform.LSensorName, (Any) ⇒ Unit]

    Permalink
    Definition Classes
    ActuatorManagementBehavior
  6. def afterJob(): Unit

    Permalink
  7. def aroundPostRestart(reason: Throwable): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  8. def aroundPostStop(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  9. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  10. def aroundPreStart(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  11. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def beforeJob(): Unit

    Permalink
    Definition Classes
    ComputationDeviceActor
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  15. def commandManagementBehavior: Receive

    Permalink
    Definition Classes
    BasicActorBehavior
  16. def compute(ctx: Platform.ComputationContext): Platform.ComputationExport

    Permalink
    Definition Classes
    ComputationDeviceActor
  17. implicit val context: ActorContext

    Permalink
    Definition Classes
    Actor
  18. def currentStateMessage: Any

    Permalink
    Definition Classes
    ObservableActorBehavior
  19. def doJob(): Unit

    Permalink
    Definition Classes
    ComputationDeviceActor
  20. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def executeActuators(value: Any): Unit

    Permalink
    Definition Classes
    ActuatorManagementBehavior
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  25. def inputManagementBehavior: Receive

    Permalink
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. var lastExport: Option[Platform.ComputationExport]

    Permalink
    Definition Classes
    ComputationDeviceActor
  28. val localSensors: Map[Platform.LSensorName, () ⇒ Any]

    Permalink
    Definition Classes
    SensorManagementBehavior
  29. val logger: LoggingAdapter

    Permalink
    Definition Classes
    BasicActorBehavior
  30. def mergeNeighborInfo(idn: Platform.UID, info: NbrInfo): Unit

    Permalink
    Definition Classes
    BaseNbrManagementBehavior
  31. val nbrSensorValues: Map[Platform.NSensorName, Map[Platform.UID, Any]]

    Permalink
    Definition Classes
    SensingBehavior
  32. var nbrs: Map[Platform.UID, NbrInfo]

    Permalink
    Definition Classes
    BaseNbrManagementBehavior
  33. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  34. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  36. def notifyObservers(msg: Any): Unit

    Permalink
    Definition Classes
    ObservableActorBehavior
  37. def notifyObservers(): Unit

    Permalink
    Definition Classes
    ObservableActorBehavior
  38. def observerAdded(ref: ActorRef): Unit

    Permalink
  39. val observers: Set[ActorRef]

    Permalink
    Definition Classes
    ObservableActorBehavior
  40. def observersManagementBehavior: Receive

    Permalink
    Definition Classes
    ObservableActorBehavior
  41. def postRestart(reason: Throwable): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  42. def postStop(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  43. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  44. def preStart(): Unit

    Permalink
    Definition Classes
    ComputationDeviceActor → Actor
  45. def propagateExportToNeighbors(export: Platform.ComputationExport): Unit

    Permalink
    Definition Classes
    ComputationDeviceActor
  46. def queryManagementBehavior: Receive

    Permalink
    Definition Classes
    BasicActorBehavior
  47. def receive: Receive

    Permalink
    Definition Classes
    ObservableDeviceActorBasicActorBehavior → Actor
  48. def removeNeighbor(idn: Platform.UID): Unit

    Permalink
  49. var rounds: Int

    Permalink
    Definition Classes
    ComputationDeviceActor
  50. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  51. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  52. def sensingBehavior: Receive

    Permalink
    Definition Classes
    SensingBehavior
  53. def sensorManagementBehavior: Receive

    Permalink
    Definition Classes
    SensorManagementBehavior
  54. val sensorValues: Map[Platform.LSensorName, Any]

    Permalink
    Definition Classes
    SensingBehavior
  55. def setActuator(name: Platform.LSensorName, consumer: (Any) ⇒ Unit): Unit

    Permalink
    Definition Classes
    ActuatorManagementBehavior
  56. def setLocalSensor(name: Platform.LSensorName, provider: () ⇒ Any): Unit

    Permalink
    Definition Classes
    SensorManagementBehavior
  57. def setLocalSensorValue(name: Platform.LSensorName, value: Any): Unit

    Permalink
    Definition Classes
    ObservableDeviceActorSensingBehavior
  58. def setNbrSensorValue(name: Platform.NSensorName, map: Map[Platform.UID, Any]): Unit

    Permalink
    Definition Classes
    SensingBehavior
  59. def supervisorStrategy: SupervisorStrategy

    Permalink
    Definition Classes
    Actor
  60. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  61. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  62. def unhandled(message: Any): Unit

    Permalink
    Definition Classes
    Actor
  63. def updateNeighborhood(neighbors: Set[Platform.UID], clear: Boolean = false): Unit

    Permalink
  64. def updateNeighborsState(nexps: Map[Platform.UID, Option[Platform.ComputationExport]], clear: Boolean = false): Unit

    Permalink
  65. def updateSensorValues(): Unit

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. def workingBehavior: Receive

    Permalink

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 ObservableActorBehavior

Inherited from Platform.SensingBehavior

Inherited from BasicActorBehavior

Inherited from Platform.BaseDeviceActor

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped