public interface RobotResponseFactory
| Modifier and Type | Method and Description |
|---|---|
RobotDefinitionResponse |
createDefinitionResponse(RobotResponse.RobotResponseHeader header,
Robot robot)
Creates a new RobotDefinitionResponse.
|
RobotResponse.RobotResponseHeader |
createHeader(Robot.Id robotId,
String sourceId,
String destinationId,
String requestType,
long requestTimestamp)
Creates a response header.
|
RobotResponse.RobotPositionResponse |
createPositionResponse(RobotResponse.RobotResponseHeader header,
Robot.RobotPositionMap positions)
Creates a new RobotPositionResponse.
|
RobotResponse.RobotStatusResponse |
createStatusResponse(RobotResponse.RobotResponseHeader header,
boolean status)
Creates a new RobotStatusResponse.
|
RobotResponse.RobotResponseHeader createHeader(Robot.Id robotId, String sourceId, String destinationId, String requestType, long requestTimestamp)
robotId - responding robotsourceId - response sourcedestinationId - response destinationrequestType - type of request being responded torequestTimestamp - timestamp of the request being responded toRobotDefinitionResponse createDefinitionResponse(RobotResponse.RobotResponseHeader header, Robot robot)
header - response header to userobot - robot to defineRobotResponse.RobotStatusResponse createStatusResponse(RobotResponse.RobotResponseHeader header, boolean status)
header - response header to usestatus - response status valueRobotResponse.RobotPositionResponse createPositionResponse(RobotResponse.RobotResponseHeader header, Robot.RobotPositionMap positions)
header - response header to usepositions - RobotPositionMap to respond withCopyright © 2011-2014. All Rights Reserved.