void SampledTaskPoint::ClearSampleAllButLast(const AircraftState& ref_last, const TaskProjection &projection) { if (HasSampled()) { sampled_points.clear(); SearchPoint sp(ref_last.location, projection); sampled_points.push_back(sp); } }
const GeoPoint& AATPoint::GetLocationRemaining() const { if (!IsPast()) return target_location; if (HasSampled()) return GetLocationMax(); return GetLocationMin(); }
const GeoPoint& AATPoint::GetLocationRemaining() const { if (GetActiveState() != BEFORE_ACTIVE) return target_location; if (HasSampled()) return GetLocationMax(); return GetLocationMin(); }
const SearchPointVector & SampledTaskPoint::GetSearchPoints() const { assert(!boundary_points.empty()); if (HasSampled()) return sampled_points; if (past) // this adds a point in case the waypoint was skipped // this is a crude way of handling the situation --- may be best // to de-rate the score in some way return nominal_points; return boundary_points; }