adevs
Public Member Functions | List of all members
adevs::null_event_locator< X > Class Template Reference

#include <adevs_event_locators.h>

Inheritance diagram for adevs::null_event_locator< X >:
adevs::event_locator< X >

Public Member Functions

bool find_events (bool *, const double *, double *, ode_solver< X > *, double &)
 
- Public Member Functions inherited from adevs::event_locator< X >
 event_locator (ode_system< X > *sys)
 
virtual ~event_locator ()
 Destructor.
 

Additional Inherited Members

- Protected Attributes inherited from adevs::event_locator< X >
ode_system< X > * sys
 

Detailed Description

template<typename X>
class adevs::null_event_locator< X >

This event locator is for models that have no state events. Its find_events method simply returns false.

Member Function Documentation

template<typename X >
bool adevs::null_event_locator< X >::find_events ( bool *  events,
const double *  qstart,
double *  qend,
ode_solver< X > *  solver,
double &  h 
)
inlinevirtual

Find the first state event in the interval [0,h] starting from state qstart. The method returns true if an event is found, setting the events flags to true if the corresponding z entry in the state_event_func above triggered the event. The value of h is overwritten with the event time, and the state of the model at that time is copied to qend. The event finding method should select an instant of time when the zero crossing function is zero or has changed sign to trigger an event.

Implements adevs::event_locator< X >.


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