Class: IceGrid::ServerInstanceDescriptor

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
ruby/IceGrid/Descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Ice::Inspect_mixin

#inspect

Constructor Details

#initialize(template = '', parameterValues = nil, propertySet = ::IceGrid::PropertySetDescriptor.new, servicePropertySets = nil) ⇒ ServerInstanceDescriptor

Returns a new instance of ServerInstanceDescriptor.



389
390
391
392
393
394
# File 'ruby/IceGrid/Descriptor.rb', line 389

def initialize(template='', parameterValues=nil, propertySet=::IceGrid::PropertySetDescriptor.new, servicePropertySets=nil)
    @template = template
    @parameterValues = parameterValues
    @propertySet = propertySet
    @servicePropertySets = servicePropertySets
end

Instance Attribute Details

#parameterValuesObject

Returns the value of attribute parameterValues.



418
419
420
# File 'ruby/IceGrid/Descriptor.rb', line 418

def parameterValues
  @parameterValues
end

#propertySetObject

Returns the value of attribute propertySet.



418
419
420
# File 'ruby/IceGrid/Descriptor.rb', line 418

def propertySet
  @propertySet
end

#servicePropertySetsObject

Returns the value of attribute servicePropertySets.



418
419
420
# File 'ruby/IceGrid/Descriptor.rb', line 418

def servicePropertySets
  @servicePropertySets
end

#templateObject

Returns the value of attribute template.



418
419
420
# File 'ruby/IceGrid/Descriptor.rb', line 418

def template
  @template
end

Instance Method Details

#==(other) ⇒ Object



405
406
407
408
409
410
411
412
# File 'ruby/IceGrid/Descriptor.rb', line 405

def ==(other)
    return false if !other.is_a? ::IceGrid::ServerInstanceDescriptor or
        @template != other.template or
        @parameterValues != other.parameterValues or
        @propertySet != other.propertySet or
        @servicePropertySets != other.servicePropertySets
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


414
415
416
# File 'ruby/IceGrid/Descriptor.rb', line 414

def eql?(other)
    return other.class == self.class && other == self
end

#hashObject



396
397
398
399
400
401
402
403
# File 'ruby/IceGrid/Descriptor.rb', line 396

def hash
    _h = 0
    _h = 5 * _h + @template.hash
    _h = 5 * _h + @parameterValues.hash
    _h = 5 * _h + @propertySet.hash
    _h = 5 * _h + @servicePropertySets.hash
    _h % 0x7fffffff
end