Class: Quark::MdkRuntime::Schedule

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(event, seconds) ⇒ Schedule

Returns a new instance of Schedule.



639
640
641
642
643
644
645
646
# File 'lib/mdk_runtime.rb', line 639

def initialize(event, seconds)
    
    self.__init_fields__
    (self).event = event
    (self).seconds = seconds

    nil
end

Instance Attribute Details

#eventObject

Returns the value of attribute event.



632
633
634
# File 'lib/mdk_runtime.rb', line 632

def event
  @event
end

#secondsObject

Returns the value of attribute seconds.



632
633
634
# File 'lib/mdk_runtime.rb', line 632

def seconds
  @seconds
end

Instance Method Details

#__init_fields__Object



683
684
685
686
687
688
689
# File 'lib/mdk_runtime.rb', line 683

def __init_fields__()
    
    self.event = nil
    self.seconds = nil

    nil
end

#_getClassObject



651
652
653
654
655
656
# File 'lib/mdk_runtime.rb', line 651

def _getClass()
    
    return "mdk_runtime.Schedule"

    nil
end

#_getField(name) ⇒ Object



658
659
660
661
662
663
664
665
666
667
668
669
# File 'lib/mdk_runtime.rb', line 658

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

    nil
end

#_setField(name, value) ⇒ Object



671
672
673
674
675
676
677
678
679
680
681
# File 'lib/mdk_runtime.rb', line 671

def _setField(name, value)
    
    if ((name) == ("event"))
        (self).event = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("seconds"))
        (self).seconds = ::DatawireQuarkCore.cast(value) { ::Float }
    end

    nil
end