Class: Quark::MdkRuntime::Happening

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

Overview

A scheduled event is now happening.

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, currentTime) ⇒ Happening

Returns a new instance of Happening.



707
708
709
710
711
712
713
714
# File 'lib/mdk_runtime.rb', line 707

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

    nil
end

Instance Attribute Details

#currentTimeObject

Returns the value of attribute currentTime.



700
701
702
# File 'lib/mdk_runtime.rb', line 700

def currentTime
  @currentTime
end

#eventObject

Returns the value of attribute event.



700
701
702
# File 'lib/mdk_runtime.rb', line 700

def event
  @event
end

Instance Method Details

#__init_fields__Object



751
752
753
754
755
756
757
# File 'lib/mdk_runtime.rb', line 751

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

    nil
end

#_getClassObject



719
720
721
722
723
724
# File 'lib/mdk_runtime.rb', line 719

def _getClass()
    
    return "mdk_runtime.Happening"

    nil
end

#_getField(name) ⇒ Object



726
727
728
729
730
731
732
733
734
735
736
737
# File 'lib/mdk_runtime.rb', line 726

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

    nil
end

#_setField(name, value) ⇒ Object



739
740
741
742
743
744
745
746
747
748
749
# File 'lib/mdk_runtime.rb', line 739

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

    nil
end