Auditory Relacs Plugins
0.9.8
|
#include <session.h>
Public Member Functions | |
Session (void) | |
~Session (void) | |
virtual void | preConfig (void) |
virtual void | config (void) |
virtual void | initDevices (void) |
virtual void | sessionStarted (void) |
virtual void | sessionStopped (bool saved) |
virtual void | notifyMetaData (void) |
virtual void | notifyStimulusData (void) |
MapD | threshCurve (int side=2) const |
void | addThreshCurve (const MapD &thresh, int side) |
MapD | fICurve (int side=2, double carrierfreq=0.0, bool lockit=true) const |
MapD | fICurve (int index, int side, double &carrierfreq) const |
void | addFICurve (const MapD &ficurve, int side, double carrierfreq) |
MapD | onFICurve (int side=2, double carrierfreq=0.0) const |
MapD | onFICurve (int index, int side, double &carrierfreq) const |
void | addOnFICurve (const MapD &onficurve, int side, double carrierfreq) |
MapD | ssFICurve (int side=2, double carrierfreq=0.0) const |
MapD | ssFICurve (int index, int side, double &carrierfreq) const |
void | addSSFICurve (const MapD &ssficurve, int side, double carrierfreq) |
void | updateBestSide (void) |
Public Member Functions inherited from Control | |
Control (const string &name, const string &pluginset="", const string &author="unknown", const string &version="unknown", const string &date=__DATE__) | |
virtual | ~Control (void) |
virtual void | setName (const string &name) |
void | start (void) |
virtual void | requestStop (void) |
bool | wait (double time=-1.0) |
virtual void | addActions (QMenu *menu, bool doxydoc) |
RELACSPlugin (const string &configident="", int configgroup=0, const string &name="", const string &pluginset="", const string &author="unknown", const string &version="unknown", const string &date=__DATE__) | |
virtual | ~RELACSPlugin (void) |
QWidget * | widget (void) |
void | setWidget (QWidget *widget) |
void | setLayout (QLayout *layout) |
int | desktopWidth (void) const |
int | desktopHeight (void) const |
string | pluginSet (void) const |
string | uniqueName (void) const |
void | setShortUniqueName (void) |
void | setLongUniqueName (void) |
void | updateUniqueName (void) |
const Options & | settings (void) const |
Options & | settings (void) |
void | setSettings (void) |
virtual void | modeChanged (void) |
void | setRELACSWidget (RELACSWidget *rw) |
virtual string | helpFileName (void) const |
const InList & | traces (void) const |
const InData & | trace (int index) const |
const InData & | trace (const string &ident) const |
int | traceIndex (const string &ident) const |
string | traceNames (void) const |
string | rawTraceNames (void) const |
const EventList & | events (void) const |
const EventData & | events (int index) const |
const EventData & | events (const string &ident) const |
const EventData & | stimulusEvents (void) const |
const EventData & | restartEvents (void) const |
const EventData & | recordingEvents (void) const |
int | traceInputTrace (int trace) const |
int | traceInputTrace (const string &ident) const |
int | traceInputEvent (int trace) const |
int | traceInputEvent (const string &ident) const |
int | eventInputTrace (int event) const |
int | eventInputTrace (const string &ident) const |
int | eventInputEvent (int event) const |
int | eventInputEvent (const string &ident) const |
double | signalTime (void) const |
double | currentTime (void) const |
double | currentTimeRaw (void) const |
void | addTracesEvents (deque< InList * > &data, deque< EventList * > &events) |
void | setTracesEvents (const InList &data, const EventList &event) |
void | assignTracesEvents (const InList &data, const EventList &events) |
void | assignTracesEvents (void) |
void | updateDerivedTracesEvents (void) |
int | getData (double mintracetime=0.0, double prevsignal=-1000.0) |
int | outTracesSize (void) const |
int | outTraceIndex (const string &name) const |
string | outTraceName (int index) const |
string | outTraceNames (void) const |
const TraceSpec & | outTrace (int index) const |
const TraceSpec & | outTrace (const string &name) const |
void | setSignalDelay (int device, double delay) |
bool | acquisition (void) const |
bool | simulation (void) const |
bool | analysis (void) const |
bool | idle (void) const |
string | modeStr (void) const |
Options & | relacsSettings (void) |
const Options & | relacsSettings (void) const |
void | lockRelacsSettings (void) const |
void | unlockRelacsSettings (void) const |
QMutex * | relacsSettingsMutex (void) |
string | path (void) const |
string | addPath (const string &file) const |
string | defaultPath (void) const |
string | addDefaultPath (const string &file) const |
bool | saving (void) const |
Options & | stimulusData (void) |
const Options & | stimulusData (void) const |
int | stimulusDataTraceFlag (void) const |
void | lockStimulusData (void) const |
void | unlockStimulusData (void) const |
QMutex * | stimulusDataMutex (void) |
MetaData & | metaData (void) |
const MetaData & | metaData (void) const |
void | lockMetaData (void) const |
void | unlockMetaData (void) const |
QMutex * | metaDataMutex (void) |
AllDevices * | devices (void) const |
Device * | device (const string &ident) |
void | updateDeviceMenu (void) |
DigitalIO * | digitalIO (const string &ident) |
Trigger * | trigger (const string &ident) |
Attenuate * | attenuator (const string &name) |
Filter * | filter (const string &name) |
Filter * | filterTrace (int index) |
Filter * | filterTrace (const string &name) |
Options & | filterOpts (const string &name) |
Options & | filterTraceOpts (int index) |
Options & | filterTraceOpts (const string &name) |
void | lockFilter (const string &name) |
void | lockFilterTrace (int index) |
void | lockFilterTrace (const string &name) |
void | unlockFilter (const string &name) |
void | unlockFilterTrace (int index) |
void | unlockFilterTrace (const string &name) |
void | autoConfigureFilter (Filter *filter, double tbegin, double tend) |
void | autoConfigureFilter (Filter *filter, double duration) |
void | autoConfigureFilter (double tbegin, double tend) |
void | autoConfigureFilter (double duration) |
Filter * | detector (const string &name) |
Filter * | detectorEvents (int index) |
Filter * | detectorEvents (const string &name) |
Options & | detectorOpts (const string &name) |
Options & | detectorEventsOpts (int index) |
Options & | detectorEventsOpts (const string &name) |
void | lockDetector (const string &name) |
void | lockDetectorEvents (int index) |
void | lockDetectorEvents (const string &name) |
void | unlockDetector (const string &name) |
void | unlockDetectorEvents (int index) |
void | unlockDetectorEvents (const string &name) |
void | autoConfigureDetector (Filter *detector, double tbegin, double tend) |
void | autoConfigureDetector (Filter *detector, double duration) |
void | autoConfigureDetectors (double tbegin, double tend) |
void | autoConfigureDetectors (double duration) |
double | sessionTime (void) const |
string | sessionTimeStr (void) const |
bool | sessionRunning (void) const |
int | reproCount (void) const |
bool | globalKeyEvents (void) |
void | setGlobalKeyEvents (bool global=true) |
Public Member Functions inherited from ConfigDialog | |
ConfigDialog (const string &configident="", int configgroup=0, const string &name="", const string &author="", const string &version="", const string &date=__DATE__) | |
virtual | ~ConfigDialog (void) |
string | name (void) const |
string | author (void) const |
virtual void | setAuthor (const string &author) |
string | version (void) const |
virtual void | setVersion (const string &version) |
string | date (void) const |
virtual void | setDate (const string &date) |
virtual OptWidget * | dialogOptions (OptDialog *od, string *tabhotkeys=0) |
virtual void | dialogButtons (OptDialog *od) |
virtual void | dialogEmptyMessage (OptDialog *od) |
int | dialogSelectMask (void) const |
void | setDialogSelectMask (int mask) |
void | addDialogSelectMask (int mask) |
int | dialogReadOnlyMask (void) const |
void | setDialogReadOnlyMask (int mask) |
void | addDialogReadOnlyMask (int mask) |
int | dialogStyle (void) const |
void | setDialogStyle (int style) |
void | addDialogStyle (int style) |
string | dialogCaption (void) const |
void | setDialogCaption (const string &caption) |
bool | dialogHeader (void) const |
void | setDialogHeader (bool d) |
string | headerBackgroundColor (void) const |
void | setHeaderBackgroundColor (const string &color) |
string | headerForegroundColor (void) const |
void | setHeaderForegroundColor (const string &color) |
string | headerImageFile (void) const |
void | setHeaderImageFile (const string &file) |
virtual void | dialogHeaderWidget (OptDialog *od) |
bool | dialogHelp (void) const |
void | setDialogHelp (bool d) |
string | helpCaption (void) const |
void | setHelpCaption (const string &caption) |
string | helpPath (int inx=0) const |
int | helpPathes (void) const |
void | clearHelpPathes (void) |
void | setHelpPath (const string &path) |
void | addHelpPath (const string &path) |
bool | dialogOpen (void) const |
bool | helpOpen (void) const |
QWidget * | mainWidget (void) |
virtual void | setMainWidget (QWidget *widget) |
void | lock () const |
void | unlock () const |
bool | tryLock (int timeout=1) |
QMutex * | mutex (void) |
Public Member Functions inherited from ConfigClass | |
ConfigClass (const string &ident, int group=0, int mode=0xffff, int selectmask=0) | |
ConfigClass (const ConfigClass &C) | |
virtual | ~ConfigClass (void) |
const string & | configIdent (void) const |
void | setConfigIdent (const string &ident) |
int | configGroup (void) const |
void | setConfigGroup (int group) |
int | configMode (void) const |
void | setConfigMode (int mode) |
void | addConfigMode (int mode) |
void | delConfigMode (int mode) |
int | configSelectMask (void) const |
void | setConfigSelectMask (int mask) |
void | addConfig (void) |
void | readConfig (void) |
virtual void | readConfig (StrQueue &sq) |
virtual void | saveConfig (ofstream &str) |
virtual int | configSize (void) const |
Public Member Functions inherited from StandardTraces | |
StandardTraces (void) | |
Protected Member Functions | |
void | main (void) |
Protected Member Functions inherited from Control | |
bool | interrupt (void) const |
bool | waitOnData (double time=MAXDOUBLE) |
bool | waitOnReProSleep (double time=MAXDOUBLE) |
bool | waitOnReProFinished (double time=MAXDOUBLE) |
bool | waitOnSessionStart (double time=MAXDOUBLE) |
bool | waitOnSessionPrestop (double time=MAXDOUBLE) |
bool | waitOnSessionStop (double time=MAXDOUBLE) |
bool | sleep (double t) |
void | timeStamp (void) |
bool | sleepOn (double t) |
virtual void | setPluginSet (const string &pluginset) |
void | printlog (const string &s) const |
void | warning (const string &s, double timeout=0.0) |
void | info (const string &s, double timeout=0.0) |
void | postCustomEvent (int type=0) |
int | maxVoltages (const InData &data, vector< double > &ranges) const |
int | maxValues (const InData &data, vector< double > &ranges) const |
void | setGain (const InData &data, int gainindex) |
void | adjustGain (const InData &data, double maxvalue) |
void | adjustGain (const InData &data, double minvalue, double maxvalue) |
void | adjust (const InData &data, double tbegin, double tend, double threshold) |
void | adjust (const InData &data, double duration, double threshold) |
int | activateGains (void) |
Control * | control (int index) |
Control * | control (const string &name) |
Options & | controlOpts (int index) |
Options & | controlOpts (const string &name) |
void | lockControl (int index) |
void | lockControl (const string &name) |
void | unlockControl (int index) |
void | unlockControl (const string &name) |
Model * | model (void) |
Options & | modelOpts (void) |
void | lockModel (void) |
void | unlockModel (void) |
RePros * | repros (void) |
Options & | reprosDialogOpts (void) |
RePro * | repro (int index) |
RePro * | repro (const string &name) |
Options & | reproOpts (int index) |
Options & | reproOpts (const string &name) |
void | lockRePro (int index) |
void | lockRePro (const string &name) |
void | unlockRePro (int index) |
void | unlockRePro (const string &name) |
RePro * | currentRePro (void) |
Options & | currentReProOpts (void) |
void | lockCurrentRePro (void) |
void | unlockCurrentRePro (void) |
virtual void | keyPressEvent (QKeyEvent *event) |
virtual void | keyReleaseEvent (QKeyEvent *event) |
virtual bool | eventFilter (QObject *obj, QEvent *event) |
void | setWaitMouseCursor (void) |
void | restoreMouseCursor (void) |
Protected Member Functions inherited from ConfigDialog | |
void | setDialogOpen (bool open=true) |
void | setHelpOpen (bool open=true) |
Additional Inherited Members | |
Public Types inherited from ConfigClass | |
enum | Action |
Public Slots inherited from Control | |
virtual void | saveDoxygenOptions (void) |
virtual void | saveWidget (void) |
Public Slots inherited from ConfigDialog | |
virtual void | dialog (void) |
virtual void | help (void) |
virtual void | notifyDialog (const Options &opt) |
Signals inherited from ConfigDialog | |
void | dialogAccepted (void) |
void | dialogAction (int r) |
void | dialogClosed (int r) |
Static Public Member Functions inherited from ConfigClass | |
static void | setConfigureClasses (ConfigureClasses *cfg) |
Static Public Attributes inherited from Control | |
static const int | DeviceId |
static const int | AnalogInputId |
static const int | AnalogOutputId |
static const int | DigitalIOId |
static const int | TriggerId |
static const int | AttenuatorId |
static const int | AttenuateId |
static const int | ModelId |
static const int | FilterId |
static const int | ReProId |
static const int | ControlId |
static const int | Core |
static const int | Plugins |
Protected Slots inherited from Control | |
void | startTheSession (void) |
void | stopTheSession (void) |
void | toggleSession (void) |
void | removeFocus (void) |
void | muteAudioMonitor (void) |
void | unmuteAudioMonitor (void) |
virtual void | customEvent (QEvent *qce) |
void | widgetDestroyed (QObject *obj) |
Protected Slots inherited from ConfigDialog | |
void | notificationFromDialog (const Parameter &p) |
virtual void | dClosed (int r) |
virtual void | hClosed (int r) |
Static Protected Member Functions inherited from StandardTraces | |
static void | clearIndices (int *traceindices, int n=-1) |
static void | initStandardTraces (const InList &data, int *ntraces, int *traceindices, const string *names, string &namelist, bool alpha=false) |
static void | initStandardEventTraces (const InList &data, const EventList &events, int *ntraces, int *traceindices, int *eventindices, const string *tracenames, const string *eventnames, string &tracenamelist, string &eventnamelist, bool alpha=false) |
static void | initStandardOutputs (const RELACSPlugin *rp, int *ntraces, int *traceindices, const string *names, string &namelist, bool alpha=false) |
Protected Attributes inherited from Control | |
RELACSWidget * | RW |
Protected Attributes inherited from ConfigDialog | |
Options | DialogOptions |
Static Protected Attributes inherited from StandardTraces | |
static const int | MaxTraces |
[Control] Control recordings from auditory neurons
Session | ( | void | ) |
~Session | ( | void | ) |
|
virtual |
Reimplemented from ConfigClass.
References Control::events(), and Control::traces().
|
virtual |
Reimplemented from ConfigClass.
References MetaData::addSaveFlags(), MetaData::delSaveFlags(), Control::lockMetaData(), Control::metaData(), Control::simulation(), and Control::unlockMetaData().
|
virtual |
Reimplemented from Control.
References OptWidget::assign(), Control::device(), Control::lockMetaData(), Control::lockStimulusData(), Control::metaData(), Control::metaDataMutex(), OptWidget::setVerticalSpacing(), Control::stimulusData(), Control::stimulusDataMutex(), Control::unlockMetaData(), and Control::unlockStimulusData().
|
virtual |
Reimplemented from Control.
References Map< T >::clear(), Session::fICurve(), ConfigDialog::lock(), Control::lockMetaData(), Control::metaData(), ConfigDialog::unlock(), and Control::unlockMetaData().
|
virtual |
Reimplemented from Control.
References ConfigDialog::lock(), and ConfigDialog::unlock().
|
virtual |
Notify about changes in the meta data.
Reimplemented from Control.
References Control::metaData(), and OptWidget::updateValues().
|
virtual |
Reimplemented from Control.
References OptWidget::updateValues().
MapD threshCurve | ( | int | side = 2 | ) | const |
Return the most recently measured threshold curve of side side. If side equals 2, then the threshold curve of the cell's best side is returned.
References ConfigDialog::lock(), Control::lockMetaData(), Control::metaData(), ConfigDialog::unlock(), and Control::unlockMetaData().
Referenced by SingleStimulus::main(), and FICurve::main().
void addThreshCurve | ( | const MapD & | thresh, |
int | side | ||
) |
Pass a measured threshold curve thresh of side side to the session.
References ConfigDialog::lock(), and ConfigDialog::unlock().
Referenced by FIField::save().
MapD fICurve | ( | int | side = 2 , |
double | carrierfreq = 0.0 , |
||
bool | lockit = true |
||
) | const |
Return the most recently measured f-I curve of side side and carrier frequency carrierfreq. If side equals 2, then the f-I curve of the cell's best side is returned. If carrierfreq equals 0.0, then the f-I curve at the best frequency is returned. Setting lockit to false
does not lock the Session's mutex while accessing the f-I curve data (for internal usage).
References ConfigDialog::lock(), Control::lockMetaData(), Control::metaData(), ConfigDialog::unlock(), and Control::unlockMetaData().
Referenced by SysLatency::main(), SingleStimulus::main(), and Session::sessionStarted().
MapD fICurve | ( | int | index, |
int | side, | ||
double & | carrierfreq | ||
) | const |
Return the index-th most recently measured f-I curve and its carrier frequency carrierfreq of side side. If side equals 2, then an f-I curve of the cell's best side is returned. index=0 is the most recently measured f-I curve. If index requests an f-I curve that does not exist, an empty MapD is returned and carrierfreq is set to 0.
References ConfigDialog::lock(), Control::lockMetaData(), Control::metaData(), ConfigDialog::unlock(), and Control::unlockMetaData().
void addFICurve | ( | const MapD & | ficurve, |
int | side, | ||
double | carrierfreq | ||
) |
Pass a measured f-I curve ficurve of side side with carrier frequency carrierfreq to the session.
References ConfigDialog::lock(), and ConfigDialog::unlock().
Referenced by FIField::save(), and FICurve::updateSession().
MapD onFICurve | ( | int | side = 2 , |
double | carrierfreq = 0.0 |
||
) | const |
Return the most recently measured onset f-I curve of side side and carrier frequency carrierfreq. If side equals 2, then the f-I curve of the cell's best side is returned. If carrierfreq equals 0.0, then the f-I curve at the best frequency is returned.
References ConfigDialog::lock(), Control::lockMetaData(), Control::metaData(), ConfigDialog::unlock(), and Control::unlockMetaData().
MapD onFICurve | ( | int | index, |
int | side, | ||
double & | carrierfreq | ||
) | const |
Return the index-th most recently measured onset f-I curve and its carrier frequency carrierfreq of side side. If side equals 2, then an f-I curve of the cell's best side is returned. index=0 is the most recently measured onset f-I curve. If index requests an f-I curve that does not exist, an empty MapD is returned and carrierfreq is set to 0.
References ConfigDialog::lock(), Control::lockMetaData(), Control::metaData(), ConfigDialog::unlock(), and Control::unlockMetaData().
void addOnFICurve | ( | const MapD & | onficurve, |
int | side, | ||
double | carrierfreq | ||
) |
Pass a measured onset f-I curve onficurve of side side with carrier frequency carrierfreq to the session.
References ConfigDialog::lock(), and ConfigDialog::unlock().
Referenced by FIField::save(), and FICurve::updateSession().
MapD ssFICurve | ( | int | side = 2 , |
double | carrierfreq = 0.0 |
||
) | const |
Return the most recently measured steady-state f-I curve of side side and carrier frequency carrierfreq. If side equals 2, then the f-I curve of the cell's best side is returned. If carrierfreq equals 0.0, then the f-I curve at the best frequency is returned.
References ConfigDialog::lock(), Control::lockMetaData(), Control::metaData(), ConfigDialog::unlock(), and Control::unlockMetaData().
Referenced by SysLatency::main(), and SingleStimulus::main().
MapD ssFICurve | ( | int | index, |
int | side, | ||
double & | carrierfreq | ||
) | const |
Return the index-th most recently measured steady-state f-I curve and its carrier frequency carrierfreq of side side. If side equals 2, then an f-I curve of the cell's best side is returned. index=0 is the most recently steady-state measured f-I curve. If index requests an f-I curve that does not exist, an empty MapD is returned and carrierfreq is set to 0.
References ConfigDialog::lock(), Control::lockMetaData(), Control::metaData(), ConfigDialog::unlock(), and Control::unlockMetaData().
void addSSFICurve | ( | const MapD & | ssficurve, |
int | side, | ||
double | carrierfreq | ||
) |
Pass a measured steady state f-I curve ssficurve of side side with carrier frequency carrierfreq to the session.
References ConfigDialog::lock(), and ConfigDialog::unlock().
Referenced by FIField::save(), and FICurve::updateSession().
void updateBestSide | ( | void | ) |
Determine the cell's best side based on the left / right and left noise / right noise settings.
References Control::lockMetaData(), Control::metaData(), and Control::unlockMetaData().
Referenced by FIField::save(), and FICurve::updateSession().
|
protectedvirtual |