Aimsun Next Scripting
22
|
Public Types | |
enum | OccupancyMode { eContinous , eIntermittent , eRepeatEachCycle } |
Public Member Functions | |
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 |
A detection event that will be used by the simulator to simulate a vehicle passing a detector.
It has:
Based on the detection capabilities is possible to specify the data to be detected:
GKDetectionPatternEvent::GKDetectionPatternEvent | ( | ) |
|
virtual |
Reimplemented in OCITDetectionPatternEvent.
GKDetector * GKDetectionPatternEvent::getDetector | ( | ) | const |
Detector to activate/deactivate.
const GKTimeDuration & GKDetectionPatternEvent::getDuration | ( | ) | const |
For how long it is active
double GKDetectionPatternEvent::getLength | ( | ) | const |
Length detected.
OccupancyMode GKDetectionPatternEvent::getOccupancyMode | ( | ) | const |
GKPublicLine * GKDetectionPatternEvent::getPTLine | ( | ) | const |
Transit Line detected.
double GKDetectionPatternEvent::getSpeed | ( | ) | const |
Speed detected.
GKVehicle * GKDetectionPatternEvent::getVehicle | ( | ) | const |
Vehicle type detected.
const GKTimeDuration & GKDetectionPatternEvent::getWhen | ( | ) | const |
When it is activated. Relative time from the simulation initial time.
|
virtual |
Reimplemented in OCITDetectionPatternEvent.
void GKDetectionPatternEvent::setDetector | ( | GKDetector * | det | ) |
Detector to activate/deactivate.
void GKDetectionPatternEvent::setDuration | ( | const GKTimeDuration & | time | ) |
For how long it is active
void GKDetectionPatternEvent::setLength | ( | double | l | ) |
Length detected.
void GKDetectionPatternEvent::setModel | ( | GKModel * | amodel | ) |
Set the model where this event is
void GKDetectionPatternEvent::setOccupancyMode | ( | OccupancyMode | which | ) |
|
virtual |
Transit Line detected.
Reimplemented in OCITDetectionPatternEvent.
void GKDetectionPatternEvent::setSpeed | ( | double | s | ) |
Speed detected.
|
virtual |
Vehicle type detected. It cannot be left unassigned.
Reimplemented in OCITDetectionPatternEvent.
void GKDetectionPatternEvent::setWhen | ( | const GKTimeDuration & | time | ) |
When it is activated. Relative time from the simulation initial time.