c

agents

JavaRoomAgent

class JavaRoomAgent extends JavaInternalAgent

Writes random generated numbers to a O-DF structure defined in createOdf() method. Can be used in testing or as a base for other agents.

Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JavaRoomAgent
  2. JavaInternalAgent
  3. InternalAgent
  4. AbstractActor
  5. Actor
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JavaRoomAgent(conf: Config, requestHandler: ActorRef, dbHandler: ActorRef)

Type Members

  1. final class LogFailure extends OnFailure
  2. final class LogResult extends OnSuccess[ResponseRequest]
  3. type Receive = PartialFunction[Any, Unit]
    Definition Classes
    Actor

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from JavaRoomAgent to any2stringadd[JavaRoomAgent] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (JavaRoomAgent, B)
    Implicit
    This member is added by an implicit conversion from JavaRoomAgent to ArrowAssoc[JavaRoomAgent] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def aroundPostRestart(reason: Throwable): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  7. def aroundPostStop(): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  8. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  9. def aroundPreStart(): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  10. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  13. implicit val context: ActorContext
    Definition Classes
    Actor
  14. def createExampleRoom(): OdfObject

    Method for creating O-DF Object for path Objects/ExampleRoom.

  15. def createLocation(parentPath: Path): OdfInfoItem

    Method for creating O-DF InfoItem for a location.

    Method for creating O-DF InfoItem for a location.

    Uses format specified in warp10 integration documentation.

    parentPath

    Path of parent O-DF Object.

  16. def createOdf(): OdfObjects

    Method for creating O-DF structure to be populated by this JavaInternalAgent.

  17. def createReceive(): Receive

    Method that is inherited from akka.actor.UntypedActor and handles incoming messages from other Actors.

    Method that is inherited from akka.actor.UntypedActor and handles incoming messages from other Actors.

    Definition Classes
    JavaRoomAgentJavaInternalAgent → AbstractActor
  18. def createSensor(name: String, unit: String, parentPath: Path): OdfInfoItem

    Method for creating O-DF InfoItem for a sensor.

    Method for creating O-DF InfoItem for a sensor.

    name

    Name of the sensor.

    unit

    Unit of measured values.

    parentPath

    Path of parent O-DF Object.

  19. def createSensorBox(parentPath: Path): OdfObject

    Method for creating O-DF Object for a SensorBox.

    Method for creating O-DF Object for a SensorBox.

    parentPath

    Path of parent O-DF Object.

  20. def ensuring(cond: (JavaRoomAgent) ⇒ Boolean, msg: ⇒ Any): JavaRoomAgent
    Implicit
    This member is added by an implicit conversion from JavaRoomAgent to Ensuring[JavaRoomAgent] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: (JavaRoomAgent) ⇒ Boolean): JavaRoomAgent
    Implicit
    This member is added by an implicit conversion from JavaRoomAgent to Ensuring[JavaRoomAgent] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean, msg: ⇒ Any): JavaRoomAgent
    Implicit
    This member is added by an implicit conversion from JavaRoomAgent to Ensuring[JavaRoomAgent] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean): JavaRoomAgent
    Implicit
    This member is added by an implicit conversion from JavaRoomAgent to Ensuring[JavaRoomAgent] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  26. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from JavaRoomAgent to StringFormat[JavaRoomAgent] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  28. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def getContext(): ActorContext
    Definition Classes
    AbstractActor
  30. def getSelf(): ActorRef
    Definition Classes
    AbstractActor
  31. def getSender(): ActorRef
    Definition Classes
    AbstractActor
  32. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. def name(): String

    Get name of the agent as was given in application.conf

    Get name of the agent as was given in application.conf

    Attributes
    protected[agentSystem]
    Definition Classes
    JavaInternalAgent
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. def postRestart(reason: Throwable): Unit
    Definition Classes
    AbstractActor → Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  39. def postStop(): Unit

    Method to be called when actor is stopped.

    Method to be called when actor is stopped. This should gracefully stop all activities that the agent is doing.

    Definition Classes
    JavaRoomAgent → AbstractActor → Actor
  40. def preRestart(reason: Throwable, message: Optional[Any]): Unit
    Definition Classes
    AbstractActor
    Annotations
    @throws( classOf[java.lang.Exception] )
  41. def preStart(): Unit
    Definition Classes
    AbstractActor → Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  42. final def readFromDB(read: ReadRequest): Future[ResponseRequest]
    Definition Classes
    JavaInternalAgent
  43. def receive: PartialFunction[Any, Unit]
    Definition Classes
    AbstractActor → Actor
  44. final def receiveBuilder(): ReceiveBuilder
    Definition Classes
    AbstractActor
  45. final def requestFromDB(request: OdfRequest): Future[ResponseRequest]

    Wrapper for easier request execution.

    Wrapper for easier request execution.

    Definition Classes
    JavaInternalAgent
  46. final def requestFromNode(request: OdfRequest): Future[ResponseRequest]
    Definition Classes
    JavaInternalAgent
  47. final def respond(msg: Any): Unit
    Attributes
    protected[agentSystem]
    Definition Classes
    JavaInternalAgent
  48. final def respondFuture(responseFuture: Future[ResponseRequest]): Unit
    Attributes
    protected[agentSystem]
    Definition Classes
    JavaInternalAgent
  49. implicit final val self: ActorRef
    Definition Classes
    Actor
  50. final def sender(): ActorRef
    Definition Classes
    Actor
  51. def supervisorStrategy: SupervisorStrategy
    Definition Classes
    AbstractActor → Actor
  52. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  53. def toString(): String
    Definition Classes
    AnyRef → Any
  54. def unhandled(message: Any): Unit
    Definition Classes
    Actor
  55. def update(): Unit

    Method to be called when a "Update" message is received.

    Method to be called when a "Update" message is received. Made specifically for this agent to be used with the Akka scheduler. Updates values in target path.

  56. def updateOdf(): Unit

    Method to be called when for updating values stored in odf.

  57. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  60. final def writeToDB(write: WriteRequest): Future[ResponseRequest]
    Definition Classes
    JavaInternalAgent
  61. final def writeToNode(write: WriteRequest, timeout: Timeout): Future[ResponseRequest]

    Wrapper for easier request execution.

    Wrapper for easier request execution.

    Definition Classes
    JavaInternalAgent
  62. def [B](y: B): (JavaRoomAgent, B)
    Implicit
    This member is added by an implicit conversion from JavaRoomAgent to ArrowAssoc[JavaRoomAgent] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def preRestart(reason: Throwable, message: Option[Any]): Unit
    Definition Classes
    AbstractActor → Actor
    Annotations
    @deprecated @throws( classOf[java.lang.Exception] )
    Deprecated

    (Since version 2.5.0) Override preRestart with message parameter with Optional type instead

Inherited from JavaInternalAgent

Inherited from InternalAgent

Inherited from AbstractActor

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from JavaRoomAgent to any2stringadd[JavaRoomAgent]

Inherited by implicit conversion StringFormat from JavaRoomAgent to StringFormat[JavaRoomAgent]

Inherited by implicit conversion Ensuring from JavaRoomAgent to Ensuring[JavaRoomAgent]

Inherited by implicit conversion ArrowAssoc from JavaRoomAgent to ArrowAssoc[JavaRoomAgent]

Ungrouped