Aimsun Next Scripting
24.0
|
Public Member Functions | |
GKFunctionCostContext () | |
GKFunctionCostContext (const GKGenericExperiment *exp, const GKBaseObject *userClass, double time=-1.0, double timeSta=-1.0) | |
const GKGenericExperiment * | getExperiment () const |
End const GKBaseObject * | getUserClass () const |
End double | getTime () const |
End double | getTimeSta () const |
End GKBaseObject * | getVehicle () const |
GKBaseObject * | getPurpose () const |
int | getIteration () const |
Public Attributes | |
MethodCode | sipRes = sipCpp->experiment |
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 |
||
) |
const GKGenericExperiment * GKFunctionCostContext::getExperiment | ( | ) | const |
Gets the experiment
int GKFunctionCostContext::getIteration | ( | ) | const |
Gets the iteration number in macro or due experiments. This parameter might be used when evaluating VDFs, TPFs or JDFs or DCFs.
GKBaseObject * GKFunctionCostContext::getPurpose | ( | ) | const |
Gets the purpose of the user class, if any
End double GKFunctionCostContext::getTime | ( | ) | const |
Gets the time
End double GKFunctionCostContext::getTimeSta | ( | ) | const |
Gets the timeSta
End const GKBaseObject * GKFunctionCostContext::getUserClass | ( | ) | const |
Gets the user class
End GKBaseObject * GKFunctionCostContext::getVehicle | ( | ) | const |
Gets the vehicle type or pedestrian type of the user class, if any
MethodCode GKFunctionCostContext::sipRes = sipCpp->experiment |