Checker* ThermalModelSimple::getChecker() const
{
  Checker *check = ThermalModel::getChecker();
  check->addBlock("updraft", new OneOrMore());
  check->addChecker("updraft", Updraft::getChecker());
  return check;
}
Checker *ControllerSimpleGlider::controllerFileChecker() const {
  //! \Note Dummy
  Checker *ret = new Checker();
	ret->addProperty("speed", new NTimes(1));
	ret->addProperty("min_wp_dist", new NTimes(1));
	ret->addBlock("flight_plan", new NTimes(1));
	FlightPlan fp;
	ret->addChecker("flight_plan", fp.getFlightPlanChecker());
	return ret;
}
示例#3
0
Checker* CostConfig::getConfigChecker()
{
	Checker *check = new Checker;
	check->addProperty("population", new NTimes(1));
	check->addProperty("generations", new NTimes(1));
	check->addProperty("waypoint_dimension", new NTimes(1));
	check->addProperty("intermediate_waypoints", new NTimes(1));
	
	Checker *bound_checker = new Checker;
	
	bound_checker->addProperty("upper", new NTimes(1));
	bound_checker->addProperty("lower", new NTimes(1));
	
	check->addBlock("bounds", new NTimes(1));
	check->addChecker("bounds", bound_checker);
	
	Checker *cost_check = new Checker;
	cost_check->addProperty("distance", new NTimes(1));
	cost_check->addProperty("collision_penalty", new NTimes(1));
	check->addChecker("cost", cost_check);
	check->addBlock("cost", new NTimes(1));
	
	return check;
}