org.robokind.api.motion.messaging
Class RemoteRobotHost

java.lang.Object
  extended by org.robokind.api.motion.messaging.RemoteRobotHost

public class RemoteRobotHost
extends Object

Author:
Matthew Stevenson

Constructor Summary
  RemoteRobotHost(Robot robot, String sourceId, String destinationId, MessageSender<RobotResponse,?,Listener<RobotResponse>> sender, MessageAsyncReceiver<RobotRequest,?,Listener<RobotRequest>> receiver, RobotResponseFactory factory, MessageAsyncReceiver<MotionFrameEvent,?,Listener<MotionFrameEvent>> motionFrameReceiver, Listener<MotionFrameEvent> moveHandler)
           
protected RemoteRobotHost(String sourceId, String destinationId)
           
 
Method Summary
 String getDestinationId()
           
protected  Joint getRequestedJoint(RobotRequest req)
           
 Robot.Id getRobotId()
           
 String getSourceId()
           
protected  void handleConnectionStatusRequest(RobotRequest req)
           
protected  void handleConnectRequest(RobotRequest req)
           
protected  void handleCurrentPositionRequest(RobotRequest req)
           
protected  void handleDefaultPositionRequest(RobotRequest req)
           
protected  void handleDefinitionRequest(RobotRequest req)
           
protected  void handleDisableRequest(RobotRequest req)
           
protected  void handleDisableRequestForJoint(RobotRequest req)
           
protected  void handleDisconnectRequest(RobotRequest req)
           
protected  void handleEnabledStatusRequest(RobotRequest req)
           
protected  void handleEnabledStatusRequestForJoint(RobotRequest req)
           
protected  void handleEnableRequest(RobotRequest req)
           
protected  void handleEnableRequestForJoint(RobotRequest req)
           
protected  void handleGoalPositionRequest(RobotRequest req)
           
protected  void setMotionFrameReceiver(MessageAsyncReceiver<MotionFrameEvent,?,Listener<MotionFrameEvent>> receiver)
           
protected  void setMoveHandle(Listener<MotionFrameEvent> moveHandler)
           
protected  void setRequestReceiver(MessageAsyncReceiver<RobotRequest,?,Listener<RobotRequest>> receiver)
           
protected  void setResponseFactory(RobotResponseFactory factory)
           
protected  void setResponseSender(MessageSender<RobotResponse,?,Listener<RobotResponse>> sender)
           
protected  void setRobot(Robot robot)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteRobotHost

public RemoteRobotHost(Robot robot,
                       String sourceId,
                       String destinationId,
                       MessageSender<RobotResponse,?,Listener<RobotResponse>> sender,
                       MessageAsyncReceiver<RobotRequest,?,Listener<RobotRequest>> receiver,
                       RobotResponseFactory factory,
                       MessageAsyncReceiver<MotionFrameEvent,?,Listener<MotionFrameEvent>> motionFrameReceiver,
                       Listener<MotionFrameEvent> moveHandler)

RemoteRobotHost

protected RemoteRobotHost(String sourceId,
                          String destinationId)
Method Detail

setRobot

protected void setRobot(Robot robot)

setResponseSender

protected void setResponseSender(MessageSender<RobotResponse,?,Listener<RobotResponse>> sender)

setRequestReceiver

protected void setRequestReceiver(MessageAsyncReceiver<RobotRequest,?,Listener<RobotRequest>> receiver)

setResponseFactory

protected void setResponseFactory(RobotResponseFactory factory)

setMotionFrameReceiver

protected void setMotionFrameReceiver(MessageAsyncReceiver<MotionFrameEvent,?,Listener<MotionFrameEvent>> receiver)

setMoveHandle

protected void setMoveHandle(Listener<MotionFrameEvent> moveHandler)

getRobotId

public Robot.Id getRobotId()

getSourceId

public String getSourceId()

getDestinationId

public String getDestinationId()

start

public void start()

handleDefinitionRequest

protected void handleDefinitionRequest(RobotRequest req)

handleConnectRequest

protected void handleConnectRequest(RobotRequest req)

handleDisconnectRequest

protected void handleDisconnectRequest(RobotRequest req)

handleConnectionStatusRequest

protected void handleConnectionStatusRequest(RobotRequest req)

handleEnableRequest

protected void handleEnableRequest(RobotRequest req)

handleDisableRequest

protected void handleDisableRequest(RobotRequest req)

handleEnabledStatusRequest

protected void handleEnabledStatusRequest(RobotRequest req)

handleEnableRequestForJoint

protected void handleEnableRequestForJoint(RobotRequest req)

handleDisableRequestForJoint

protected void handleDisableRequestForJoint(RobotRequest req)

handleEnabledStatusRequestForJoint

protected void handleEnabledStatusRequestForJoint(RobotRequest req)

getRequestedJoint

protected Joint getRequestedJoint(RobotRequest req)

handleDefaultPositionRequest

protected void handleDefaultPositionRequest(RobotRequest req)

handleGoalPositionRequest

protected void handleGoalPositionRequest(RobotRequest req)

handleCurrentPositionRequest

protected void handleCurrentPositionRequest(RobotRequest req)


Copyright © 2011-2012. All Rights Reserved.