org.robokind.api.motion.messaging
Class RobotMoveHandler

java.lang.Object
  extended by org.robokind.api.motion.utils.RobotMoverFrameSource
      extended by org.robokind.api.motion.messaging.RobotMoveHandler
All Implemented Interfaces:
Listener<MotionFrameEvent>, FrameSource<Robot.RobotPositionMap>, RobotFrameSource

public class RobotMoveHandler
extends RobotMoverFrameSource
implements Listener<MotionFrameEvent>

Listens for MotionFrameEvents and moves a Robot.

Author:
Matthew Stevenson

Field Summary
 
Fields inherited from interface org.robokind.api.common.utils.Listener
PROP_LISTENER_ID, PROP_LISTENER_TYPE
 
Constructor Summary
RobotMoveHandler(Robot robot)
           
 
Method Summary
 void handleEvent(MotionFrameEvent event)
           
 
Methods inherited from class org.robokind.api.motion.utils.RobotMoverFrameSource
getMovements, getRobot, move, setRobot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RobotMoveHandler

public RobotMoveHandler(Robot robot)
Method Detail

handleEvent

public void handleEvent(MotionFrameEvent event)
Specified by:
handleEvent in interface Listener<MotionFrameEvent>


Copyright © 2011-2012. All Rights Reserved.