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

Evaluates samplepoints through a remote SGE administered cluster. More...

Inheritance diagram for DistributedDataSource:
Inheritance graph
[legend]

Public Member Functions

 DistributedDataSource (Config config) throws DataSourceException
 
void cleanup ()
 Perform any necessary cleanups and stops the polling. More...
 
DataSourceStatus getStatus ()
 Return status of this SE (eg., how many free nodes available) More...
 
LinkedList< String > getDependencies ()
 
final void run ()
 Polls the input queue for new samples in a separate thread and calls evaluate. More...
 
abstract void evaluate (SamplePoint point)
 Evaluate one point. More...
 
SamplePoint requestNewSample ()
 Request a new sample for evaluation. More...
 
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...
 
int getInputDimension ()
 
int getOutputDimension ()
 

Protected Member Functions

String getLocalExe ()
 
String getRemoteExe ()
 
String getOptions ()
 
DistributedBackend getBackend ()
 
final void submitEvaluatedSample (SamplePoint point)
 This function is called by the derived subclass whenever a successfully evaluated point needs to be added to the queue. More...
 
final void submitFailedSample (SamplePoint point)
 This function is called by the derived subclass whenever a FAILED point needs to be added to the queue. More...
 
AbstractSampleQueueManager getSampleQueueManager ()
 Get the sample queue manager for this sample evaluator. More...
 

Detailed Description

Evaluates samplepoints through a remote SGE administered cluster.

Constructor & Destructor Documentation

Member Function Documentation

void cleanup ( )
inline

Perform any necessary cleanups and stops the polling.

Implements DataSource.

abstract void evaluate ( SamplePoint  point)
abstractinherited

Evaluate one point.

SamplePoint fetchEvaluatedSample ( )
inlineinherited

Get the next evaluated point.

Implements DataSource.

double getAverageEvaluationTime ( )
inlineinherited

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

Implements DataSource.

DistributedBackend getBackend ( )
inlineprotected
LinkedList<String> getDependencies ( )
inline
int getInputDimension ( )
inlineinherited
String getLocalExe ( )
inlineprotected
int getNumEvaluatedSamples ( )
inlineinherited

Return the number of evaluated points waiting to be fetched.

Implements DataSource.

int getNumPendingSamples ( )
inlineinherited

Return the number of poitns pending evaluation.

Implements DataSource.

String getOptions ( )
inlineprotected
int getOutputDimension ( )
inlineinherited
String getRemoteExe ( )
inlineprotected
AbstractSampleQueueManager getSampleQueueManager ( )
inlineprotectedinherited

Get the sample queue manager for this sample evaluator.

DataSourceStatus getStatus ( )
inline

Return status of this SE (eg., how many free nodes available)

Implements DataSource.

SamplePoint requestNewSample ( )
inlineinherited

Request a new sample for evaluation.

final void run ( )
inlineinherited

Polls the input queue for new samples in a separate thread and calls evaluate.

final void submitEvaluatedSample ( SamplePoint  point)
inlineprotectedinherited

This function is called by the derived subclass whenever a successfully evaluated point needs to be added to the queue.

final void submitFailedSample ( SamplePoint  point)
inlineprotectedinherited

This function is called by the derived subclass whenever a FAILED point needs to be added to the queue.

void submitSamplesForEvaluation ( SamplePoint[]  points)
inlineinherited

Schedule points for evaluation.

Implements DataSource.


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