|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.beans.DatabaseBean
org.deltava.beans.event.Route
public class Route
A class to store information about a Flight Route for an Online Event.
| Constructor Summary | |
|---|---|
Route(int eventID,
String route)
Creates a new Event Route. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compare two routes by comparing the event and route IDs. |
boolean |
equals(Object o)
Compares a route by comparing the departure and arrival airports. |
boolean |
getActive()
Returns whether the Route is active. |
Airport |
getAirportA()
Returns the arrival Airport for this Flight Route. |
Airport |
getAirportD()
Returns the departure Airport for this Flight Route. |
String |
getComboAlias()
Returns the alias to use in the HTML <OPTION> element. |
String |
getComboName()
Returns the visible name to use in the HTML <OPTION> element. |
int |
getDistance()
Returns the distance between the Airports. |
boolean |
getIsRNAV()
Returns whether this is an RNAV routing. |
int |
getMaxSignups()
Returns the maximum number of signups for this Route. |
String |
getName()
Returns the Route name. |
String |
getRoute()
Returns the flight plan for this route. |
int |
getRouteID()
Returns the identifier for this Route. |
String |
getRowClassName()
Returns the CSS class for this object if rendered in a view table. |
int |
getSignups()
Returns the number of Pilots signed up for this Route. |
boolean |
isAvailable()
Returns if there are still signup slots available for this route. |
void |
setActive(boolean isActive)
Updates whether the Route is Active. |
void |
setAirportA(Airport a)
Updates the Arrival airport. |
void |
setAirportD(Airport a)
Updates the Departure airport. |
void |
setIsRNAV(boolean isRNAV)
Updates whether this is an RNAV route. |
void |
setMaxSignups(int maxSignups)
Updates the maximum number of Pilots who can be signed up for this Route. |
void |
setName(String name)
Updates the route name. |
void |
setRoute(String route)
Updates the flight route for this Route. |
void |
setRouteID(int id)
Updates the Route identifier. |
void |
setSignups(int count)
Updates the number of Pilots signed up for this Route. |
String |
toString()
Renders this object to a String by appending the airports and codes. |
| Methods inherited from class org.deltava.beans.DatabaseBean |
|---|
cacheKey, getHexID, getID, hashCode, setID, validateID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Route(int eventID,
String route)
eventID - the Event database IDroute - the flight route| Method Detail |
|---|
public Airport getAirportA()
setAirportA(Airport),
getAirportD()public Airport getAirportD()
setAirportD(Airport),
getAirportA()public int getDistance()
public String getName()
setName(String)public String getRoute()
setRoute(String)public boolean getActive()
public boolean getIsRNAV()
public boolean isAvailable()
public int getSignups()
getSignups()public int getMaxSignups()
setMaxSignups(int)public int getRouteID()
setRouteID(int)public void setAirportA(Airport a)
a - the new arrival Airport objectgetAirportA(),
setAirportD(Airport)public void setAirportD(Airport a)
a - the new departure Airport objectgetAirportD(),
setAirportA(Airport)public void setActive(boolean isActive)
isActive - TRUE if the Route is active, otherwise FALSEpublic void setIsRNAV(boolean isRNAV)
isRNAV - TRUE if RNAV, otherwise FALSEpublic void setRoute(String route)
route - the waypointsgetRoute()public void setName(String name)
name - the namegetName()public void setSignups(int count)
count - the number of signupsgetSignups()public void setMaxSignups(int maxSignups)
maxSignups - the maximum number of signupsgetMaxSignups()public void setRouteID(int id)
id - the identifier
IllegalArgumentException - if id is zero or negativepublic String getComboName()
ComboAlias
getComboName in interface ComboAliaspublic String getComboAlias()
ComboAlias
getComboAlias in interface ComboAliaspublic int compareTo(Object o)
compareTo in interface Comparable<Object>compareTo in class DatabaseBeanComparable.compareTo(Object)public boolean equals(Object o)
equals in class DatabaseBeano - the object to compare with
public String toString()
toString in class Objectpublic String getRowClassName()
ViewEntry
getRowClassName in interface ViewEntry
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||