7 namespace frechet {
namespace poly {
53 alg->cancelFlag =
nullptr;
62 alg->cancelFlag =
nullptr;
63 alg->resetStatus(
true);
worker job for executing the optimisation variant, or approximation variant, on curves (not on simple...
OptimisePolyWorkerJob(poly::Algorithm::ptr analg, frechet::reach::FSPath::ptr apath, double approx)
default constructor
virtual void runJob() override
implements abstract method. Sets up the cancel flags and delegates to runAlg().
global definitions for all algorithms.
volatile bool cancelRequested
cancellation flag
double param
parameter to the algorithm (epsilon)
Status
indicates the current status of the algorithm. Negative values indicate that the algorithm is current...
boost::shared_ptr< Algorithm > ptr
(smart) pointer to an Algorithm object
DecideWorkerJob(poly::Algorithm::ptr analg, frechet::FreeSpace::ptr anfs, frechet::reach::FSPath::ptr apath, double epsilon)
default constructor
Abstract base class for executing the algorithm for simple polygons in a background thread....
frechet::FreeSpace::ptr fs
the underlying free-space
virtual void afterInterrupted() override
implements abstract method. Handles user interruption. Resets the status of the algorithm (see poly::...
frechet::reach::FSPath::ptr fspath
holds the feasible path on return
virtual void runAlg()=0
implemented by derived classes
virtual void runAlg()
implements actual execution
virtual void runAlg() override
executes the decision variant. Results are placed in fspath and poly::Algorithm::Status.
Background job to run long-runner tasks in a seperate thread.
boost::shared_ptr< FSPath > ptr
smart pointer to an FSPath object
OptimiseCurveWorkerJob(poly::Algorithm::ptr analg, double approx)
default constructor
worker job for executing the decision variant of the algorithm for simple polygons.
poly::Algorithm::ptr alg
the algorithm
worker job for executing the optimisation variant, or approximation variant, of the algorithm for sim...
The FreeSpace class models the Free-Space Diagram calculated from two curves.
PolygonWorkerJob(poly::Algorithm::ptr analg, frechet::FreeSpace::ptr anfs, frechet::reach::FSPath::ptr apath, double aparam)
default constructor
poly::Algorithm::Status status_before
previous algorithm status; will be reset in the case of user interruption
boost::shared_ptr< FreeSpace > ptr
smart pointer to FreeSpace object
virtual void runAlg() override
implements actual execution
Calculates a feasible path in the Free-Space given a start point (0,0) and an end point (n-1,...