Aimsun Next Scripting
22
|
Public Member Functions | |
GKModelConnection () | |
void | init (const GKGenericExperiment *experiment) |
GKModel * | getModel () const |
const GKGenericExperiment * | getExperiment () const |
bool | isObjectValueOverriden (const GKObject *obj, const QString &columnName) const |
bool | isObjectValueOverriden (const GKObject *obj, uint columnId) const |
bool | isObjectValueOverriden (const GKObject *obj, const GKColumn *column) const |
QVariant | getObjectDataValue (const GKObject *obj, const QString &columnName) const |
QVariant | getObjectDataValue (const GKObject *obj, uint columnId) const |
QVariant | getObjectDataValue (const GKObject *obj, const GKColumn *column) const |
int | getObjectDataValueInt (const GKObject *obj, const QString &columnName) const |
int | getObjectDataValueInt (const GKObject *obj, uint columnId) const |
int | getObjectDataValueInt (const GKObject *obj, const GKColumn *column) const |
double | getObjectDataValueDouble (const GKObject *obj, const QString &columnName) const |
double | getObjectDataValueDouble (const GKObject *obj, uint columnId) const |
double | getObjectDataValueDouble (const GKObject *obj, const GKColumn *column) const |
bool | getObjectDataValueBool (const GKObject *obj, const QString &columnName) const |
bool | getObjectDataValueBool (const GKObject *obj, uint columnId) const |
bool | getObjectDataValueBool (const GKObject *obj, const GKColumn *column) const |
QString | getObjectDataValueString (const GKObject *obj, const QString &columnName) const |
QString | getObjectDataValueString (const GKObject *obj, uint columnId) const |
QString | getObjectDataValueString (const GKObject *obj, const GKColumn *column) const |
GKObject * | getObjectDataValueObject (const GKObject *obj, const QString &columnName) const |
GKObject * | getObjectDataValueObject (const GKObject *obj, uint columnId) const |
GKObject * | getObjectDataValueObject (const GKObject *obj, const GKColumn *column) const |
double | getTurningSpeed (const GKTurning *turning, bool *isAutoPtr=NULL) const |
bool | getTurningYellowBoxBehaviour (const GKTurning *turning) const |
double | getTurningAttractivenessByVehicleType (const GKTurning *turning, const GKVehicle *vehicleType, bool *usesCapacityAsAttractivenessPtr=nullptr) const |
double | getTurningCapacity (const GKTurning *turning, bool *isAutoPtr=NULL) const |
double | getTurningCapacityByOrigin (const GKTurning *turning, bool *isAutoPtr=NULL) const |
double | getTurningCapacityByDestination (const GKTurning *turning, bool *isAutoPtr=NULL) const |
GKSectionLane | getSectionLane (const GKSection *section, uint lanePos) const |
QVector< GKSectionLane > | getSectionLanes (const GKSection *section) const |
bool | canUseVehicleInSection (const GKSection *section, const GKMobileAgent *agent) const |
This class is intended to be used as a base class for the different model-to-simulator classes we have in Aimsun, like i.e.:
The class itself stores common data for all (such as replication, experiment & model) and provides the required functions for attribute overrides, etc...
GKModelConnection::GKModelConnection | ( | ) |
bool GKModelConnection::canUseVehicleInSection | ( | const GKSection * | section, |
const GKMobileAgent * | agent | ||
) | const |
Returns true if the given mobile agent can use this section. First looks if the mobile agent is banned for this roadType or section, then, if it' i's a vehicle, looks at the different lanes to see if they are reserved.
const GKGenericExperiment * GKModelConnection::getExperiment | ( | ) | const |
GKModel * GKModelConnection::getModel | ( | ) | const |
QVariant GKModelConnection::getObjectDataValue | ( | const GKObject * | obj, |
const GKColumn * | column | ||
) | const |
Get value of specified object and column
QVariant GKModelConnection::getObjectDataValue | ( | const GKObject * | obj, |
const QString & | columnName | ||
) | const |
Get value of specified object and column
QVariant GKModelConnection::getObjectDataValue | ( | const GKObject * | obj, |
uint | columnId | ||
) | const |
Get value of specified object and column
bool GKModelConnection::getObjectDataValueBool | ( | const GKObject * | obj, |
const GKColumn * | column | ||
) | const |
Get bool value of specified object and column
bool GKModelConnection::getObjectDataValueBool | ( | const GKObject * | obj, |
const QString & | columnName | ||
) | const |
Get bool value of specified object and column
bool GKModelConnection::getObjectDataValueBool | ( | const GKObject * | obj, |
uint | columnId | ||
) | const |
Get bool value of specified object and column
double GKModelConnection::getObjectDataValueDouble | ( | const GKObject * | obj, |
const GKColumn * | column | ||
) | const |
Get double value of specified object and column
double GKModelConnection::getObjectDataValueDouble | ( | const GKObject * | obj, |
const QString & | columnName | ||
) | const |
Get double value of specified object and column
double GKModelConnection::getObjectDataValueDouble | ( | const GKObject * | obj, |
uint | columnId | ||
) | const |
Get double value of specified object and column
int GKModelConnection::getObjectDataValueInt | ( | const GKObject * | obj, |
const GKColumn * | column | ||
) | const |
Get int value of specified object and column
int GKModelConnection::getObjectDataValueInt | ( | const GKObject * | obj, |
const QString & | columnName | ||
) | const |
Get int value of specified object and column
int GKModelConnection::getObjectDataValueInt | ( | const GKObject * | obj, |
uint | columnId | ||
) | const |
Get int value of specified object and column
GKObject * GKModelConnection::getObjectDataValueObject | ( | const GKObject * | obj, |
const GKColumn * | column | ||
) | const |
Get GKObject value of specified object and column
GKObject * GKModelConnection::getObjectDataValueObject | ( | const GKObject * | obj, |
const QString & | columnName | ||
) | const |
Get GKObject value of specified object and column
GKObject * GKModelConnection::getObjectDataValueObject | ( | const GKObject * | obj, |
uint | columnId | ||
) | const |
Get GKObject value of specified object and column
QString GKModelConnection::getObjectDataValueString | ( | const GKObject * | obj, |
const GKColumn * | column | ||
) | const |
Get string value of specified object and column
QString GKModelConnection::getObjectDataValueString | ( | const GKObject * | obj, |
const QString & | columnName | ||
) | const |
Get string value of specified object and column
QString GKModelConnection::getObjectDataValueString | ( | const GKObject * | obj, |
uint | columnId | ||
) | const |
Get string value of specified object and column
GKSectionLane GKModelConnection::getSectionLane | ( | const GKSection * | section, |
uint | lanePos | ||
) | const |
Returns the section lane object corresponding to the given lane position, with its attributes appropriately overridden by the experiment.
QVector< GKSectionLane > GKModelConnection::getSectionLanes | ( | const GKSection * | section | ) | const |
Returns the full array of section lanes belonging to the given section, with their attributes appropriately overridden by the experiment.
double GKModelConnection::getTurningAttractivenessByVehicleType | ( | const GKTurning * | turning, |
const GKVehicle * | vehicleType, | ||
bool * | usesCapacityAsAttractivenessPtr = nullptr |
||
) | const |
double GKModelConnection::getTurningCapacity | ( | const GKTurning * | turning, |
bool * | isAutoPtr = NULL |
||
) | const |
Helper function which calculates the capacity to use for a given turn by using the following method:
double GKModelConnection::getTurningCapacityByDestination | ( | const GKTurning * | turning, |
bool * | isAutoPtr = NULL |
||
) | const |
Helper function which calculates the capacity given by the destination section for a given turn by using the following method:
double GKModelConnection::getTurningCapacityByOrigin | ( | const GKTurning * | turning, |
bool * | isAutoPtr = NULL |
||
) | const |
Helper function which calculates the capacity given by the origin section for a given turn by using the following method:
double GKModelConnection::getTurningSpeed | ( | const GKTurning * | turning, |
bool * | isAutoPtr = NULL |
||
) | const |
Get the turn speed for specified turn
bool GKModelConnection::getTurningYellowBoxBehaviour | ( | const GKTurning * | turning | ) | const |
Helper function which calculates the yellow box behavior to use for a given turn.
void GKModelConnection::init | ( | const GKGenericExperiment * | experiment | ) |
Initializes the class by storing internally the experiment to be run and its associated model.
bool GKModelConnection::isObjectValueOverriden | ( | const GKObject * | obj, |
const GKColumn * | column | ||
) | const |
Check if specified object is overridden for specified column
bool GKModelConnection::isObjectValueOverriden | ( | const GKObject * | obj, |
const QString & | columnName | ||
) | const |
Check if specified object is overridden for specified column
bool GKModelConnection::isObjectValueOverriden | ( | const GKObject * | obj, |
uint | columnId | ||
) | const |
Check if specified object is overridden for specified column