Class: IceGrid::ServiceInstanceDescriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/IceGrid/Descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ServiceInstanceDescriptor.



644
645
646
647
648
649
# File 'lib/IceGrid/Descriptor.rb', line 644

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.



677
678
679
# File 'lib/IceGrid/Descriptor.rb', line 677

def descriptor
  @descriptor
end

#parameterValuesObject

Returns the value of attribute parameterValues.



677
678
679
# File 'lib/IceGrid/Descriptor.rb', line 677

def parameterValues
  @parameterValues
end

#propertySetObject

Returns the value of attribute propertySet.



677
678
679
# File 'lib/IceGrid/Descriptor.rb', line 677

def propertySet
  @propertySet
end

#templateObject

Returns the value of attribute template.



677
678
679
# File 'lib/IceGrid/Descriptor.rb', line 677

def template
  @template
end

Instance Method Details

#==(other) ⇒ Object



660
661
662
663
664
665
666
667
# File 'lib/IceGrid/Descriptor.rb', line 660

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)


669
670
671
# File 'lib/IceGrid/Descriptor.rb', line 669

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

#hashObject



651
652
653
654
655
656
657
658
# File 'lib/IceGrid/Descriptor.rb', line 651

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

#inspectObject



673
674
675
# File 'lib/IceGrid/Descriptor.rb', line 673

def inspect
    ::Ice::__stringify(self, T_ServiceInstanceDescriptor)
end