FloatingProbeData Class Reference

#include <oscilloscopedata.h>

Inheritance diagram for FloatingProbeData:

Inheritance graph
[legend]
Collaboration diagram for FloatingProbeData:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Scaling { Linear, Logarithmic }

Public Member Functions

 FloatingProbeData (int id)
void addDataPoint (float data)
uint64_t toTime (uint64_t at) const
void setScaling (Scaling scaling)
Scaling scaling () const
void setUpperAbsValue (double upperAbsValue)
double upperAbsValue () const
void setLowerAbsValue (double lowerAbsValue)
double lowerAbsValue () const
virtual void eraseData ()
virtual uint64_t findPos (uint64_t time) const

Protected Attributes

Scaling m_scaling
double m_upperAbsValue
double m_lowerAbsValue
vector< float > * m_data

Friends

class OscilloscopeView

Detailed Description

Author:
David Saxton

Definition at line 146 of file oscilloscopedata.h.


Member Function Documentation

void FloatingProbeData::addDataPoint ( float  data  )  [inline]

Appends the data point to the set of data.

Definition at line 156 of file oscilloscopedata.h.

References m_data.

Referenced by CurrentProbe::stepNonLogic(), and VoltageProbe::stepNonLogic().

uint64_t FloatingProbeData::toTime ( uint64_t  at  )  const

Converts the insert position to a Simulator time.

Definition at line 121 of file oscilloscopedata.cpp.

References ProbeData::m_resetTime.

void FloatingProbeData::setScaling ( Scaling  scaling  ) 

Sets the scaling to use in the oscilloscope display.

Definition at line 126 of file oscilloscopedata.cpp.

References ProbeData::displayAttributeChanged(), and m_scaling.

Referenced by FloatingProbe::dataChanged().

Scaling FloatingProbeData::scaling (  )  const [inline]

Returns:
the scaling used for the oscilloscope display.

Definition at line 168 of file oscilloscopedata.h.

References m_scaling.

void FloatingProbeData::setUpperAbsValue ( double  upperAbsValue  ) 

Sets the value to use as the upper absolute value in the display.

Definition at line 134 of file oscilloscopedata.cpp.

References ProbeData::displayAttributeChanged(), and m_upperAbsValue.

Referenced by FloatingProbe::dataChanged().

double FloatingProbeData::upperAbsValue (  )  const [inline]

Returns:
the upper absolute value to use in the display.

Definition at line 176 of file oscilloscopedata.h.

References m_upperAbsValue.

void FloatingProbeData::setLowerAbsValue ( double  lowerAbsValue  ) 

Sets the value to use as the lower absolute value in the display (this is only used with logarithmic scaling).

Definition at line 144 of file oscilloscopedata.cpp.

References ProbeData::displayAttributeChanged(), and m_lowerAbsValue.

Referenced by FloatingProbe::dataChanged().

double FloatingProbeData::lowerAbsValue (  )  const [inline]

Returns:
the lower absolute value to use in the display (this is only used with logarithmic scaling).

Definition at line 186 of file oscilloscopedata.h.

References m_lowerAbsValue.

void FloatingProbeData::eraseData (  )  [virtual]

Erases all recorded data, and sets m_resetTime to the current simulator time.

Implements ProbeData.

Definition at line 103 of file oscilloscopedata.cpp.

References m_data, ProbeData::m_resetTime, Simulator::self(), and Simulator::time().

uint64_t FloatingProbeData::findPos ( uint64_t  time  )  const [virtual]

Searches for and returns the position of the last DataPoint that was added before or at the given Simulator time. If no DataPoints were were recorded before the given time, then will return the one closest to the given time. Will return 0 if no DataPoints have been recorded yet.

Implements ProbeData.

Definition at line 112 of file oscilloscopedata.cpp.

References ProbeData::m_resetTime.


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:41 2007 for KTechLab by  doxygen 1.5.1