package mpi;

public class MpiMessage {

	private long timeStamp;
	private int type;
	
	private String aircraft = "";
	private String airport = "";
	
	public MpiMessage(long timeStamp, int type, String aircraft, String airport){
		setTimeStamp(timeStamp);
		setType(type);
		setAircraft(aircraft);
		setAirport(airport);
	}

	public long getTimeStamp() {
		return timeStamp;
	}

	public void setTimeStamp(long timeStamp) {
		this.timeStamp = timeStamp;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getAircraft() {
		return aircraft;
	}

	public void setAircraft(String aircraft) {
		this.aircraft = aircraft;
	}

	public String getAirport() {
		return airport;
	}

	public void setAirport(String airport) {
		this.airport = airport;
	}
	
}

@@ -72,82 +72,310 @@
 ate 
-int type;%0A%09%0A%09private String aircraft = %22%22;%0A%09private String airport = %22%22;%0A%09
+long lookAhead;%0A%09private int type;%0A%09%0A%09public static final int TYPE_EVENT = 0;%0A%09public static final int TYPE_NULL = 1;%0A%09%0A%09private String aircraft = %22%22;%0A%09private String airport = %22%22;%0A%09%0A%09/**%0A%09 * New aircraft event %0A%09 * %0A%09 * @param timeStamp%0A%09 * @param lookAhead%0A%09 * @param aircraft%0A%09 * @param airport%0A%09 */
 %0A%09pu
@@ -406,24 +406,30 @@
 eStamp, 
-int type
+long lookAhead
 , String
@@ -492,17 +492,61 @@
 %09set
-Type(type
+LookAhead(lookAhead);%0A%09%09setType(MpiMessage.TYPE_EVENT
 );%0A%09
@@ -591,21 +591,428 @@
 irport);
+%09%09
 %0A%09%7D%0A%0A
+%09/**%0A%09 * New null message%0A%09 * %0A%09 * @param timeStamp%0A%09 * @param lookAhead%0A%09 */%0A%09public MpiMessage(long timeStamp, long lookAhead)%7B%0A%09%09setTimeStamp(timeStamp);%0A%09%09setLookAhead(lookAhead);%09%09%0A%09%7D%0A%09%0A%09public boolean isNullMessage()%7B%0A%09%09if(this.type == MpiMessage.TYPE_NULL)%7B%0A%09%09%09return true;%0A%09%09%7D%0A%09%09%0A%09%09return false;%0A%09%7D%0A%09%0A%09public boolean isEvent()%7B%0A%09%09if(!isNullMessage())%7B%0A%09%09%09return true;%0A%09%09%7D%0A%09%09%0A%09%09return false;%0A%09%7D%09%0A%09%0A
 %09public 
@@ -1227,32 +1227,164 @@
 ype = type;%0A%09%7D%0A%0A
+%09public long getLookAhead() %7B%0A%09%09return lookAhead;%0A%09%7D%0A%0A%09public void setLookAhead(long lookAhead) %7B%0A%09%09this.lookAhead = lookAhead;%0A%09%7D%0A%0A
 %09public String g

support for null messages in MpiMessage class