Class: IceGrid::ServerInstanceDescriptor

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
lib/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.



410
411
412
413
414
415
# File 'lib/IceGrid/Descriptor.rb', line 410

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.



439
440
441
# File 'lib/IceGrid/Descriptor.rb', line 439

def parameterValues
  @parameterValues
end

#propertySetObject

Returns the value of attribute propertySet.



439
440
441
# File 'lib/IceGrid/Descriptor.rb', line 439

def propertySet
  @propertySet
end

#servicePropertySetsObject

Returns the value of attribute servicePropertySets.



439
440
441
# File 'lib/IceGrid/Descriptor.rb', line 439

def servicePropertySets
  @servicePropertySets
end

#templateObject

Returns the value of attribute template.



439
440
441
# File 'lib/IceGrid/Descriptor.rb', line 439

def template
  @template
end

Instance Method Details

#==(other) ⇒ Object



426
427
428
429
430
431
432
433
# File 'lib/IceGrid/Descriptor.rb', line 426

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)


435
436
437
# File 'lib/IceGrid/Descriptor.rb', line 435

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

#hashObject



417
418
419
420
421
422
423
424
# File 'lib/IceGrid/Descriptor.rb', line 417

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