Aimsun Next Scripting
24.0
|
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 DTACentroid * | getDestination () 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 |
DTAGenericPath::DTAGenericPath | ( | short | asliceCreation | ) |
|
virtual |
|
virtual |
Get cost from section to reach the destination.
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.
|
virtual |
Get destination centroid.
int DTAGenericPath::getIteration | ( | const DTAManager * | manager | ) | const |
Iteration number in a DUE or 0 otherwise.
|
virtual |
Get path name.
|
pure virtual |
|
virtual |
Return next section in path from section.
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.
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.
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.
double DTAGenericPath::getRealDistanceFromObject | ( | const DTAManager * | manager, |
DTAVehicleType * | vehType, | ||
const DTASPObject * | fromObject, | ||
int | indexRoute | ||
) | const |
Get distance to reach the destination from section.
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.
int DTAGenericPath::getSlice | ( | const DTAManager * | manager | ) | const |
Slice inside each iteration.
short DTAGenericPath::getSliceCreation | ( | ) | const |
This is the raw slice index considering all iterations.
|
virtual |
Get travel time from section to reach the destination.
|
pure virtual |
Get path type.