cz.cuni.amis.pogamut.ut2004.communication.messages.custom
Class ControlMessages
java.lang.Object
cz.cuni.amis.pogamut.ut2004.communication.messages.custom.ControlMessages
public class ControlMessages
- extends Object
This class should be "subclassed" as e.g. "TagMessages" or "HideAndSeekMessages" and register(Class...)
all implementations of ICustomControlMessage
within the contructor to encapsulate a functionality "that understands the whole set of some messages".
- Author:
- Jimmy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
deserializers
protected Map<String,ControlMessageMapper> deserializers
serializers
protected Map<String,SendControlMessageMapper> serializers
ControlMessages
public ControlMessages()
register
protected void register(Class<? extends ICustomControlMessage>... customControlMessageClasses)
read
public ICustomControlMessage read(ControlMessage message)
write
public SendControlMessage write(ICustomControlMessage message)
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.