UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
sim::UserImpulse Class Reference

#include <sim_impulse.hpp>

Inheritance diagram for sim::UserImpulse:
sim::Impulse

Public Member Functions

 UserImpulse (const Trace &tr, const AmplT &gain=1.)
 
virtual Impulseclone () const
 
virtual AmplT operator() (const TimeT &t) const
 
virtual ImpulseType type () const
 
- Public Member Functions inherited from sim::Impulse
 Impulse (const AmplT &gain=1.)
 
virtual void setGain (const AmplT &gain)
 
virtual const AmplT & gain () const
 

Protected Attributes

Trace m_tr
 
- Protected Attributes inherited from sim::Impulse
AmplT m_gain
 

Detailed Description

User impulse provided from trace.

Constructor & Destructor Documentation

sim::UserImpulse::UserImpulse ( const Trace tr,
const AmplT &  gain = 1. 
)
inline
Constructor of the user impulse.
Parameters
tr- trace with signal provided.
gain- gain of the impulse amplitudes.

Member Function Documentation

virtual Impulse* sim::UserImpulse::clone ( ) const
virtual
Clone the object. 
Returns
new pointer to Impulse, should be deleted.

Implements sim::Impulse.

virtual AmplT sim::UserImpulse::operator() ( const TimeT &  t) const
virtual
Calculates impulse for provided time. 

Linear interpolation between samples of the trace.

Parameters
t- time in (ms).

Implements sim::Impulse.

virtual ImpulseType sim::UserImpulse::type ( ) const
inlinevirtual
Type of the impulse. 
Returns
this impulse type

Implements sim::Impulse.

Member Data Documentation

Trace sim::UserImpulse::m_tr
protected

User signal trace.


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