Class: Quark::MdkProtocol::Open

Inherits:
Object
  • Object
show all
Extended by:
DatawireQuarkCore::Static
Defined in:
lib/mdk_protocol.rb

Overview

A message sent whenever a new connection is opened, by both sides.

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

Constructor Details

#initializeOpen

Returns a new instance of Open.



568
569
570
571
572
573
# File 'lib/mdk_protocol.rb', line 568

def initialize()
    
    super()

    nil
end

Instance Attribute Details

#environmentObject

Returns the value of attribute environment.



560
561
562
# File 'lib/mdk_protocol.rb', line 560

def environment
  @environment
end

#mdkVersionObject

Returns the value of attribute mdkVersion.



560
561
562
# File 'lib/mdk_protocol.rb', line 560

def mdkVersion
  @mdkVersion
end

#nodeIdObject

Returns the value of attribute nodeId.



560
561
562
# File 'lib/mdk_protocol.rb', line 560

def nodeId
  @nodeId
end

#propertiesObject

Returns the value of attribute properties.



560
561
562
# File 'lib/mdk_protocol.rb', line 560

def properties
  @properties
end

#versionObject

Returns the value of attribute version.



560
561
562
# File 'lib/mdk_protocol.rb', line 560

def version
  @version
end

Instance Method Details

#__init_fields__Object



634
635
636
637
638
639
640
641
642
643
644
# File 'lib/mdk_protocol.rb', line 634

def __init_fields__()
    
    super
    self.version = "2.0.0"
    self.mdkVersion = ""
    self.properties = {}
    self.nodeId = nil
    self.environment = ::Quark.mdk_protocol.OperationalEnvironment.new()

    nil
end

#_getClassObject



578
579
580
581
582
583
# File 'lib/mdk_protocol.rb', line 578

def _getClass()
    
    return "mdk_protocol.Open"

    nil
end

#_getField(name) ⇒ Object



585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
# File 'lib/mdk_protocol.rb', line 585

def _getField(name)
    
    if ((name) == ("_json_type"))
        return ::Quark.mdk_protocol.Open._json_type
    end
    if ((name) == ("version"))
        return (self).version
    end
    if ((name) == ("mdkVersion"))
        return (self).mdkVersion
    end
    if ((name) == ("properties"))
        return (self).properties
    end
    if ((name) == ("nodeId"))
        return (self).nodeId
    end
    if ((name) == ("environment"))
        return (self).environment
    end
    return nil

    nil
end

#_setField(name, value) ⇒ Object



610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
# File 'lib/mdk_protocol.rb', line 610

def _setField(name, value)
    
    if ((name) == ("_json_type"))
        ::Quark.mdk_protocol.Open._json_type = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("version"))
        (self).version = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("mdkVersion"))
        (self).mdkVersion = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("properties"))
        (self).properties = ::DatawireQuarkCore.cast(value) { ::Hash }
    end
    if ((name) == ("nodeId"))
        (self).nodeId = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("environment"))
        (self).environment = ::DatawireQuarkCore.cast(value) { ::Quark.mdk_protocol.OperationalEnvironment }
    end

    nil
end