|
Aimsun Next Scripting
24.0
|
Public Member Functions | |
| GKTrafficStateItem () | |
| bool | usesSection (GKSection *section) const |
| float | getEntranceFlow () const |
| void | setEntranceFlow (float value) |
| float | getKeepFlowPercentage () const |
| void | setKeepFlowPercentage (float value) |
| float | getTurningPercentage (GKSection *toSection) const |
| void | setTurningPercentage (GKSection *toSection, float value) |
| float | getTotalTurningPercentage () const |
| float | getExitFlow (GKSection *toSection) const |
| void | setExitFlow (GKSection *toSection, float value) |
| float | getTotalExitFlow () const |
This class holds the traffic state of a section. It is composed of:
| GKTrafficStateItem::GKTrafficStateItem | ( | ) |
| float GKTrafficStateItem::getEntranceFlow | ( | ) | const |
Returns the entrance flow on this section. Note that -1 is returned if undefined.
| float GKTrafficStateItem::getExitFlow | ( | GKSection * | toSection | ) | const |
Returns the exit flow using turn to section "toSection". Note that -1 is returned if undefined.
| float GKTrafficStateItem::getKeepFlowPercentage | ( | ) | const |
Returns the percentage of vehicles that exits the network in this section. Note that -1 is returned if undefined.
| float GKTrafficStateItem::getTotalExitFlow | ( | ) | const |
Returns the total exit flow. Note that -1 is returned if there is not any exit flow defined.
| float GKTrafficStateItem::getTotalTurningPercentage | ( | ) | const |
Returns the total percentage assigned to exits. It must be 100.0, anything else is an error. Note that -1 is returned if undefined
| float GKTrafficStateItem::getTurningPercentage | ( | GKSection * | toSection | ) | const |
Returns the percentage of vehicles that takes a turn to section "toSection".
| void GKTrafficStateItem::setEntranceFlow | ( | float | value | ) |
Sets the entrance flow on this section.
| void GKTrafficStateItem::setExitFlow | ( | GKSection * | toSection, |
| float | value | ||
| ) |
Sets the exit flow using turn to section "toSection".
| void GKTrafficStateItem::setKeepFlowPercentage | ( | float | value | ) |
Sets the percentage of vehicles that exits the network in this section.
| void GKTrafficStateItem::setTurningPercentage | ( | GKSection * | toSection, |
| float | value | ||
| ) |
Sets the percentage of vehicles that takes a turn to section "toSection".
| bool GKTrafficStateItem::usesSection | ( | GKSection * | section | ) | const |
Is this section used in the item?
1.9.4