Package minicp.examples
Class AircraftLanding
java.lang.Object
minicp.examples.AircraftLanding
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn instance of the aircraft landing problemstatic classA solution to an aircraft landing instance.static classA plane in the problem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFunction that list all feasible solutions to an instance.static voidsolve(AircraftLanding.AircraftLandingInstance instance) Main function that provides a solution to an instance
-
Constructor Details
-
AircraftLanding
public AircraftLanding()
-
-
Method Details
-
solve
public static AircraftLanding.AircraftLandingSolution solve(AircraftLanding.AircraftLandingInstance instance) Main function that provides a solution to an instance- Parameters:
instance- instance to solve- Returns:
- best solution found to the instance
-
findAll
public List<AircraftLanding.AircraftLandingSolution> findAll(AircraftLanding.AircraftLandingInstance instance) Function that list all feasible solutions to an instance.This function does not count in the grade, and should only be used for debugging purposes, to verify that you find all solutions to a (small) instance.
Even though it is not mandatory, it is STRONGLY ADVISED to implement it and pass the related tests :-) .
- Parameters:
instance- instance to solve- Returns:
- all feasible solutions found to the instance
-
main
-