PyANGKernel.GKRealDataSet¶
- class GKRealDataSet¶
A real data set.
Details
A
GKRealDataSetis a collection of objects (GKRealDataSetRestorer) that can read external detection data into GKTimeSeries.The
GKRealDataSetRestorercan be from ASCII files, relational databases, online data… The developer can create new restorers for any kind of data format and information source.Data can be filtered either by time and/or by area using a
GKRealDataSetFilter.Synopsis¶
Methods¶
def
__init__()def
addDev()def
addMax()def
addMin()def
addRestorer()def
addValue()def
applyFilter()def
clearRestorers()def
getAgents()def
getBaseDate()def
getFilter()def
getInterval()def
getRestorers()def
isValid()def
readed()def
removeRestorer()def
restoreData()def
setBaseDate()def
setInterval()
Static functions¶
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- PyANGKernel.GKRealDataSet.allVehiclesId¶
- __init__()¶
- addAggregatedObjects(aTarget, aColumnType, aVehicleType)¶
Add an aggregated object (including objects with retrieved data). * This objects have to refresh their stats in order to get from their including objects (also to check the consistency of the objects)
- addDev(col, obj, aVehicleId, when, value[, aLine=-1])¶
Adds a deviation value to the RDS time series.
- addMax(col, obj, aVehicleId, when, value[, aLine=-1])¶
Adds a Maximum value to the RDS time series.
- addMin(col, obj, aVehicleId, when, value[, aLine=-1])¶
Adds a minimum value to the RDS time series.
- addRestorer(restorer)¶
- Parameters:
restorer –
GKRealDataSetRestorer
Adds a restorer. The pointer is adopted.
- addRestorer(byName)
- Parameters:
byName – str
- Return type:
Adds a new restorer using its type name and returns a reference to it.
- addValue(col, obj, aVehicleId, when, value[, aLine=-1])¶
Adds a value to the RDS time series.
- applyFilter(aDateTime, aObject)¶
Filter registers
- checkAggregateDetectorStations()¶
Refresh the stats from the aggregated objects (filled from addDetectorStationFromStation/addDetectorStationFromDetector)
- clearRestorers()¶
Removes (and deletes) all the restorers in this data set.
Conversion SI speed values if need it
Conversion SI speed values if need it
- getAgents()¶
- Return type:
.std.vectorGKObject
Get vehicle types and PTLines from Network
Returns the Base Date. It is only relevant on Relative Time types
- getFilter()¶
- Return type:
Returns the filter.
First interval end date (available after a
restoreData).First interval start date (available after a
restoreData).- getInterval()¶
- Return type:
Returns the data collection interval.
Last interval end date (available after a
restoreData).Last interval start date (available after a
restoreData).- static getRegisteredRestorers()¶
- Return type:
.list of std.pairQString,QString
Returns the columns that have been created when restoring this real data set.
- getRestoredObjects()¶
- Return type:
.QSetGKObject
- getRestorers()¶
- Return type:
.list of GKRealDataSetRestorer
Returns all the restorers in this data set.
- getRetrievedObjects()¶
- Return type:
Dictionary with keys of type .QString and values of type int.
Get number of retrieved objects by path
- static getSectionDetectors(m)¶
- Parameters:
m –
GKModel- Return type:
.QMapGKSection,list of GKDetector
Get if RDS has Aggregated Objects(GKDetectorStations)
- isValid(aColumnType, aType, atime)¶
Check about the fromTime/Totime of the TSDescription created previously
Returns true if any data has been read using
restoreData.- static registerRestorer(name, externalName)¶
- Parameters:
name – str
externalName – str
- removeOldRDSColumns()¶
Refresh the stats from the aggregated objects (filled from addDetectorStationFromStation/addDetectorStationFromDetector)
- removeRestorer(restorer)¶
- Parameters:
restorer –
GKRealDataSetRestorer
Removes a restorer from this data set. The restorer is not deleted.
Reads external data to memory. Returns true if all the data is correctly restored. If a restorer fails, the restoration is aborted.
- restoreDataWith(restorersList)¶
- Parameters:
restorersList – .list of GKRealDataSetRestorer
- Return type:
Same as ‘
restoreData‘, but specifying the list of restorers to be used.Sets the Base Date. It is only relevant on Relative Time types.
- setCurrentRestorerFileName(aFilename)¶
- Parameters:
aFilename – str
Set/get current restorer filename to include in the checker
First interval end date (available after a
restoreData).First interval start date (available after a
restoreData).- setInterval(aInterval)¶
- Parameters:
aInterval –
GKTimeDuration
Set interval of the Time Series
- setPostRestoreChecks(aPostManageCheks)¶
- Parameters:
aPostManageCheks – bool
Set post restore files checks