org.robokind.impl.motion.messaging
Class JMSMotionFrameSender
java.lang.Object
org.robokind.api.messaging.DefaultMessageSender<Msg,Rec,L>
org.robokind.impl.messaging.JMSMessageSender<org.robokind.api.motion.protocol.MotionFrameEvent,org.robokind.avrogen.motion.MotionFrameEventRecord,org.robokind.api.common.utils.Listener<org.robokind.api.motion.protocol.MotionFrameEvent>>
org.robokind.impl.motion.messaging.JMSMotionFrameSender
- All Implemented Interfaces:
- org.robokind.api.messaging.MessageSender<org.robokind.api.motion.protocol.MotionFrameEvent,org.robokind.avrogen.motion.MotionFrameEventRecord,org.robokind.api.common.utils.Listener<org.robokind.api.motion.protocol.MotionFrameEvent>>
public class JMSMotionFrameSender
- extends org.robokind.impl.messaging.JMSMessageSender<org.robokind.api.motion.protocol.MotionFrameEvent,org.robokind.avrogen.motion.MotionFrameEventRecord,org.robokind.api.common.utils.Listener<org.robokind.api.motion.protocol.MotionFrameEvent>>
JMSMessageSender for sending MotionFrameEvents
- Author:
- Matthew Stevenson
Fields inherited from class org.robokind.api.messaging.DefaultMessageSender |
myRecordSender |
Constructor Summary |
JMSMotionFrameSender(javax.jms.Session session,
javax.jms.Destination destination)
Creates a new JMSMotionFrameSender |
Method Summary |
void |
moveRobot(org.robokind.api.motion.protocol.MotionFrame frame)
Creates a MotionFrameEvent for the given MotionFrame, and sends it. |
void |
setDestinationId(String destId)
Set the destination id String for this sender. |
void |
setSourceId(String sourceId)
Sets the source id String for this sender. |
Methods inherited from class org.robokind.impl.messaging.JMSMessageSender |
start, stop |
Methods inherited from class org.robokind.api.messaging.DefaultMessageSender |
addMessageListener, fireMessageEvent, removeMessageListener, sendMessage, setAdapter, setRecordSender |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMSMotionFrameSender
public JMSMotionFrameSender(javax.jms.Session session,
javax.jms.Destination destination)
- Creates a new JMSMotionFrameSender
- Parameters:
session
- destination
-
setSourceId
public void setSourceId(String sourceId)
- Sets the source id String for this sender.
This is used as the sourceId in outgoing MotionFrameEvents.
- Parameters:
sourceId
- source id String to use
setDestinationId
public void setDestinationId(String destId)
- Set the destination id String for this sender.
This is used as the destinationId in outgoing MotionFrameEvents.
- Parameters:
destId
- destination id String to use.
moveRobot
public void moveRobot(org.robokind.api.motion.protocol.MotionFrame frame)
- Creates a MotionFrameEvent for the given MotionFrame, and sends it.
- Parameters:
frame
- MotionFrame to send
- Throws:
NullPointerException
- if the sourceId or destinationId for this
sender are null, or if the given MotionFrame is null.
Copyright © 2011. All Rights Reserved.