blob: 6b250227269e006c503b6bc8391b93f8c426f960 [file] [log] [blame]
// --------------------------------------------------------
// Code generated by Papyrus Java
// --------------------------------------------------------
package statemachineJava;
/************************************************************/
/**
*
*/
public class Event_t implements Comparable<Event_t> {
/**
*
*/
public EventPriority_t priority = null;
/**
*
*/
public int eventID;
/**
*
*/
public EventType_t eventType;
/**
*
*/
public int associatedState;
/**
*
*/
public static int EVENT_DATA_SIZE = 0;
/**
*
*/
public int dataSize;
/**
*
* @param priority
* @param eventID
* @param eventType
* @param associatedState
* @param dataSize
*/
public Event_t(EventPriority_t priority, int eventID, EventType_t eventType, int associatedState, int dataSize) {
this.priority = priority;
this.eventID = eventID;
this.eventType = eventType;
this.associatedState = associatedState;
this.dataSize = 0;
}
/**
*
* @return
*/
public int getEventID() {
return eventID;
}
/**
*
* @param other
* @return
*/
public int compareTo(Event_t other) {
if (priority.ordinal() < other.priority.ordinal()) {
return -1;
} else if (priority.ordinal() == other.priority.ordinal()) {
return 0;
} else {
return 1;
}
}
}