Module: MobyController::QT::AgentCommand

Includes:
Abstraction
Defined in:
lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/agent.rb

Instance Method Summary collapse

Instance Method Details

#make_messageObject

TODO: document me overloads default MobyController::Abstraction#make_message



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/agent.rb', line 30

def make_message

  command = @parameters[ :command ]

  case command
  
    when :version
    
      # query agent version from versionService
      Comms::MessageGenerator.generate( '<TasCommands service="versionService" />' )
  
  else
  
    # raise exception if command not implemented
    raise NotImplementedError, "command #{ command.inspect } not implemented in #{ self.class.name }"
  
  end

end