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 TypeMethodDescriptionint
compareTo
(TourProgress tp2) Returns the flight date of the first leg in this Tour.getHexID()
Returns the hexadecimal database ID of this object.int
getID()
Returns the Pilot's database ID.Returns the flight date of the most recent leg in this Tour.int
getLegs()
Returns the number of legs completed.Returns the amount of time the Tour has been in progress by a Pilot.int
Returns the Tour's database ID.void
setFirstLeg
(Instant dt) Updates the flight date of the first leg in this Tour.void
setLastLeg
(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:
compareTo
in interfaceComparable<TourProgress>
-