23 template <
size_t STATE_DIM,
typename SCALAR =
double>
34 virtual void reset() = 0;
virtual void reset()=0
reset event handler
An discrete array (vector) of a particular data type.
Definition: DiscreteArray.h:22
clear all close all load ct GNMSLog0 mat reformat t
virtual bool callOnSubsteps()=0
EventHandler()
Default constructor.
Definition: EventHandler.h:28
CppAD::AD< CppAD::cg::CG< double > > SCALAR
Definition: StateVector.h:12
An array in time.
Definition: TimeArray.h:22
virtual bool checkEvent(const StateVector< STATE_DIM, SCALAR > &state, const SCALAR &t)=0
check if an event has happened
Interface for an event handler for an Integrator.
Definition: EventHandler.h:24
virtual void handleEvent(const StateVector< STATE_DIM, SCALAR > &state, const SCALAR &t)=0
handle the event
virtual ~EventHandler()
destructor
Definition: EventHandler.h:30