Aimsun Next Scripting: GKFunctionCostContext Class Reference
Aimsun Next Scripting  22
Public Member Functions | Public Attributes | List of all members
GKFunctionCostContext Class Reference

Public Member Functions

 GKFunctionCostContext ()
 
 GKFunctionCostContext (const GKGenericExperiment *exp, const GKBaseObject *userClass, double time=-1.0, double timeSta=-1.0)
 
GKMobileAgentgetVehicle () const
 
GKTripPurposegetPurpose () const
 

Public Attributes

const GKGenericExperimentexperiment
 
const GKBaseObjectuserClass
 
double time
 
double timeSta
 
int iteration
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GKFunctionCostContext() [1/2]

GKFunctionCostContext::GKFunctionCostContext ( )

◆ GKFunctionCostContext() [2/2]

GKFunctionCostContext::GKFunctionCostContext ( const GKGenericExperiment exp,
const GKBaseObject userClass,
double  time = -1.0,
double  timeSta = -1.0 
)

Member Function Documentation

◆ getPurpose()

GKTripPurpose * GKFunctionCostContext::getPurpose ( ) const

Gets the purpose of the user class, if any

◆ getVehicle()

GKMobileAgent * GKFunctionCostContext::getVehicle ( ) const

Gets the vehicle type or pedestrian type of the user class, if any

Member Data Documentation

◆ experiment

const GKGenericExperiment* GKFunctionCostContext::experiment

◆ iteration

int GKFunctionCostContext::iteration

Iteration number in macro experiments. This parameter might be used when evaluating VDFs, TPFs or JDFs.

◆ time

double GKFunctionCostContext::time

◆ timeSta

double GKFunctionCostContext::timeSta

◆ userClass

const GKBaseObject* GKFunctionCostContext::userClass

© Aimsun SLU
Aimsun ®