Fréchet View  1.6.0
A Tool for Exploring Fréchet Distance Algorithms
frechet::poly::OptimisePolyWorkerJob Class Reference

Detailed Description

worker job for executing the optimisation variant, or approximation variant, of the algorithm for simple polygons.

The result of the algorithm is broadcast as signal optimisationResult(epsilon)

Definition at line 105 of file jobs.h.

#include <jobs.h>

Inherits frechet::poly::PolygonWorkerJob.

Public Member Functions

 OptimisePolyWorkerJob (poly::Algorithm::ptr analg, frechet::reach::FSPath::ptr apath, double approx)
 default constructor More...
 
virtual void runAlg () override
 implements actual execution More...
 
- Public Member Functions inherited from frechet::poly::PolygonWorkerJob
 PolygonWorkerJob (poly::Algorithm::ptr analg, frechet::FreeSpace::ptr anfs, frechet::reach::FSPath::ptr apath, double aparam)
 default constructor More...
 
virtual void runJob () override
 implements abstract method. Sets up the cancel flags and delegates to runAlg(). More...
 
virtual void afterInterrupted () override
 implements abstract method. Handles user interruption. Resets the status of the algorithm (see poly::Algorithm::Status). More...
 
- Public Member Functions inherited from frechet::app::WorkerJob
virtual void run () override
 abstract method that performs the long-running task More...
 

Additional Inherited Members

- Public Attributes inherited from frechet::app::WorkerJob
volatile bool cancelRequested
 cancellation flag More...
 
- Protected Attributes inherited from frechet::poly::PolygonWorkerJob
poly::Algorithm::ptr alg
 the algorithm More...
 
frechet::FreeSpace::ptr fs
 the underlying free-space More...
 
frechet::reach::FSPath::ptr fspath
 holds the feasible path on return More...
 
poly::Algorithm::Status status_before
 previous algorithm status; will be reset in the case of user interruption More...
 
double param
 parameter to the algorithm (epsilon) More...
 

Constructor & Destructor Documentation

◆ OptimisePolyWorkerJob()

frechet::poly::OptimisePolyWorkerJob::OptimisePolyWorkerJob ( poly::Algorithm::ptr  analg,
frechet::reach::FSPath::ptr  apath,
double  approx 
)
inline

default constructor

Parameters
analgthe algorithm
apathholds the feasible path on return
approxif ==0, execute the optimisation variant of the algorithm. If > 0 execute the approximation variant with the given bound.

Definition at line 117 of file jobs.h.

Member Function Documentation

◆ runAlg()

virtual void frechet::poly::OptimisePolyWorkerJob::runAlg ( )
inlineoverridevirtual

implements actual execution

Implements frechet::poly::PolygonWorkerJob.

Definition at line 125 of file jobs.h.


The documentation for this class was generated from the following file: