The SUMO toolbox  2018a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Protected Member Functions | List of all members
DefaultDataSource Class Referenceabstract

A helper class for implementing DataSource. More...

Inheritance diagram for DefaultDataSource:
Inheritance graph
[legend]

Public Member Functions

 DefaultDataSource (Config config)
 
void submitSamplesForEvaluation (SamplePoint[] points)
 Schedule points for evaluation. More...
 
SamplePoint fetchEvaluatedSample ()
 Get the next evaluated point. More...
 
int getNumPendingSamples ()
 Return the number of poitns pending evaluation. More...
 
int getNumEvaluatedSamples ()
 Return the number of evaluated points waiting to be fetched. More...
 
double getAverageEvaluationTime ()
 Return the average evaluation time (in seconds) for one data point. More...
 
DataSourceStatus getStatus ()
 Returns default status. More...
 
void cleanup ()
 Cleanup procedure called when the sample queue thread is aborted. More...
 
int getInputDimension ()
 
int getOutputDimension ()
 

Protected Member Functions

AbstractSampleQueueManager getSampleQueueManager ()
 Get the sample queue manager for this sample evaluator. More...
 

Detailed Description

A helper class for implementing DataSource.

Constructor & Destructor Documentation

DefaultDataSource ( Config  config)
inline

Member Function Documentation

void cleanup ( )
inline

Cleanup procedure called when the sample queue thread is aborted.

Stops the polling thread.

Implements DataSource.

SamplePoint fetchEvaluatedSample ( )
inline

Get the next evaluated point.

Implements DataSource.

double getAverageEvaluationTime ( )
inline

Return the average evaluation time (in seconds) for one data point.

Implements DataSource.

int getInputDimension ( )
inline
int getNumEvaluatedSamples ( )
inline

Return the number of evaluated points waiting to be fetched.

Implements DataSource.

int getNumPendingSamples ( )
inline

Return the number of poitns pending evaluation.

Implements DataSource.

int getOutputDimension ( )
inline
AbstractSampleQueueManager getSampleQueueManager ( )
inlineprotected

Get the sample queue manager for this sample evaluator.

DataSourceStatus getStatus ( )
inline

Returns default status.

Can be overrided if other than default behaviour is desired.

Implements DataSource.

void submitSamplesForEvaluation ( SamplePoint[]  points)
inline

Schedule points for evaluation.

Implements DataSource.


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