Class: Syskit::Models::BoundDataService::DRoby

Inherits:
Struct
  • Object
show all
Defined in:
lib/syskit/models/bound_data_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#component_modelObject

Returns the value of attribute component_model

Returns:

  • (Object)

    the current value of component_model



407
408
409
# File 'lib/syskit/models/bound_data_service.rb', line 407

def component_model
  @component_model
end

#masterObject

Returns the value of attribute master

Returns:

  • (Object)

    the current value of master



407
408
409
# File 'lib/syskit/models/bound_data_service.rb', line 407

def master
  @master
end

#modelObject

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



407
408
409
# File 'lib/syskit/models/bound_data_service.rb', line 407

def model
  @model
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



407
408
409
# File 'lib/syskit/models/bound_data_service.rb', line 407

def name
  @name
end

Instance Method Details

#proxy(peer) ⇒ Object



408
409
410
411
412
413
414
415
# File 'lib/syskit/models/bound_data_service.rb', line 408

def proxy(peer)
    component_model = peer.local_object(self.component_model)
    if srv = component_model.find_data_service(name)
        return srv
    else
        BoundDataService.new(name, component_model, peer.local_object(master), peer.local_object(model), Hash.new)
    end
end