Aimsun Next Scripting  22
Public Member Functions | List of all members
GKRealDataSetRestorerOnline Class Reference
Inheritance diagram for GKRealDataSetRestorerOnline:
GKRealDataSetRestorer

Public Member Functions

 GKRealDataSetRestorerOnline ()
 
 ~GKRealDataSetRestorerOnline ()
 
uint getIdPattern () const
 
void setIdPattern (uint value)
 
void init ()
 
const QTime & getStartTime () const
 
void setStartTime (const QTime &value)
 
const GKTimeDurationgetDuration () const
 
void setDuration (const GKTimeDuration &value)
 
const GKTimeDurationgetInterval () const
 
void setInterval (const GKTimeDuration &value)
 
void setPatternToRestore (int idPattern)
 
QVector< double > getAlphas (int iExecutionNr, int nbAlphas) const
 
QVector< int > getPatternIds (int iExecutionNr)
 
QVector< int > getExecutionDetectors (int iExecutionNr, GKModel *iModel)
 
QVector< int > getExecutionDetectorSections (int iExecutionNr, GKModel *iModel)
 
int getMaxMatrixId ()
 
const GKTrafficDemandcreatePatternDemand (int iPatternId, GKModel *iModel, GKProblemNet *iProblemNet, GKCentroidConfiguration *iCentroidConfiguration)
 
- Public Member Functions inherited from GKRealDataSetRestorer
 if (base)
 
Py_END_ALLOW_THREADS End GKRealDataSetRestorer ()
 
 ~GKRealDataSetRestorer ()
 
void setRealDataSet (GKRealDataSet *arealDataSet)
 
virtual QString getName () const =0
 
virtual QString getExternalName () const =0
 
virtual QString getDescription () const =0
 
virtual uint order () const
 
virtual QString secondaryOrder () const
 
const GKTypegetObjectType () const
 
void setObjectType (const GKType *type)
 
virtual bool restoreData (GKRealDataSet *, GKModel *)
 
virtual QString store () const =0
 
virtual void restore (GKRealDataSet *, const QString &)=0
 
virtual GKTimeDuration getForcedInterval () const
 
virtual QString getOriginatorName () const =0
 

Additional Inherited Members

- Public Attributes inherited from GKRealDataSetRestorer
ConvertToSubClassCode Py_BEGIN_ALLOW_THREADS GKRealDataSetRestorerbase = (GKRealDataSetRestorer*)sipCpp
 
 sipType = 0
 

Detailed Description

the AOPATTERNS table columns are: id: pattern ID start: start time in seconds duration: duration in seconds dataInterval: interval time in seconds

the AOPATTERNVALUES table columns are: id: pattern ID sensor: detector external ID type: it is always set to 2 (flow) mean: time series mean values high: time series upper bound values low: time series lower bound values

Constructor & Destructor Documentation

◆ GKRealDataSetRestorerOnline()

GKRealDataSetRestorerOnline::GKRealDataSetRestorerOnline ( )

◆ ~GKRealDataSetRestorerOnline()

GKRealDataSetRestorerOnline::~GKRealDataSetRestorerOnline ( )

Member Function Documentation

◆ createPatternDemand()

const GKTrafficDemand * GKRealDataSetRestorerOnline::createPatternDemand ( int  iPatternId,
GKModel iModel,
GKProblemNet iProblemNet,
GKCentroidConfiguration iCentroidConfiguration 
)

create demand for pattern

◆ getAlphas()

QVector< double > GKRealDataSetRestorerOnline::getAlphas ( int  iExecutionNr,
int  nbAlphas 
) const

return as many alphas as nbAlphas. It only can be called after setPatternToRestore function

◆ getDuration()

const GKTimeDuration & GKRealDataSetRestorerOnline::getDuration ( ) const

returns the pattern duration

◆ getExecutionDetectors()

QVector< int > GKRealDataSetRestorerOnline::getExecutionDetectors ( int  iExecutionNr,
GKModel iModel 
)

return detector IDs used in this execution

◆ getExecutionDetectorSections()

QVector< int > GKRealDataSetRestorerOnline::getExecutionDetectorSections ( int  iExecutionNr,
GKModel iModel 
)

return section IDs with detector in this execution

◆ getIdPattern()

uint GKRealDataSetRestorerOnline::getIdPattern ( ) const

returns the pattern id

◆ getInterval()

const GKTimeDuration & GKRealDataSetRestorerOnline::getInterval ( ) const

returns the pattern interval

◆ getMaxMatrixId()

int GKRealDataSetRestorerOnline::getMaxMatrixId ( )

return the maximum matrix ID that is being used in the database

◆ getPatternIds()

QVector< int > GKRealDataSetRestorerOnline::getPatternIds ( int  iExecutionNr)

return pattern IDs for a specified execution number

◆ getStartTime()

const QTime & GKRealDataSetRestorerOnline::getStartTime ( ) const

returns the pattern start time

◆ init()

void GKRealDataSetRestorerOnline::init ( )

initialize the restorer

◆ setDuration()

void GKRealDataSetRestorerOnline::setDuration ( const GKTimeDuration value)

sets the pattern duration

◆ setIdPattern()

void GKRealDataSetRestorerOnline::setIdPattern ( uint  value)

sets the pattern id

◆ setInterval()

void GKRealDataSetRestorerOnline::setInterval ( const GKTimeDuration value)

sets the pattern interval

◆ setPatternToRestore()

void GKRealDataSetRestorerOnline::setPatternToRestore ( int  idPattern)

sets the pattern that will be restored from DB. Only from scripting

◆ setStartTime()

void GKRealDataSetRestorerOnline::setStartTime ( const QTime &  value)

sets the pattern start time

© Aimsun SLU
Aimsun ®