Aimsun Next Scripting
22
|
Public Types | |
enum | Field { eUndefined = -1 , eCentralControl , eIndividualTraffic , ePublicTransportPrioritization , ePartialIntersection , eControPlanRequest } |
enum | FieldType { eString , eBool , eInteger } |
Public Member Functions | |
OCITSimulationEvent () | |
OCITSimulationEvent (Field field, int index=0) | |
OCITSimulationEvent (const OCITSimulationEvent &other) | |
bool | isValid () const |
void | setValue (const QVariant &value) |
QVariant | getValue () const |
void | setTargetObject (const GKObject *object) |
void | setTargetObjectId (uint id) |
uint | getTargetObjectId () const |
void | setField (Field field, int index=0) |
Field | getField () const |
int | getIndex () const |
void | setWhen (int cycle, double secondInCycle) |
MethodCode OCITTime | time (a0, a1) |
sipCpp | setWhen (time) |
End int | getCycle () const |
End int | getSecondInCycle () const |
Public Attributes | |
MethodCode const OCITTime & | when = sipCpp->getWhen() |
sipRes = when.getCycle() | |
OCITSimulationEvent::OCITSimulationEvent | ( | ) |
OCITSimulationEvent::OCITSimulationEvent | ( | Field | field, |
int | index = 0 |
||
) |
OCITSimulationEvent::OCITSimulationEvent | ( | const OCITSimulationEvent & | other | ) |
End int OCITSimulationEvent::getCycle | ( | ) | const |
Cycle at which the event stars
Field OCITSimulationEvent::getField | ( | ) | const |
int OCITSimulationEvent::getIndex | ( | ) | const |
End int OCITSimulationEvent::getSecondInCycle | ( | ) | const |
Second in cycle at which the event stars
uint OCITSimulationEvent::getTargetObjectId | ( | ) | const |
QVariant OCITSimulationEvent::getValue | ( | ) | const |
bool OCITSimulationEvent::isValid | ( | ) | const |
void OCITSimulationEvent::setField | ( | Field | field, |
int | index = 0 |
||
) |
Sets which field will me modified by the event Field::ePartialIntersection supports index values between 0 and 4 any other field will ignore the value passed
void OCITSimulationEvent::setTargetObject | ( | const GKObject * | object | ) |
void OCITSimulationEvent::setTargetObjectId | ( | uint | id | ) |
void OCITSimulationEvent::setValue | ( | const QVariant & | value | ) |
void OCITSimulationEvent::setWhen | ( | 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 OCITSimulationEvent::setWhen | ( | time | ) |
MethodCode OCITTime OCITSimulationEvent::time | ( | a0 | , |
a1 | |||
) |
OCITSimulationEvent::sipRes = when.getCycle() |
MethodCode const OCITTime & OCITSimulationEvent::when = sipCpp->getWhen() |