Aimsun Next Scripting
22
|
Public Types | |
enum | IdType { eById , eByName , eByExternalId } |
enum | TimeType { eDateTimeISO , eDateTimeLocal , eTimeAbsoluteHHMMSS , eTimeRelativeHHMMSS , eTimeAbsoluteSS , eTimeRelativeSS } |
enum | DecimalSeparator { eSystem = 0 , eDot = 1 , eComma = 2 } |
Public Member Functions | |
GKRealDataSetRestorerSimple () | |
virtual QString | getName () const |
virtual QString | getExternalName () const |
virtual QString | getDescription () const |
virtual uint | order () const |
virtual QString | secondaryOrder () const |
virtual QString | getOriginatorName () const |
bool | restoreData (GKRealDataSet *arealDataSet, GKModel *amodel) |
virtual QString | store () const |
virtual void | restore (GKRealDataSet *arealDataSet, const QString &xmlData) |
const QString & | getFileName () const |
void | setFileName (const QString &aname) |
bool | getUseFileNameAsId () const |
void | setUseFileNameAsId (bool value) |
IdType | getIdType () const |
void | setIdType (IdType value) |
TimeType | getTimeType () const |
void | setTimeType (TimeType value) |
GK::UnitSystem | getUnits () const |
void | setUnits (GK::UnitSystem value) |
QChar | getSeparator () const |
void | setSeparator (QChar value) |
GKRealDataSetRestorerSimple::DecimalSeparator | getDecimalSeparator () const |
void | setDecimalSeparator (DecimalSeparator value) |
QDateTime | getBaseDate () const |
void | setBaseDate (const QDateTime &value) |
const QVector< GKRealDataSet::ColType > & | getColumns () const |
void | clearColumns () |
void | setColumns (const QVector< GKRealDataSet::ColType > &value) |
const QVector< QString > & | getVehicles () const |
void | clearVehicles () |
void | setVehicles (const QVector< QString > &value) |
void | setForcedInterval (const GKTimeDuration &newInterval) |
GKTimeDuration | getForcedInterval () const |
void | setLinesToSkip (int nbLines) |
int | getLinesToSkip () const |
![]() | |
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 GKType * | getObjectType () 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 | |
![]() | |
ConvertToSubClassCode Py_BEGIN_ALLOW_THREADS GKRealDataSetRestorer * | base = (GKRealDataSetRestorer*)sipCpp |
sipType = 0 | |
This object restores data from an ascii file. When restored, a new column is created in the referenced type and the data is loaded for each referenced object
Time representation types eDateTimeISO: ISO 8601 extended format (YYYY-MM-DD, or with time, YYYY-MM-DDTHH:MM:SS) eDateTimeLocal: the format used by the operating system eTimeAbsoluteHHMMSS: HHMMSS and HMMSS formats are allowed. Base time is not taken into account. eTimeRelativeHHMMSS: HHMMSS and HMMSS formats are allowed. The time is relative to the base time eTimeAbsoluteSS: Absolute time in seconds eTimeRelativeSS: Time relative to base time in seconds.
Enumerator | |
---|---|
eDateTimeISO | |
eDateTimeLocal | |
eTimeAbsoluteHHMMSS | |
eTimeRelativeHHMMSS | |
eTimeAbsoluteSS | |
eTimeRelativeSS |
GKRealDataSetRestorerSimple::GKRealDataSetRestorerSimple | ( | ) |
void GKRealDataSetRestorerSimple::clearColumns | ( | ) |
Removes all columns to restore.
void GKRealDataSetRestorerSimple::clearVehicles | ( | ) |
Clears all the vehicle types.
QDateTime GKRealDataSetRestorerSimple::getBaseDate | ( | ) | const |
Returns the Base Date. It is only relevant on Relative Time types.
const QVector< GKRealDataSet::ColType > & GKRealDataSetRestorerSimple::getColumns | ( | ) | const |
Returns the columns types to restore.
GKRealDataSetRestorerSimple::DecimalSeparator GKRealDataSetRestorerSimple::getDecimalSeparator | ( | ) | const |
Returns the decimal value separator: System, comma, dot.
|
virtual |
Reimplemented from GKRealDataSetRestorer.
Implements GKRealDataSetRestorer.
|
virtual |
Reimplemented from GKRealDataSetRestorer.
Implements GKRealDataSetRestorer.
const QString & GKRealDataSetRestorerSimple::getFileName | ( | ) | const |
Returns the file name, which contains the data.
|
virtual |
Force an aggregation interval for the data. Set 00:00:00 to turn it off.
Reimplemented from GKRealDataSetRestorer.
IdType GKRealDataSetRestorerSimple::getIdType | ( | ) | const |
Returns the type id, used to find the objects.
int GKRealDataSetRestorerSimple::getLinesToSkip | ( | ) | const |
Returns the number of Lines that the reader will ignore at the beggining of the file.
|
virtual |
Reimplemented from GKRealDataSetRestorer.
Implements GKRealDataSetRestorer.
|
virtual |
Reimplemented from GKRealDataSetRestorer.
Implements GKRealDataSetRestorer.
QChar GKRealDataSetRestorerSimple::getSeparator | ( | ) | const |
Returns the data field separator: Space, TAB, Comma.
TimeType GKRealDataSetRestorerSimple::getTimeType | ( | ) | const |
Returns the time definition type.
GK::UnitSystem GKRealDataSetRestorerSimple::getUnits | ( | ) | const |
Returns the units of file contents, English or Metric.
bool GKRealDataSetRestorerSimple::getUseFileNameAsId | ( | ) | const |
Returns whether the file name is an object identifier or not.
const QVector< QString > & GKRealDataSetRestorerSimple::getVehicles | ( | ) | const |
Returns the vehicle types for all rows.
|
virtual |
Reimplemented from GKRealDataSetRestorer.
Reimplemented from GKRealDataSetRestorer.
|
virtual |
Reimplemented from GKRealDataSetRestorer.
Implements GKRealDataSetRestorer.
|
virtual |
Reimplemented from GKRealDataSetRestorer.
Reimplemented from GKRealDataSetRestorer.
|
virtual |
Reimplemented from GKRealDataSetRestorer.
Reimplemented from GKRealDataSetRestorer.
void GKRealDataSetRestorerSimple::setBaseDate | ( | const QDateTime & | value | ) |
Sets the Base Date. It is only relevant on Relative Time types.
void GKRealDataSetRestorerSimple::setColumns | ( | const QVector< GKRealDataSet::ColType > & | value | ) |
Sets the columns types to restore.
void GKRealDataSetRestorerSimple::setDecimalSeparator | ( | DecimalSeparator | value | ) |
Sets the decimal value separator: System, comma, dot.
void GKRealDataSetRestorerSimple::setFileName | ( | const QString & | aname | ) |
Sets the file name, which contains the data.
void GKRealDataSetRestorerSimple::setForcedInterval | ( | const GKTimeDuration & | newInterval | ) |
Force an aggregation interval for the data. Set 00:00:00 to turn it off.
void GKRealDataSetRestorerSimple::setIdType | ( | IdType | value | ) |
Sets the type id, used to find the objects.
void GKRealDataSetRestorerSimple::setLinesToSkip | ( | int | nbLines | ) |
Sets the umber of Lines that the reader will ignore at the beggining of the file.
void GKRealDataSetRestorerSimple::setSeparator | ( | QChar | value | ) |
Sets the data field separator: Space, TAB, Comma.
void GKRealDataSetRestorerSimple::setTimeType | ( | TimeType | value | ) |
Sets the time definition type.
void GKRealDataSetRestorerSimple::setUnits | ( | GK::UnitSystem | value | ) |
Sets the units of file contents, English or Metric.
void GKRealDataSetRestorerSimple::setUseFileNameAsId | ( | bool | value | ) |
Sets whether the file name is an object identifier or not.
void GKRealDataSetRestorerSimple::setVehicles | ( | const QVector< QString > & | value | ) |
Sets the vehicle types for all rows.
|
virtual |
Reimplemented from GKRealDataSetRestorer.
Implements GKRealDataSetRestorer.