Class: Quark::MdkRuntime::Actors::Actor
- Inherits:
-
DatawireQuarkCore::QuarkObject
- Object
- DatawireQuarkCore::QuarkObject
- Quark::MdkRuntime::Actors::Actor
- Extended by:
- DatawireQuarkCore::Static
- Defined in:
- lib/mdk_runtime/actors.rb
Overview
A store of some state. Emits events and handles events.
Constant Summary
Constants included from DatawireQuarkCore::Static
DatawireQuarkCore::Static::Unassigned
Instance Method Summary collapse
- #__init_fields__ ⇒ Object
-
#initialize ⇒ Actor
constructor
A new instance of Actor.
-
#onMessage(origin, message) ⇒ Object
Called on incoming one-way message from another actor sent via tell().
-
#onStart(dispatcher) ⇒ Object
The Actor should start operating.
-
#onStop ⇒ Object
The Actor should begin shutting down.
Methods included from DatawireQuarkCore::Static
_lazy_statics, static, unlazy_statics
Methods inherited from DatawireQuarkCore::QuarkObject
Constructor Details
#initialize ⇒ Actor
Returns a new instance of Actor.
25 26 27 28 29 |
# File 'lib/mdk_runtime/actors.rb', line 25 def initialize() self.__init_fields__ nil end |
Instance Method Details
#__init_fields__ ⇒ Object
62 63 64 65 66 |
# File 'lib/mdk_runtime/actors.rb', line 62 def __init_fields__() nil end |
#onMessage(origin, message) ⇒ Object
Called on incoming one-way message from another actor sent via tell().
56 57 58 59 60 |
# File 'lib/mdk_runtime/actors.rb', line 56 def onMessage(origin, ) raise NotImplementedError, '`Actor.onMessage` is an abstract method' nil end |
#onStart(dispatcher) ⇒ Object
The Actor should start operating.
37 38 39 40 41 |
# File 'lib/mdk_runtime/actors.rb', line 37 def onStart(dispatcher) raise NotImplementedError, '`Actor.onStart` is an abstract method' nil end |
#onStop ⇒ Object
The Actor should begin shutting down.
46 47 48 49 50 51 |
# File 'lib/mdk_runtime/actors.rb', line 46 def onStop() nil nil end |