Class: MTask::Task
- Inherits:
-
Object
- Object
- MTask::Task
- Defined in:
- ext/lib/CompLearnLib/Task.rb
Instance Attribute Summary collapse
-
#sentTime ⇒ Object
readonly
Returns the value of attribute sentTime.
-
#tid ⇒ Object
readonly
Returns the value of attribute tid.
Instance Method Summary collapse
- #aboutToSend ⇒ Object
- #execute ⇒ Object
- #fetch(key) ⇒ Object
- #reply(result) ⇒ Object
- #setTid(ntid) ⇒ Object
Instance Attribute Details
#sentTime ⇒ Object (readonly)
Returns the value of attribute sentTime.
8 9 10 |
# File 'ext/lib/CompLearnLib/Task.rb', line 8 def sentTime @sentTime end |
#tid ⇒ Object (readonly)
Returns the value of attribute tid.
8 9 10 |
# File 'ext/lib/CompLearnLib/Task.rb', line 8 def tid @tid end |
Instance Method Details
#aboutToSend ⇒ Object
10 11 12 |
# File 'ext/lib/CompLearnLib/Task.rb', line 10 def aboutToSend() @sentTime = time end |
#execute ⇒ Object
26 27 28 |
# File 'ext/lib/CompLearnLib/Task.rb', line 26 def execute() reply(nil) end |
#fetch(key) ⇒ Object
22 23 24 |
# File 'ext/lib/CompLearnLib/Task.rb', line 22 def fetch(key) TaskMaster.fetch(key) end |
#reply(result) ⇒ Object
18 19 20 |
# File 'ext/lib/CompLearnLib/Task.rb', line 18 def reply(result) TaskMaster.reply(self,result) end |
#setTid(ntid) ⇒ Object
14 15 16 |
# File 'ext/lib/CompLearnLib/Task.rb', line 14 def setTid(ntid) @tid = ntid end |