View Javadoc

1   package cz.cuni.amis.pogamut.ut2004.communication.messages.custom;
2   
3   import java.lang.annotation.ElementType;
4   import java.lang.annotation.Retention;
5   import java.lang.annotation.RetentionPolicy;
6   import java.lang.annotation.Target;
7   
8   import cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ControlMessage;
9   
10  @Target(value={ ElementType.FIELD })
11  @Retention(RetentionPolicy.RUNTIME)
12  public @interface ControlMessageField {
13  
14  	/**
15  	 * Can be either 1, 2 or 3. Type of the field (whether to use {@link ControlMessage#getPF1()} or {@link ControlMessage#getPI1()} etc.) 
16  	 * is inferred automatically via reflection on the annotated field type.
17  	 * @return
18  	 */
19  	public int index();
20  	
21  }