TMCEvent class defines a single public static int TMC event on a location. More...
Classes | |
class | EventCode |
List of the possible Event codes. More... | |
Public Member Functions | |
TmcEvent () | |
Creates the instance of the TmcEvent class with default values. More... | |
TmcEvent (int id, int x, int y, int eventCode, boolean userAvoid, int validityYear, byte validityMonth, byte validityDay, byte validityHour, byte validityMinute) | |
Instantiates a new tmc event. More... | |
int | getId () |
Gets the id. More... | |
int | getX () |
Gets the x. More... | |
int | getY () |
Gets the y. More... | |
int | getEventCode () |
Gets the event code. More... | |
boolean | isUserAvoid () |
Checks if is user avoid. More... | |
int | getValidityYear () |
Gets the validity year. More... | |
byte | getValidityMonth () |
Gets the validity month. More... | |
byte | getValidityDay () |
Gets the validity day. More... | |
byte | getValidityHour () |
Gets the validity hour. More... | |
byte | getValidityMinute () |
Gets the validity minute. More... | |
String | toString () |
Static Public Member Functions | |
static Bundle | writeBundle (TmcEvent event) |
static TmcEvent | readBundle (Bundle b) |
TMCEvent class defines a single public static int TMC event on a location.
TmcEvent | ( | ) |
Creates the instance of the TmcEvent class with default values.
Referenced by TmcEvent.readBundle().
TmcEvent | ( | int | id, |
int | x, | ||
int | y, | ||
int | eventCode, | ||
boolean | userAvoid, | ||
int | validityYear, | ||
byte | validityMonth, | ||
byte | validityDay, | ||
byte | validityHour, | ||
byte | validityMinute | ||
) |
Instantiates a new tmc event.
id | the id |
x | the x |
y | the y |
eventCode | the event code |
userAvoid | the user avoid |
validityYear | the validity year |
validityMonth | the validity month |
validityDay | the validity day |
validityHour | the validity hour |
validityMinute | the validity minute |
int getEventCode | ( | ) |
Gets the event code.
Referenced by TmcEvent.writeBundle().
int getId | ( | ) |
Gets the id.
Referenced by TmcEvent.writeBundle().
byte getValidityDay | ( | ) |
Gets the validity day.
byte getValidityHour | ( | ) |
Gets the validity hour.
byte getValidityMinute | ( | ) |
Gets the validity minute.
byte getValidityMonth | ( | ) |
Gets the validity month.
int getValidityYear | ( | ) |
Gets the validity year.
Referenced by TmcEvent.writeBundle().
int getX | ( | ) |
Gets the x.
Referenced by TmcEvent.writeBundle().
int getY | ( | ) |
Gets the y.
Referenced by TmcEvent.writeBundle().
boolean isUserAvoid | ( | ) |
Checks if is user avoid.
Referenced by TmcEvent.writeBundle().
|
static |
References TmcEvent.TmcEvent().
Referenced by ApiOnline.addTMCEvent().
String toString | ( | ) |
|
static |
References TmcEvent.getEventCode(), TmcEvent.getId(), TmcEvent.getValidityYear(), TmcEvent.getX(), TmcEvent.getY(), and TmcEvent.isUserAvoid().
Referenced by ApiOnline.addTMCEvent().