Class: TTK::Services::TesterClient

Inherits:
DRbService show all
Includes:
SubTestable
Defined in:
lib/ttk/services/TesterClient.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DRbService

#stop_service, #update

Constructor Details

#initializeTesterClient

Returns a new instance of TesterClient.



14
15
16
17
18
# File 'lib/ttk/services/TesterClient.rb', line 14

def initialize
  sub_testable_initialize
  @master = nil
  @slave = nil
end

Instance Attribute Details

#masterObject (readonly)

Returns the value of attribute master.



20
21
22
# File 'lib/ttk/services/TesterClient.rb', line 20

def master
  @master
end

#slaveObject (readonly)

Returns the value of attribute slave.



21
22
23
# File 'lib/ttk/services/TesterClient.rb', line 21

def slave
  @slave
end

Instance Method Details

#start_service(uri = nil, sub_tester_uris = [], local_slave = false) ⇒ Object



23
24
25
26
27
28
29
30
31
# File 'lib/ttk/services/TesterClient.rb', line 23

def start_service(uri=nil, sub_tester_uris=[], local_slave=false)
  super(uri)
  sub_testable_set(sub_tester_uris)
  if local_slave
    @slave = Testers::Slave.new(self, 'local slave')
    @sub_testers[self.uri] = @slave
  end
  @master = Testers::Master.new(self, 'local master', @sub_testers)
end