org.robokind.api.motion.messaging
Class RemoteRobotHost
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.