Aimsun Next Scripting  22
Public Types | Public Member Functions | Public Attributes | List of all members
OCITSimulationEvent Class Reference

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()
 

Member Enumeration Documentation

◆ Field

Enumerator
eUndefined 
eCentralControl 
eIndividualTraffic 
ePublicTransportPrioritization 
ePartialIntersection 
eControPlanRequest 

◆ FieldType

Enumerator
eString 
eBool 
eInteger 

Constructor & Destructor Documentation

◆ OCITSimulationEvent() [1/3]

OCITSimulationEvent::OCITSimulationEvent ( )

◆ OCITSimulationEvent() [2/3]

OCITSimulationEvent::OCITSimulationEvent ( Field  field,
int  index = 0 
)

◆ OCITSimulationEvent() [3/3]

OCITSimulationEvent::OCITSimulationEvent ( const OCITSimulationEvent other)

Member Function Documentation

◆ getCycle()

End int OCITSimulationEvent::getCycle ( ) const

Cycle at which the event stars

◆ getField()

Field OCITSimulationEvent::getField ( ) const

◆ getIndex()

int OCITSimulationEvent::getIndex ( ) const

◆ getSecondInCycle()

End int OCITSimulationEvent::getSecondInCycle ( ) const

Second in cycle at which the event stars

◆ getTargetObjectId()

uint OCITSimulationEvent::getTargetObjectId ( ) const

◆ getValue()

QVariant OCITSimulationEvent::getValue ( ) const

◆ isValid()

bool OCITSimulationEvent::isValid ( ) const

◆ setField()

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

◆ setTargetObject()

void OCITSimulationEvent::setTargetObject ( const GKObject object)

◆ setTargetObjectId()

void OCITSimulationEvent::setTargetObjectId ( uint  id)

◆ setValue()

void OCITSimulationEvent::setValue ( const QVariant &  value)

◆ setWhen() [1/2]

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

◆ setWhen() [2/2]

sipCpp OCITSimulationEvent::setWhen ( time  )

◆ time()

MethodCode OCITTime OCITSimulationEvent::time ( a0  ,
a1   
)

Member Data Documentation

◆ sipRes

OCITSimulationEvent::sipRes = when.getCycle()

◆ when

MethodCode const OCITTime & OCITSimulationEvent::when = sipCpp->getWhen()

© Aimsun SLU
Aimsun ®