| Aimsun Next Scripting
    22
    | 
| Public Member Functions | |
| GKContext () | |
| void | setTime (const QDateTime &f, const QDateTime &t, const QDateTime &n) | 
| void | setFrom (const QDateTime &) | 
| void | setNow (const QDateTime &) | 
| void | setTo (const QDateTime &) | 
| const QDateTime & | getNow () const | 
| const QDateTime & | getFrom () const | 
| const QDateTime & | getTo () const | 
| bool | sameDay () const | 
| void | setAggregated (bool) | 
| bool | isAggregated () const | 
| GK::AggregationType | getAggregationType () const | 
| void | setAggregationType (GK::AggregationType t) | 
| Static Public Attributes | |
| static GKContext | anyContext | 
A GKContext holds the initial and end time for data that depends on time (as time series either produced by a simulator or from real detection data).
It also includes a "now" time used to fetch (or show) data at a given instant.
| GKContext::GKContext | ( | ) | 
| GK::AggregationType GKContext::getAggregationType | ( | ) | const | 
Defines the aggregation type to be used when the context is aggregated.
| const QDateTime & GKContext::getFrom | ( | ) | const | 
Returns 'from' time.
| const QDateTime & GKContext::getNow | ( | ) | const | 
Returns 'now' time.
| const QDateTime & GKContext::getTo | ( | ) | const | 
Returns 'to' time.
| bool GKContext::isAggregated | ( | ) | const | 
On time series, it returns the aggregated data instead of an interval value
| bool GKContext::sameDay | ( | ) | const | 
Returns true if the initial and end time are in the same day.
| void GKContext::setAggregated | ( | bool | ) | 
On time series, it returns the aggregated data instead of an interval value
| void GKContext::setAggregationType | ( | GK::AggregationType | t | ) | 
Defines the aggregation type to be used when the context is aggregated.
| void GKContext::setFrom | ( | const QDateTime & | ) | 
Sets 'from' time.
| void GKContext::setNow | ( | const QDateTime & | ) | 
Sets 'now' time.
| void GKContext::setTime | ( | const QDateTime & | f, | 
| const QDateTime & | t, | ||
| const QDateTime & | n | ||
| ) | 
Sets the 'from', 'to' and 'now' times
| void GKContext::setTo | ( | const QDateTime & | ) | 
Sets 'to' time.
 1.9.4
 1.9.4