|
Aimsun Next Scripting
24.0
|
Public Member Functions | |
| OCITDetectionPatternEvent () | |
| bool | isValid () const |
| GKDetectionPatternEvent * | clone () const |
| void | setPTLine (GKPublicLine *line) |
| void | setVehicle (GKVehicle *veh) |
| void | setFrom (int cycle, double secondInCycle) |
| MethodCode OCITTime | time (a0, a1) |
| sipCpp | setFrom (time) |
| End QPair< int, double > | getFrom () const |
| End void | setTo (int cycle, double secondInCycle) |
| MethodCode OCITTime | time (a0, a1) |
| sipCpp | setTo (time) |
| End QPair< int, double > | getTo () const |
| End uint | getTripNumber () const |
| void | setTripNumber (uint value) |
| uint | getPriority () const |
| void | setPriority (uint value) |
| short | getTimetableDeviation () const |
| void | setTimetableDeviation (short value) |
| uint | getLineNumber () const |
| void | setLineNumber (uint value) |
| uint | getRouteNumber () const |
| void | setRouteNumber (uint value) |
| uint | getTrainLength () const |
| void | setTrainLength (uint value) |
| uint | getManualDirection () const |
| void | setManualDirection (uint value) |
Public Member Functions inherited from GKDetectionPatternEvent | |
| GKDetectionPatternEvent () | |
| virtual bool | isValid () const |
| void | setModel (GKModel *amodel) |
| virtual GKDetectionPatternEvent * | clone () const |
| void | setDetector (GKDetector *det) |
| GKDetector * | getDetector () const |
| void | setWhen (const GKTimeDuration &time) |
| const GKTimeDuration & | getWhen () const |
| void | setDuration (const GKTimeDuration &time) |
| const GKTimeDuration & | getDuration () const |
| virtual void | setVehicle (GKVehicle *veh) |
| GKVehicle * | getVehicle () const |
| void | setSpeed (double s) |
| double | getSpeed () const |
| void | setLength (double l) |
| double | getLength () const |
| virtual void | setPTLine (GKPublicLine *line) |
| GKPublicLine * | getPTLine () const |
| void | setOccupancyMode (OccupancyMode which) |
| OccupancyMode | getOccupancyMode () const |
Public Attributes | |
| MethodCode const OCITTime & | time = sipCpp->getFrom() |
| QPair< int, double > * | from = new QPair<int, double>() |
| from | first = time.getCycle() |
| from | second = time.getSecond() |
| sipRes = from | |
| QPair< int, double > * | to = new QPair<int, double>() |
| to | first = time.getCycle() |
| to | second = time.getSecond() |
Additional Inherited Members | |
Public Types inherited from GKDetectionPatternEvent | |
| enum | OccupancyMode { eContinous , eIntermittent , eRepeatEachCycle } |
An OCIT detection event that will be used by the simulator to simulate a vehicle passing a detector.
The correct way to set an activation time is to use the function:
The correct way to set a deactivation time is to use the function:
Calling either
or
will result in undefined behavior
| OCITDetectionPatternEvent::OCITDetectionPatternEvent | ( | ) |
|
virtual |
Reimplemented from GKDetectionPatternEvent.
| End QPair< int, double > OCITDetectionPatternEvent::getFrom | ( | ) | const |
Retrieves the time at which this event will start as a pair [cycle, second]
| uint OCITDetectionPatternEvent::getLineNumber | ( | ) | const |
| uint OCITDetectionPatternEvent::getManualDirection | ( | ) | const |
| uint OCITDetectionPatternEvent::getPriority | ( | ) | const |
| uint OCITDetectionPatternEvent::getRouteNumber | ( | ) | const |
| short OCITDetectionPatternEvent::getTimetableDeviation | ( | ) | const |
Deviation from schedule in seconds
| End QPair< int, double > OCITDetectionPatternEvent::getTo | ( | ) | const |
Retrieves the time at which this event will end as a pair [cycle, second]
| uint OCITDetectionPatternEvent::getTrainLength | ( | ) | const |
| End uint OCITDetectionPatternEvent::getTripNumber | ( | ) | const |
|
virtual |
Reimplemented from GKDetectionPatternEvent.
| void OCITDetectionPatternEvent::setFrom | ( | int | cycle, |
| double | secondInCycle | ||
| ) |
Sets the time at which this event will start cycle must be between 1 and 9999 secondInCycle must be between 0.0 and 9999.99
| sipCpp OCITDetectionPatternEvent::setFrom | ( | time | ) |
| void OCITDetectionPatternEvent::setLineNumber | ( | uint | value | ) |
| void OCITDetectionPatternEvent::setManualDirection | ( | uint | value | ) |
| void OCITDetectionPatternEvent::setPriority | ( | uint | value | ) |
|
virtual |
Transit Line detected.
Reimplemented from GKDetectionPatternEvent.
| void OCITDetectionPatternEvent::setRouteNumber | ( | uint | value | ) |
| void OCITDetectionPatternEvent::setTimetableDeviation | ( | short | value | ) |
| End void OCITDetectionPatternEvent::setTo | ( | int | cycle, |
| double | secondInCycle | ||
| ) |
Sets the time at which this event will end cycle must be between 1 and 9999 secondInCycle must be between 0.0 and 9999.99
| sipCpp OCITDetectionPatternEvent::setTo | ( | time | ) |
| void OCITDetectionPatternEvent::setTrainLength | ( | uint | value | ) |
| void OCITDetectionPatternEvent::setTripNumber | ( | uint | value | ) |
|
virtual |
Vehicle type detected. It cannot be left unassigned.
Reimplemented from GKDetectionPatternEvent.
| MethodCode OCITTime OCITDetectionPatternEvent::time | ( | a0 | , |
| a1 | |||
| ) |
| MethodCode OCITTime OCITDetectionPatternEvent::time | ( | a0 | , |
| a1 | |||
| ) |
| from OCITDetectionPatternEvent::first = time.getCycle() |
| to OCITDetectionPatternEvent::first = time.getCycle() |
| QPair<int, double>* OCITDetectionPatternEvent::from = new QPair<int, double>() |
| from OCITDetectionPatternEvent::second = time.getSecond() |
| to OCITDetectionPatternEvent::second = time.getSecond() |
| OCITDetectionPatternEvent::sipRes = from |
| MethodCode const OCITTime & OCITDetectionPatternEvent::time = sipCpp->getFrom() |
| QPair<int, double>* OCITDetectionPatternEvent::to = new QPair<int, double>() |
1.9.4