Aimsun Next Scripting  24.0
Public Types | Public Member Functions | List of all members
DTAGenericPath Class Referenceabstract

Public Types

enum  DTAGenericPathError { eDestination = -1 , eNoPath = -2 , eOutOfHr = -3 }
 
enum  DTAPathType {
  eShortestPathTree , eODRoute , eRandom , ePTLine ,
  ePoint2PointRoute
}
 

Public Member Functions

 DTAGenericPath (short asliceCreation)
 
virtual ~DTAGenericPath ()
 
virtual DTAPathType getType () const =0
 
virtual const DTACentroidgetDestination () const
 
virtual QString getName (const DTAManager *manager) const
 
int getSlice (const DTAManager *manager) const
 
short getSliceCreation () const
 
int getIteration (const DTAManager *manager) const
 
virtual const DTASPObject * getNextObjectPointer (const DTAManager *manager, const DTAVehicleType *vehType, const DTASPObject *object, int index) const
 
double getRealDistanceOverlaped (const DTAManager *manager, DTAGenericPath *otherPath, const DTAVehicleType *VehType, const DTASPObject *fromThisObject, int indexRoute1, const DTASPObject *fromOtherObject, int indexRoute2) const
 
float getCostOverlaped (const DTAManager *manager, DTAGenericPath *otherPath, const DTAVehicleType *VehType, const DTASPObject *fromThisObject, int indexRoute1, const DTASPObject *fromOtherObject, int indexRoute2) const
 
std::vector< const DTASPObject * > getObjectsToEnd (const DTAManager *manager, const DTASPObject *fromObject, const DTAVehicleType *vehType, int indexRoute) const
 
virtual float getCostFromObject (const DTAManager *manager, const DTAVehicleType *vehType, const DTASPObject *object, int index, int threadNum=-1) const
 
virtual float getTravelTimeFromObject (const DTAManager *manager, const DTAVehicleType *vehType, const DTASPObject *object, int index, int threadNum=-1) const
 
double getRealDistanceFromObject (const DTAManager *manager, DTAVehicleType *vehType, const DTASPObject *fromObject, int indexRoute) const
 
int getNumLeftTurns (const DTAManager *manager, const DTAVehicleType *vehType, const DTASPObject *fromObject, int indexRoute) const
 
int getNumRightTurns (const DTAManager *manager, const DTAVehicleType *vehType, const DTASPObject *fromObject, int indexRoute) const
 
virtual int getNextIndexCnxa (const DTAManager *manager, const DTAVehicleType *vehType, const DTASPObject *object, int index) const =0
 

Member Enumeration Documentation

◆ DTAGenericPathError

Enumerator
eDestination 
eNoPath 
eOutOfHr 

◆ DTAPathType

Enumerator
eShortestPathTree 
eODRoute 
eRandom 
ePTLine 
ePoint2PointRoute 

Constructor & Destructor Documentation

◆ DTAGenericPath()

DTAGenericPath::DTAGenericPath ( short  asliceCreation)

◆ ~DTAGenericPath()

virtual DTAGenericPath::~DTAGenericPath ( )
virtual

Member Function Documentation

◆ getCostFromObject()

virtual float DTAGenericPath::getCostFromObject ( const DTAManager manager,
const DTAVehicleType vehType,
const DTASPObject *  object,
int  index,
int  threadNum = -1 
) const
virtual

Get cost from section to reach the destination.

◆ getCostOverlaped()

float DTAGenericPath::getCostOverlaped ( const DTAManager manager,
DTAGenericPath otherPath,
const DTAVehicleType VehType,
const DTASPObject *  fromThisObject,
int  indexRoute1,
const DTASPObject *  fromOtherObject,
int  indexRoute2 
) const

Get cost overlaped with the other path.

◆ getDestination()

virtual const DTACentroid * DTAGenericPath::getDestination ( ) const
virtual

Get destination centroid.

◆ getIteration()

int DTAGenericPath::getIteration ( const DTAManager manager) const

Iteration number in a DUE or 0 otherwise.

◆ getName()

virtual QString DTAGenericPath::getName ( const DTAManager manager) const
virtual

Get path name.

◆ getNextIndexCnxa()

virtual int DTAGenericPath::getNextIndexCnxa ( const DTAManager manager,
const DTAVehicleType vehType,
const DTASPObject *  object,
int  index 
) const
pure virtual

◆ getNextObjectPointer()

virtual const DTASPObject * DTAGenericPath::getNextObjectPointer ( const DTAManager manager,
const DTAVehicleType vehType,
const DTASPObject *  object,
int  index 
) const
virtual

Return next section in path from section.

◆ getNumLeftTurns()

int DTAGenericPath::getNumLeftTurns ( const DTAManager manager,
const DTAVehicleType vehType,
const DTASPObject *  fromObject,
int  indexRoute 
) const

Returns the total number of left turns from entrance Section, indexRoute.

◆ getNumRightTurns()

int DTAGenericPath::getNumRightTurns ( const DTAManager manager,
const DTAVehicleType vehType,
const DTASPObject *  fromObject,
int  indexRoute 
) const

Returns the total number of right turns from entrance Section, indexRoute.

◆ getObjectsToEnd()

std::vector< const DTASPObject * > DTAGenericPath::getObjectsToEnd ( const DTAManager manager,
const DTASPObject *  fromObject,
const DTAVehicleType vehType,
int  indexRoute 
) const

Get sections to reach the destination fromsection.

◆ getRealDistanceFromObject()

double DTAGenericPath::getRealDistanceFromObject ( const DTAManager manager,
DTAVehicleType vehType,
const DTASPObject *  fromObject,
int  indexRoute 
) const

Get distance to reach the destination from section.

◆ getRealDistanceOverlaped()

double DTAGenericPath::getRealDistanceOverlaped ( const DTAManager manager,
DTAGenericPath otherPath,
const DTAVehicleType VehType,
const DTASPObject *  fromThisObject,
int  indexRoute1,
const DTASPObject *  fromOtherObject,
int  indexRoute2 
) const

Get distance overlaped with the other path.

◆ getSlice()

int DTAGenericPath::getSlice ( const DTAManager manager) const

Slice inside each iteration.

◆ getSliceCreation()

short DTAGenericPath::getSliceCreation ( ) const

This is the raw slice index considering all iterations.

◆ getTravelTimeFromObject()

virtual float DTAGenericPath::getTravelTimeFromObject ( const DTAManager manager,
const DTAVehicleType vehType,
const DTASPObject *  object,
int  index,
int  threadNum = -1 
) const
virtual

Get travel time from section to reach the destination.

◆ getType()

virtual DTAPathType DTAGenericPath::getType ( ) const
pure virtual

Get path type.

© Aimsun SLU
Aimsun ®