|
Aimsun Next Scripting
24.0
|
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 |
| void | init (const GKRealDataSet *aRealDataSet) |
| bool | restoreData (GKRealDataSet *arealDataSet, GKModel *amodel) |
| 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< GKRDS::ColType > & | getColumns () const |
| void | clearColumns () |
| void | setColumns (const QVector< GKRDS::ColType > &value) |
| const std::vector< int > & | getVehicles () const |
| void | setVehicles (const std::vector< int > &aVehicles) |
| bool | includeVehicle (uint aVehicleId) |
| bool | addVehicle (int aColumn, uint aVehicleId) |
| bool | removeVehicle (uint aVehicleId) |
| void | setForcedInterval (const GKTimeDuration &newInterval) |
| GKTimeDuration | getForcedInterval () const |
| void | setLinesToSkip (int nbLines) |
| int | getLinesToSkip () const |
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 | ( | ) |
| bool GKRealDataSetRestorerSimple::addVehicle | ( | int | aColumn, |
| uint | aVehicleId | ||
| ) |
Add Vehicle by pos and name.
| void GKRealDataSetRestorerSimple::clearColumns | ( | ) |
Removes all columns to restore.
| QDateTime GKRealDataSetRestorerSimple::getBaseDate | ( | ) | const |
Returns the Base Date. It is only relevant on Relative Time types.
| const QVector< GKRDS::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.
|
virtual |
Reimplemented from GKRealDataSetRestorer.
| const QString & GKRealDataSetRestorerSimple::getFileName | ( | ) | const |
Returns the file name, which contains the data.
| GKTimeDuration GKRealDataSetRestorerSimple::getForcedInterval | ( | ) | const |
Force an aggregation interval for the data. Set 00:00:00 to turn it off.
| 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.
|
virtual |
Reimplemented from 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 std::vector< int > & GKRealDataSetRestorerSimple::getVehicles | ( | ) | const |
Returns the vehicle types for all rows.
| bool GKRealDataSetRestorerSimple::includeVehicle | ( | uint | aVehicleId | ) |
Is it included the called Vehicle Type?
| void GKRealDataSetRestorerSimple::init | ( | const GKRealDataSet * | aRealDataSet | ) |
Init attributes.
|
virtual |
Reimplemented from GKRealDataSetRestorer.
| bool GKRealDataSetRestorerSimple::removeVehicle | ( | uint | aVehicleId | ) |
Remove Vehicle by name.
|
virtual |
Reimplemented from GKRealDataSetRestorer.
| bool GKRealDataSetRestorerSimple::restoreData | ( | GKRealDataSet * | arealDataSet, |
| GKModel * | amodel | ||
| ) |
Reimplemented from GKRealDataSetRestorer.
|
virtual |
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< GKRDS::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 std::vector< int > & | aVehicles | ) |
Sets the vehicle types for all rows.
1.9.4