org.robokind.impl.animation.messaging
Class JMSAnimationSender
java.lang.Object
org.robokind.api.messaging.DefaultMessageSender<Msg,Rec,L>
org.robokind.impl.messaging.JMSMessageSender<org.robokind.api.animation.protocol.AnimationEvent,org.robokind.avrogen.animation.AnimationEventRecord,org.robokind.api.common.utils.Listener<org.robokind.api.animation.protocol.AnimationEvent>>
org.robokind.impl.animation.messaging.JMSAnimationSender
- All Implemented Interfaces:
- org.robokind.api.messaging.MessageSender<org.robokind.api.animation.protocol.AnimationEvent,org.robokind.avrogen.animation.AnimationEventRecord,org.robokind.api.common.utils.Listener<org.robokind.api.animation.protocol.AnimationEvent>>
public class JMSAnimationSender
- extends org.robokind.impl.messaging.JMSMessageSender<org.robokind.api.animation.protocol.AnimationEvent,org.robokind.avrogen.animation.AnimationEventRecord,org.robokind.api.common.utils.Listener<org.robokind.api.animation.protocol.AnimationEvent>>
JMSMessageSender for sending AnimationEvents.
- Author:
- Matthew Stevenson
Fields inherited from class org.robokind.api.messaging.DefaultMessageSender |
myRecordSender |
Constructor Summary |
JMSAnimationSender(javax.jms.Session session,
javax.jms.Destination destination)
Creates an empty JMSAnimationSender |
Method Summary |
void |
sendAnimation(org.robokind.api.animation.Animation animation)
Creates an AnimationEvent for the given Animation, 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 |
JMSAnimationSender
public JMSAnimationSender(javax.jms.Session session,
javax.jms.Destination destination)
- Creates an empty JMSAnimationSender
- Parameters:
session
- JMS Session to usedestination
- JMS Destination to use
setSourceId
public void setSourceId(String sourceId)
- Sets the source id String for this sender.
This is used as the sourceId in outgoing AnimationEvents.
- 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 AnimationEvents.
- Parameters:
destId
- destination id String to use.
sendAnimation
public void sendAnimation(org.robokind.api.animation.Animation animation)
- Creates an AnimationEvent for the given Animation, and sends it.
- Parameters:
animation
- Animation to send
- Throws:
NullPointerException
- if the sourceId or destinationId for this
sender are null, or if the given Animation is null.
Copyright © 2011. All Rights Reserved.