Class: Quark::MdkRuntime::ScheduleTask

Inherits:
DatawireQuarkCore::QuarkObject show all
Extended by:
DatawireQuarkCore::Static
Defined in:
lib/mdk_runtime.rb

Constant Summary

Constants included from DatawireQuarkCore::Static

DatawireQuarkCore::Static::Unassigned

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DatawireQuarkCore::Static

_lazy_statics, static, unlazy_statics

Methods inherited from DatawireQuarkCore::QuarkObject

#to_s

Constructor Details

#initialize(timeService, requester, event) ⇒ ScheduleTask

Returns a new instance of ScheduleTask.



1306
1307
1308
1309
1310
1311
1312
1313
1314
# File 'lib/mdk_runtime.rb', line 1306

def initialize(timeService, requester, event)
    
    self.__init_fields__
    (self).timeService = timeService
    (self).requester = requester
    (self).event = event

    nil
end

Instance Attribute Details

#eventObject

Returns the value of attribute event.



1299
1300
1301
# File 'lib/mdk_runtime.rb', line 1299

def event
  @event
end

#requesterObject

Returns the value of attribute requester.



1299
1300
1301
# File 'lib/mdk_runtime.rb', line 1299

def requester
  @requester
end

#timeServiceObject

Returns the value of attribute timeService.



1299
1300
1301
# File 'lib/mdk_runtime.rb', line 1299

def timeService
  @timeService
end

Instance Method Details

#__init_fields__Object



1364
1365
1366
1367
1368
1369
1370
1371
# File 'lib/mdk_runtime.rb', line 1364

def __init_fields__()
    
    self.timeService = nil
    self.requester = nil
    self.event = nil

    nil
end

#_getClassObject



1326
1327
1328
1329
1330
1331
# File 'lib/mdk_runtime.rb', line 1326

def _getClass()
    
    return "mdk_runtime._ScheduleTask"

    nil
end

#_getField(name) ⇒ Object



1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
# File 'lib/mdk_runtime.rb', line 1333

def _getField(name)
    
    if ((name) == ("timeService"))
        return (self).timeService
    end
    if ((name) == ("requester"))
        return (self).requester
    end
    if ((name) == ("event"))
        return (self).event
    end
    return nil

    nil
end

#_setField(name, value) ⇒ Object



1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
# File 'lib/mdk_runtime.rb', line 1349

def _setField(name, value)
    
    if ((name) == ("timeService"))
        (self).timeService = ::DatawireQuarkCore.cast(value) { ::Quark.mdk_runtime.QuarkRuntimeTime }
    end
    if ((name) == ("requester"))
        (self).requester = ::DatawireQuarkCore.cast(value) { ::Quark.mdk_runtime.actors.Actor }
    end
    if ((name) == ("event"))
        (self).event = ::DatawireQuarkCore.cast(value) { ::String }
    end

    nil
end

#onExecute(runtime) ⇒ Object



1319
1320
1321
1322
1323
1324
# File 'lib/mdk_runtime.rb', line 1319

def onExecute(runtime)
    
    (@timeService).dispatcher.tell((self).timeService, ::Quark.mdk_runtime.Happening.new((self).event, (self).timeService.time()), (self).requester)

    nil
end