Class: IceGrid::NodeDescriptor
- Inherits:
-
Object
- Object
- IceGrid::NodeDescriptor
- Includes:
- Ice::Inspect_mixin
- Defined in:
- ruby/IceGrid/Descriptor.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#loadFactor ⇒ Object
Returns the value of attribute loadFactor.
-
#propertySets ⇒ Object
Returns the value of attribute propertySets.
-
#serverInstances ⇒ Object
Returns the value of attribute serverInstances.
-
#servers ⇒ Object
Returns the value of attribute servers.
-
#variables ⇒ Object
Returns the value of attribute variables.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(variables = nil, serverInstances = nil, servers = nil, loadFactor = '', description = '', propertySets = nil) ⇒ NodeDescriptor
constructor
A new instance of NodeDescriptor.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(variables = nil, serverInstances = nil, servers = nil, loadFactor = '', description = '', propertySets = nil) ⇒ NodeDescriptor
Returns a new instance of NodeDescriptor.
544 545 546 547 548 549 550 551 |
# File 'ruby/IceGrid/Descriptor.rb', line 544 def initialize(variables=nil, serverInstances=nil, servers=nil, loadFactor='', description='', propertySets=nil) @variables = variables @serverInstances = serverInstances @servers = servers @loadFactor = loadFactor @description = description @propertySets = propertySets end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
579 580 581 |
# File 'ruby/IceGrid/Descriptor.rb', line 579 def description @description end |
#loadFactor ⇒ Object
Returns the value of attribute loadFactor.
579 580 581 |
# File 'ruby/IceGrid/Descriptor.rb', line 579 def loadFactor @loadFactor end |
#propertySets ⇒ Object
Returns the value of attribute propertySets.
579 580 581 |
# File 'ruby/IceGrid/Descriptor.rb', line 579 def propertySets @propertySets end |
#serverInstances ⇒ Object
Returns the value of attribute serverInstances.
579 580 581 |
# File 'ruby/IceGrid/Descriptor.rb', line 579 def serverInstances @serverInstances end |
#servers ⇒ Object
Returns the value of attribute servers.
579 580 581 |
# File 'ruby/IceGrid/Descriptor.rb', line 579 def servers @servers end |
#variables ⇒ Object
Returns the value of attribute variables.
579 580 581 |
# File 'ruby/IceGrid/Descriptor.rb', line 579 def variables @variables end |
Instance Method Details
#==(other) ⇒ Object
564 565 566 567 568 569 570 571 572 573 |
# File 'ruby/IceGrid/Descriptor.rb', line 564 def ==(other) return false if !other.is_a? ::IceGrid::NodeDescriptor or @variables != other.variables or @serverInstances != other.serverInstances or @servers != other.servers or @loadFactor != other.loadFactor or @description != other.description or @propertySets != other.propertySets true end |
#eql?(other) ⇒ Boolean
575 576 577 |
# File 'ruby/IceGrid/Descriptor.rb', line 575 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
553 554 555 556 557 558 559 560 561 562 |
# File 'ruby/IceGrid/Descriptor.rb', line 553 def hash _h = 0 _h = 5 * _h + @variables.hash _h = 5 * _h + @serverInstances.hash _h = 5 * _h + @servers.hash _h = 5 * _h + @loadFactor.hash _h = 5 * _h + @description.hash _h = 5 * _h + @propertySets.hash _h % 0x7fffffff end |