Class: Quark::MdkRuntime::Actors::ManualLaterCaller

Inherits:
DatawireQuarkCore::QuarkObject show all
Extended by:
DatawireQuarkCore::Static
Defined in:
lib/mdk_runtime/actors.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

#initializeManualLaterCaller

Returns a new instance of ManualLaterCaller.



410
411
412
413
414
# File 'lib/mdk_runtime/actors.rb', line 410

def initialize()
    self.__init_fields__

    nil
end

Instance Attribute Details

#tasksObject

Returns the value of attribute tasks.



402
403
404
# File 'lib/mdk_runtime/actors.rb', line 402

def tasks
  @tasks
end

Instance Method Details

#__init_fields__Object



476
477
478
479
480
481
# File 'lib/mdk_runtime/actors.rb', line 476

def __init_fields__()
    
    self.tasks = ::DatawireQuarkCore::List.new([])

    nil
end

#_getClassObject



450
451
452
453
454
455
# File 'lib/mdk_runtime/actors.rb', line 450

def _getClass()
    
    return "mdk_runtime.actors._ManualLaterCaller"

    nil
end

#_getField(name) ⇒ Object



457
458
459
460
461
462
463
464
465
# File 'lib/mdk_runtime/actors.rb', line 457

def _getField(name)
    
    if ((name) == ("tasks"))
        return (self).tasks
    end
    return nil

    nil
end

#_setField(name, value) ⇒ Object



467
468
469
470
471
472
473
474
# File 'lib/mdk_runtime/actors.rb', line 467

def _setField(name, value)
    
    if ((name) == ("tasks"))
        (self).tasks = ::DatawireQuarkCore.cast(value) { ::DatawireQuarkCore::List }
    end

    nil
end

#doNextObject



426
427
428
429
430
431
432
# File 'lib/mdk_runtime/actors.rb', line 426

def doNext()
    
    t = (@tasks).delete_at(0)
    t.onExecute(nil)

    nil
end

#hasNextObject



434
435
436
437
438
439
# File 'lib/mdk_runtime/actors.rb', line 434

def hasNext()
    
    return ((@tasks).size) > (0)

    nil
end

#runAllObject



441
442
443
444
445
446
447
448
# File 'lib/mdk_runtime/actors.rb', line 441

def runAll()
    
    while (self.hasNext()) do
        self.doNext()
    end

    nil
end

#schedule(t) ⇒ Object



419
420
421
422
423
424
# File 'lib/mdk_runtime/actors.rb', line 419

def schedule(t)
    
    (@tasks) << (t)

    nil
end