Class TourProgress
java.lang.Object
org.deltava.beans.stats.TourProgress
- All Implemented Interfaces:
Serializable,Comparable<TourProgress>,IDBean
A bean to track Pilot progress within a Flight Tour.
- Since:
- 10.2
- Version:
- 10.5
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(TourProgress tp2) Returns the flight date of the first leg in this Tour.getHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the Pilot's database ID.Returns the flight date of the most recent leg in this Tour.intgetLegs()Returns the number of legs completed.Returns the amount of time the Tour has been in progress by a Pilot.intReturns the Tour's database ID.voidsetFirstLeg(Instant dt) Updates the flight date of the first leg in this Tour.voidsetLastLeg(Instant dt) Updates the flight date of the most recent leg in this Tour.
-
Constructor Details
-
TourProgress
public TourProgress(int pilotID, int tourID, int legs) Creates the bean.- Parameters:
pilotID- the Pilot database IDtourID- the Flight Tour database IDlegs- the number of Flight Legs completed in this Tour
-
-
Method Details
-
getID
-
getHexID
-
getTourID
public int getTourID()Returns the Tour's database ID.- Returns:
- the datbase ID
-
getLegs
public int getLegs()Returns the number of legs completed.- Returns:
- the number of legs
-
getFirstLeg
Returns the flight date of the first leg in this Tour.- Returns:
- the flight date
-
getLastLeg
Returns the flight date of the most recent leg in this Tour.- Returns:
- the flight date
-
getProgressTime
Returns the amount of time the Tour has been in progress by a Pilot.- Returns:
- the Duration
-
setFirstLeg
Updates the flight date of the first leg in this Tour.- Parameters:
dt- the flight date
-
setLastLeg
Updates the flight date of the most recent leg in this Tour.- Parameters:
dt- the flight date
-
compareTo
- Specified by:
compareToin interfaceComparable<TourProgress>
-