org.robokind.impl.motion.messaging
Class PortableRobotResponse.Factory

java.lang.Object
  extended by org.robokind.impl.motion.messaging.PortableRobotResponse.Factory
All Implemented Interfaces:
RobotResponseFactory
Enclosing class:
PortableRobotResponse

public static class PortableRobotResponse.Factory
extends Object
implements RobotResponseFactory


Constructor Summary
PortableRobotResponse.Factory()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortableRobotResponse.Factory

public PortableRobotResponse.Factory()
Method Detail

createHeader

public RobotResponse.RobotResponseHeader createHeader(Robot.Id robotId,
                                                      String sourceId,
                                                      String destinationId,
                                                      String commandType,
                                                      long requesTimestamp)
Specified by:
createHeader in interface RobotResponseFactory

createDefinitionResponse

public RobotDefinitionResponse createDefinitionResponse(RobotResponse.RobotResponseHeader header,
                                                        Robot robot)
Specified by:
createDefinitionResponse in interface RobotResponseFactory

createStatusResponse

public RobotResponse.RobotStatusResponse createStatusResponse(RobotResponse.RobotResponseHeader header,
                                                              boolean status)
Specified by:
createStatusResponse in interface RobotResponseFactory

createPositionResponse

public RobotResponse.RobotPositionResponse createPositionResponse(RobotResponse.RobotResponseHeader header,
                                                                  Robot.RobotPositionMap positions)
Specified by:
createPositionResponse in interface RobotResponseFactory


Copyright © 2011-2013. All Rights Reserved.