Class: IceGrid::ServiceInstanceDescriptor

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, descriptor = nil, propertySet = ::IceGrid::PropertySetDescriptor.new) ⇒ ServiceInstanceDescriptor

Returns a new instance of ServiceInstanceDescriptor.



479
480
481
482
483
484
# File 'ruby/IceGrid/Descriptor.rb', line 479

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

Instance Attribute Details

#descriptorObject

Returns the value of attribute descriptor.



508
509
510
# File 'ruby/IceGrid/Descriptor.rb', line 508

def descriptor
  @descriptor
end

#parameterValuesObject

Returns the value of attribute parameterValues.



508
509
510
# File 'ruby/IceGrid/Descriptor.rb', line 508

def parameterValues
  @parameterValues
end

#propertySetObject

Returns the value of attribute propertySet.



508
509
510
# File 'ruby/IceGrid/Descriptor.rb', line 508

def propertySet
  @propertySet
end

#templateObject

Returns the value of attribute template.



508
509
510
# File 'ruby/IceGrid/Descriptor.rb', line 508

def template
  @template
end

Instance Method Details

#==(other) ⇒ Object



495
496
497
498
499
500
501
502
# File 'ruby/IceGrid/Descriptor.rb', line 495

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

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


504
505
506
# File 'ruby/IceGrid/Descriptor.rb', line 504

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

#hashObject



486
487
488
489
490
491
492
493
# File 'ruby/IceGrid/Descriptor.rb', line 486

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