public class PlanCompability
extends java.lang.Object
if (!PlanConpability.isVehicleCompatible(vehicle, plan))
System.err.println("The vehicle "+vehicle.getId()+" is not compatible with "+plan.getId);
Constructor and Description |
---|
PlanCompability() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isVehicleCompatible(VehicleType vehicle,
PlanType plan)
Checks vehicle compatibility with a plan
|
static void |
testCompatibility(VehicleType vehicle,
PlanType plan)
Checks vehicle compatibility with a plan
|
public static boolean isVehicleCompatible(VehicleType vehicle, PlanType plan)
vehicle
- The vehicle to be checked for compatibilityplan
- The plan to test for compatibilitytrue
if the vehicle is compatible with given plan or false
if
the vehicle and plan are not compatible.public static void testCompatibility(VehicleType vehicle, PlanType plan) throws PayloadNotSupportedException, ManeuverNotSupportedException
vehicle
- The vehicle to be checked for compatibilityplan
- The plan to test for compatibilityPayloadNotSupportedException
- If the plan contains a payload configuration not supported by the vehicleManeuverNotSupportedException
- If the plan contains a maneuver not supported by the vehicleCopyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.