Class: Roma::Test::RomaProc

Inherits:
Object
  • Object
show all
Defined in:
lib/roma/tools/test-scenario.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(a, p) ⇒ RomaProc

Returns a new instance of RomaProc.



16
17
18
19
# File 'lib/roma/tools/test-scenario.rb', line 16

def initialize a, p
  @addr = a
  @port = p
end

Instance Attribute Details

#addrObject

Returns the value of attribute addr.



12
13
14
# File 'lib/roma/tools/test-scenario.rb', line 12

def addr
  @addr
end

#pidObject

Returns the value of attribute pid.



14
15
16
# File 'lib/roma/tools/test-scenario.rb', line 14

def pid
  @pid
end

#portObject

Returns the value of attribute port.



13
14
15
# File 'lib/roma/tools/test-scenario.rb', line 13

def port
  @port
end

Class Method Details

.to_str(procs) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/roma/tools/test-scenario.rb', line 21

def self.to_str procs
  msg = ""
  procs.each { |proc|
    msg = msg + proc.addr + "_" + proc.port.to_s + " "
  }
  msg
end