1 package cz.cuni.amis.pogamut.ut2004.communication.messages.custom; 2 3 import cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent; 4 import cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent; 5 import cz.cuni.amis.utils.ClassUtils; 6 7 /** 8 * Can be used as ancestor for all {@link ICustomControlMessage} sparing you of the necessity of {@link BaseCustomControlMessage#simTime} declaration 9 * and {@link IWorldEvent#getSimTime()} / {@link IWorldChangeEvent#getSimTime()} implementation. 10 * <p><p> 11 * Note that both {@link ControlMessageMapper} and {@link SendControlMessageMapper} are using {@link ClassUtils#getSubclasses(Class)} and introspect the full class hierarchy 12 * of the {@link ICustomControlMessage} implementation handling all {@link ControlMessageField}, {@link ControlMessageSimType} annotated fields along the way. 13 * 14 * @author Jimmy 15 */ 16 public class BaseCustomControlMessage implements ICustomControlMessage { 17 18 @ControlMessageSimType 19 private long simTime; 20 21 @Override 22 public long getSimTime() { 23 return simTime; 24 } 25 26 }