Public Member Functions | |
ThresholdEventDetector (double threshold, ThresholdEventType eventType, bool terminateOnDetection=false) | |
bool | terminateOnDetection () const |
bool | checkForEvent (const double &t1, const Expr &u1, const double &t2, const Expr &u2) |
double | eventTime () const |
double | foundEvent () const |
Private Attributes | |
double | threshold_ |
ThresholdEventType | eventType_ |
bool | gotIt_ |
double | eventTime_ |
bool | terminateOnDetection_ |
Definition at line 67 of file SundanceEventDetector.hpp.
Sundance::ThresholdEventDetector::ThresholdEventDetector | ( | double | threshold, | |
ThresholdEventType | eventType, | |||
bool | terminateOnDetection = false | |||
) | [inline] |
Definition at line 71 of file SundanceEventDetector.hpp.
bool Sundance::ThresholdEventDetector::checkForEvent | ( | const double & | t1, | |
const Expr & | u1, | |||
const double & | t2, | |||
const Expr & | u2 | |||
) | [virtual] |
Implements Sundance::EventDetectorBase.
Definition at line 39 of file SundanceEventDetector.cpp.
References Sundance::AllAbove, Sundance::AnyBelow, eventTime_, eventType_, foundEvent(), Sundance::getDiscreteFunctionVector(), gotIt_, Playa::Vector< Scalar >::max(), Playa::Vector< Scalar >::min(), and threshold_.
double Sundance::ThresholdEventDetector::eventTime | ( | ) | const [inline, virtual] |
Implements Sundance::EventDetectorBase.
Definition at line 86 of file SundanceEventDetector.hpp.
References eventTime_.
double Sundance::ThresholdEventDetector::foundEvent | ( | ) | const [inline, virtual] |
Implements Sundance::EventDetectorBase.
Definition at line 89 of file SundanceEventDetector.hpp.
References gotIt_.
Referenced by checkForEvent().
bool Sundance::ThresholdEventDetector::terminateOnDetection | ( | ) | const [inline, virtual] |
Reimplemented from Sundance::EventDetectorBase.
Definition at line 78 of file SundanceEventDetector.hpp.
References terminateOnDetection_.
double Sundance::ThresholdEventDetector::eventTime_ [mutable, private] |
Definition at line 95 of file SundanceEventDetector.hpp.
Referenced by checkForEvent(), and eventTime().
bool Sundance::ThresholdEventDetector::gotIt_ [mutable, private] |
Definition at line 94 of file SundanceEventDetector.hpp.
Referenced by checkForEvent(), and foundEvent().
bool Sundance::ThresholdEventDetector::terminateOnDetection_ [private] |
double Sundance::ThresholdEventDetector::threshold_ [private] |