public static class PortableRobotResponse.Factory extends Object implements RobotResponseFactory
| Constructor and Description |
|---|
PortableRobotResponse.Factory() |
| Modifier and Type | Method and Description |
|---|---|
RobotDefinitionResponse |
createDefinitionResponse(RobotResponse.RobotResponseHeader header,
Robot robot) |
RobotResponse.RobotResponseHeader |
createHeader(Robot.Id robotId,
String sourceId,
String destinationId,
String commandType,
long requesTimestamp) |
RobotResponse.RobotPositionResponse |
createPositionResponse(RobotResponse.RobotResponseHeader header,
Robot.RobotPositionMap positions) |
RobotResponse.RobotStatusResponse |
createStatusResponse(RobotResponse.RobotResponseHeader header,
boolean status) |
public RobotResponse.RobotResponseHeader createHeader(Robot.Id robotId, String sourceId, String destinationId, String commandType, long requesTimestamp)
createHeader in interface RobotResponseFactorypublic RobotDefinitionResponse createDefinitionResponse(RobotResponse.RobotResponseHeader header, Robot robot)
createDefinitionResponse in interface RobotResponseFactorypublic RobotResponse.RobotStatusResponse createStatusResponse(RobotResponse.RobotResponseHeader header, boolean status)
createStatusResponse in interface RobotResponseFactorypublic RobotResponse.RobotPositionResponse createPositionResponse(RobotResponse.RobotResponseHeader header, Robot.RobotPositionMap positions)
createPositionResponse in interface RobotResponseFactoryCopyright © 2011-2014. All Rights Reserved.