Class MaximumTrajectoryLength

Inheritance Relationships

Base Type

Class Documentation

class MaximumTrajectoryLength : public AbstractCondition

Deactivates the candidate beyond a maximum trajectory length.

This module deactivates the candidate at a given maximum trajectory length. In that case the property (“Deactivated”, module::description) is set. It also limits the candidates next step size to ensure the maximum trajectory length is not exceeded.

Public Functions

MaximumTrajectoryLength(double length = 0)
void setMaximumTrajectoryLength(double length)
double getMaximumTrajectoryLength() const
void addObserverPosition(const Vector3d &position)
const std::vector<Vector3d> &getObserverPositions() const
virtual std::string getDescription() const
virtual void process(Candidate *candidate) const
void onReject(Module *rejectAction)
void onAccept(Module *acceptAction)
void setMakeRejectedInactive(bool makeInactive)
void setMakeAcceptedInactive(bool makeInactive)
void setRejectFlag(std::string key, std::string value)
void setAcceptFlag(std::string key, std::string value)
void setDescription(const std::string &description)
inline void process(ref_ptr<Candidate> candidate) const
inline size_t addReference() const
inline size_t removeReference() const
inline int removeReferenceNoDelete() const
inline size_t getReferenceCount() const

Protected Functions

void reject(Candidate *candidate) const
inline void reject(ref_ptr<Candidate> candidate) const
void accept(Candidate *candidate) const
inline void accept(ref_ptr<Candidate> candidate) const

Protected Attributes

ref_ptr<Module> rejectAction
ref_ptr<Module> acceptAction
bool makeRejectedInactive
bool makeAcceptedInactive
std::string rejectFlagKey
std::string rejectFlagValue
std::string acceptFlagKey
std::string acceptFlagValue
mutable size_t _referenceCount