Class: MTask::Task

Inherits:
Object
  • Object
show all
Defined in:
ext/lib/CompLearnLib/Task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sentTimeObject (readonly)

Returns the value of attribute sentTime.



8
9
10
# File 'ext/lib/CompLearnLib/Task.rb', line 8

def sentTime
  @sentTime
end

#tidObject (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

#aboutToSendObject



10
11
12
# File 'ext/lib/CompLearnLib/Task.rb', line 10

def aboutToSend()
  @sentTime = time
end

#executeObject



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