Class FlightAssignment
java.lang.Object
ai.timefold.solver.examples.common.domain.AbstractPersistable
ai.timefold.solver.examples.flightcrewscheduling.domain.FlightAssignment
- All Implemented Interfaces:
Comparable<FlightAssignment>
-
Field Summary
Fields inherited from class ai.timefold.solver.examples.common.domain.AbstractPersistable
id -
Constructor Summary
ConstructorsConstructorDescriptionFlightAssignment(long id, Flight flight, int indexInFlight, Skill requiredSkill) -
Method Summary
Modifier and TypeMethodDescriptionintlongintvoidsetEmployee(Employee employee) voidvoidsetIndexInFlight(int indexInFlight) voidsetRequiredSkill(Skill requiredSkill) toString()Methods inherited from class ai.timefold.solver.examples.common.domain.AbstractPersistable
getId, setId
-
Constructor Details
-
FlightAssignment
public FlightAssignment() -
FlightAssignment
-
-
Method Details
-
getFlightDurationInMinutes
public long getFlightDurationInMinutes() -
toString
- Overrides:
toStringin classAbstractPersistable
-
getFlight
-
setFlight
-
getIndexInFlight
public int getIndexInFlight() -
setIndexInFlight
public void setIndexInFlight(int indexInFlight) -
getRequiredSkill
-
setRequiredSkill
-
getEmployee
-
setEmployee
-
compareTo
- Specified by:
compareToin interfaceComparable<FlightAssignment>
-