View Javadoc

1   package cz.cuni.amis.pogamut.base.communication.command;
2   
3   import cz.cuni.amis.pogamut.base.communication.messages.CommandMessage;
4   import cz.cuni.amis.pogamut.base.utils.guice.AgentScoped;
5   
6   /**
7    * Command serializer that transforms the command message into data that can be sent to (and understood by) virtual world.
8    * 
9    * @author Jimmy
10   */
11  public interface ICommandSerializer<DATA> {
12  	
13  	/**
14  	 * Serialize command into some form that may be sent to the world simulator.
15  	 * 
16  	 * @param command
17  	 */
18  	public DATA serialize(CommandMessage command);
19  
20  }