The SUMO toolbox  2018a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
SamplePoint Class Reference

SamplePoint keeps track of all the info related to one point that is submitted for simulation/evaluation. More...

Inheritance diagram for SamplePoint:
Inheritance graph
[legend]

Classes

enum  EqualType
 

Public Member Functions

 SamplePoint (double[] inputParameters, int outputDimension)
 Create a sample point that has to be evaluated for the given input parameters. More...
 
 SamplePoint (double[] inputParameters, double[] outputParameters)
 
 SamplePoint (int inputDimension, int outputDimension)
 
void setPriority (double p)
 
double getPriority ()
 
long getId ()
 
double[] getInputParameters ()
 
double getInputParameter (int i)
 
void setInputParameters (double[] inputParameters)
 
int getInputDimension ()
 
double[] getOutputParameters ()
 
double getOutputParameter (int i)
 
void setOutputParameters (double[] outputParameters)
 
int getOutputDimension ()
 
String toString ()
 
SamplePoint getNull ()
 
String inputsToString ()
 
String outputsToString ()
 
void inputsAndOutputsFromStream (Scanner scanner) throws DataSourceException
 
void outputsFromStream (Scanner scanner) throws DataSourceException
 Read outputs from an InputStream object by using a scanner object. More...
 
void outputsFromFile (File f) throws DataSourceException
 
int hashCode ()
 
boolean equalTo (SamplePoint other, double tolerance, EqualType et)
 
boolean equals (Object obj)
 

Static Public Member Functions

static long newID ()
 

Detailed Description

SamplePoint keeps track of all the info related to one point that is submitted for simulation/evaluation.

This object represents a task for the DataSource: for each given set of input parameters, the DataSource has to calculate the output parameters.

Constructor & Destructor Documentation

SamplePoint ( double[]  inputParameters,
int  outputDimension 
)
inline

Create a sample point that has to be evaluated for the given input parameters.

Parameters
inputParameters
SamplePoint ( double[]  inputParameters,
double[]  outputParameters 
)
inline
SamplePoint ( int  inputDimension,
int  outputDimension 
)
inline

Member Function Documentation

boolean equals ( Object  obj)
inline
boolean equalTo ( SamplePoint  other,
double  tolerance,
EqualType  et 
)
inline
long getId ( )
inline
int getInputDimension ( )
inline
double getInputParameter ( int  i)
inline
double [] getInputParameters ( )
inline
SamplePoint getNull ( )
inline
int getOutputDimension ( )
inline
double getOutputParameter ( int  i)
inline
double [] getOutputParameters ( )
inline
double getPriority ( )
inline
int hashCode ( )
inline
void inputsAndOutputsFromStream ( Scanner  scanner) throws DataSourceException
inline
String inputsToString ( )
inline
static long newID ( )
inlinestatic
void outputsFromFile ( File  f) throws DataSourceException
inline
void outputsFromStream ( Scanner  scanner) throws DataSourceException
inline

Read outputs from an InputStream object by using a scanner object.

String outputsToString ( )
inline
void setInputParameters ( double[]  inputParameters)
inline
void setOutputParameters ( double[]  outputParameters)
inline
void setPriority ( double  p)
inline
String toString ( )
inline

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