cz.cuni.amis.pogamut.ut2004.communication.messages.custom
Class ControlMessages

Package class diagram package ControlMessages
java.lang.Object
  extended by 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

Field Summary
protected  Map<String,ControlMessageMapper> deserializers
           
protected  Map<String,SendControlMessageMapper> serializers
           
 
Constructor Summary
ControlMessages()
           
 
Method Summary
 ICustomControlMessage read(ControlMessage message)
           
protected  void register(Class<? extends ICustomControlMessage>... customControlMessageClasses)
           
 SendControlMessage write(ICustomControlMessage message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deserializers

protected Map<String,ControlMessageMapper> deserializers

serializers

protected Map<String,SendControlMessageMapper> serializers
Constructor Detail

ControlMessages

public ControlMessages()
Method Detail

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.