|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RobotResponseFactory
Factory for creating the default types of RobotResponses.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 to
RobotDefinitionResponse createDefinitionResponse(RobotResponse.RobotResponseHeader header,
Robot robot)
header - response header to userobot - robot to define
RobotResponse.RobotStatusResponse createStatusResponse(RobotResponse.RobotResponseHeader header,
boolean status)
header - response header to usestatus - response status value
RobotResponse.RobotPositionResponse createPositionResponse(RobotResponse.RobotResponseHeader header,
Robot.RobotPositionMap positions)
header - response header to usepositions - RobotPositionMap to respond with
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||