public class ResponseContainer
extends Object
Constructor and Description |
---|
ResponseContainer(StatusResponse status,
Command response)
Constructor for a response container with status response and a response
command.
|
ResponseContainer(StatusResponse status,
Command response,
java.util.List<Command> subResponses)
Constructor for a response container with status response, response
command and zero or more sub-responses.
|
Modifier and Type | Method and Description |
---|---|
Command |
getResponse() |
StatusResponse |
getStatus()
Returns the status response
|
java.util.List<Command> |
getSubResponses() |
public ResponseContainer(StatusResponse status, Command response, java.util.List<Command> subResponses)
status
- statusresponse
- responsesubResponses
- sub responsepublic ResponseContainer(StatusResponse status, Command response)
status
- statusresponse
- responsepublic StatusResponse getStatus()
public Command getResponse()
null
if there is
no response to such command (i.e. a command that changes
something in the simulation state or the close command)public java.util.List<Command> getSubResponses()
null
if there are no sub-responses to such command
(i.e. commands different than CMD_SIMSTEP2)