|
Aimsun Next Scripting
22
|
Public Member Functions | |
| GKFunctionCostContext () | |
| GKFunctionCostContext (const GKGenericExperiment *exp, const GKBaseObject *userClass, double time=-1.0, double timeSta=-1.0) | |
| GKMobileAgent * | getVehicle () const |
| GKTripPurpose * | getPurpose () const |
Public Attributes | |
| const GKGenericExperiment * | experiment |
| const GKBaseObject * | userClass |
| double | time |
| double | timeSta |
| int | iteration |
The context to evaluate the function cost. Includes the Experiment to access variables and the user class. For dynamic experiments includes the current time in seconds (timeSta ie: 08:10:20) and the absolute time in seconds (time) since the moment that we start the simulation.
| GKFunctionCostContext::GKFunctionCostContext | ( | ) |
| GKFunctionCostContext::GKFunctionCostContext | ( | const GKGenericExperiment * | exp, |
| const GKBaseObject * | userClass, | ||
| double | time = -1.0, |
||
| double | timeSta = -1.0 |
||
| ) |
| GKTripPurpose * GKFunctionCostContext::getPurpose | ( | ) | const |
Gets the purpose of the user class, if any
| GKMobileAgent * GKFunctionCostContext::getVehicle | ( | ) | const |
Gets the vehicle type or pedestrian type of the user class, if any
| const GKGenericExperiment* GKFunctionCostContext::experiment |
| int GKFunctionCostContext::iteration |
Iteration number in macro experiments. This parameter might be used when evaluating VDFs, TPFs or JDFs.
| double GKFunctionCostContext::time |
| double GKFunctionCostContext::timeSta |
| const GKBaseObject* GKFunctionCostContext::userClass |
1.9.4