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.



1301
1302
1303
1304
1305
1306
1307
1308
1309
# File 'lib/mdk_runtime.rb', line 1301

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.



1294
1295
1296
# File 'lib/mdk_runtime.rb', line 1294

def event
  @event
end

#requesterObject

Returns the value of attribute requester.



1294
1295
1296
# File 'lib/mdk_runtime.rb', line 1294

def requester
  @requester
end

#timeServiceObject

Returns the value of attribute timeService.



1294
1295
1296
# File 'lib/mdk_runtime.rb', line 1294

def timeService
  @timeService
end

Instance Method Details

#__init_fields__Object



1359
1360
1361
1362
1363
1364
1365
1366
# File 'lib/mdk_runtime.rb', line 1359

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

    nil
end

#_getClassObject



1321
1322
1323
1324
1325
1326
# File 'lib/mdk_runtime.rb', line 1321

def _getClass()
    
    return "mdk_runtime._ScheduleTask"

    nil
end

#_getField(name) ⇒ Object



1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
# File 'lib/mdk_runtime.rb', line 1328

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



1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
# File 'lib/mdk_runtime.rb', line 1344

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



1314
1315
1316
1317
1318
1319
# File 'lib/mdk_runtime.rb', line 1314

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

    nil
end