Aimsun Next Scripting
22
|
Public Member Functions | |
GKODMatrixReaderODBC () | |
void | setDbInfo (const GKDataBaseInfo &) |
const GKDataBaseInfo & | getDbInfo () const |
bool | read (GKODMatrix *) |
bool | write (GKODMatrix *) |
void | setRID (int) |
void | setTimeInt (int) |
![]() | |
GKODMatrixReaderExternal () | |
void | setMode (const GKODMatrix::GKODMatrixStoreId &) |
virtual bool | read (GKODMatrix *)=0 |
virtual bool | write (const GKODMatrix *)=0 |
This class can be used at any moment to store or restore an existing an od as long as the database connection data (db, username, password) and the GKODMatrixReaderExternal::setMode are correct.
It will read or write the following information:
CTYPE is set using the vehicle type name (GKODMatrix::getVehicle, GKVehicle::getName) as:
Example:
GKODMatrixReaderODBC::GKODMatrixReaderODBC | ( | ) |
const GKDataBaseInfo & GKODMatrixReaderODBC::getDbInfo | ( | ) | const |
Get the database to be used.
|
virtual |
Reads a matrix from the database
Implements GKODMatrixReaderExternal.
void GKODMatrixReaderODBC::setDbInfo | ( | const GKDataBaseInfo & | ) |
Set the database to be used.
void GKODMatrixReaderODBC::setRID | ( | int | ) |
Extra parameters ... no coded in Aimsun DB but supported in the ODBC DB.
Sets the identifier of the real data used to adjust a matrix.
void GKODMatrixReaderODBC::setTimeInt | ( | int | ) |
Extra parameters ... no coded in Aimsun DB but supported in the ODBC DB.
Sets the number of intervals in the real data used to adjust a matrix.
bool GKODMatrixReaderODBC::write | ( | GKODMatrix * | ) |
Writes a matrix into the database