org.robokind.impl.motion.messaging.command
Class PortableRobotResponseFactory

java.lang.Object
  extended by org.robokind.impl.motion.messaging.command.PortableRobotResponseFactory
All Implemented Interfaces:
RobotResponseFactory

public class PortableRobotResponseFactory
extends Object
implements RobotResponseFactory

Author:
Matthew Stevenson

Constructor Summary
PortableRobotResponseFactory()
           
 
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

PortableRobotResponseFactory

public PortableRobotResponseFactory()
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-2012. All Rights Reserved.