Aimsun Next Scripting  24.0
Public Types | Public Member Functions | Public Attributes | List of all members
OCITControllerDetector Class Reference

Public Types

enum  Type { ParallelDetector , ParallelReportingPoint , SerialReportingPoint }
 

Public Member Functions

 OCITControllerDetector ()
 
void clearLines ()
 
void addLine (GKPublicLine *line)
 
void removeLine (GKPublicLine *line)
 
void addLine (GKPublicLine *line, GKBusStop *stop, double secondsBeforeDeparture)
 
GKBusStopgetBusStop (GKPublicLine *line)
 
sipCpp applyLines ([&a0, &res](GKPublicLine *line, GKBusStop *stop, double){ if(a0==line){ res=stop;} })
 
End double getSecondsBeforeDeparture (GKPublicLine *transitLine)
 
sipCpp applyLines ([&a0, &res](GKPublicLine *line, GKBusStop *, double secondsBeforeDeparture){ if(a0==line){ res=secondsBeforeDeparture;} })
 
End void setCallingPointType (Type type)
 
Type getCallingPointType () const
 

Public Attributes

MethodCode GKBusStopres = nullptr
 
 sipRes = res
 
MethodCode double res = 0.0
 

Member Enumeration Documentation

◆ Type

Enumerator
ParallelDetector 
ParallelReportingPoint 
SerialReportingPoint 

Constructor & Destructor Documentation

◆ OCITControllerDetector()

OCITControllerDetector::OCITControllerDetector ( )

Member Function Documentation

◆ addLine() [1/2]

void OCITControllerDetector::addLine ( GKPublicLine line)

◆ addLine() [2/2]

void OCITControllerDetector::addLine ( GKPublicLine line,
GKBusStop stop,
double  secondsBeforeDeparture 
)

For Yutraffic Controllers, the Bus Stop and the number of Seconds Before Departure a Transit telegram needs to be sent for T?rschlie?-Detector

◆ applyLines() [1/2]

sipCpp OCITControllerDetector::applyLines ( [&a0, &res] (GKPublicLine *line, GKBusStop *, double secondsBeforeDeparture){ if(a0==line){ res=secondsBeforeDeparture;} }  )

References res.

◆ applyLines() [2/2]

sipCpp OCITControllerDetector::applyLines ( [&a0, &res] (GKPublicLine *line, GKBusStop *stop, double){ if(a0==line){ res=stop;} }  )

References res.

◆ clearLines()

void OCITControllerDetector::clearLines ( )

◆ getBusStop()

GKBusStop * OCITControllerDetector::getBusStop ( GKPublicLine line)

◆ getCallingPointType()

Type OCITControllerDetector::getCallingPointType ( ) const

◆ getSecondsBeforeDeparture()

End double OCITControllerDetector::getSecondsBeforeDeparture ( GKPublicLine transitLine)

◆ removeLine()

void OCITControllerDetector::removeLine ( GKPublicLine line)

◆ setCallingPointType()

End void OCITControllerDetector::setCallingPointType ( Type  type)

Member Data Documentation

◆ res [1/2]

MethodCode GKBusStop* OCITControllerDetector::res = nullptr

Referenced by applyLines().

◆ res [2/2]

MethodCode double OCITControllerDetector::res = 0.0

◆ sipRes

OCITControllerDetector::sipRes = res

© Aimsun SLU
Aimsun ®