Structure¶
PdmContext.utils.structure.Context ¶
Context(timestamp, CD, CR, details=None)
Representation of the Context
timestamp: A timestamp of the context
CD: a dictionary with names the different data sources (names) and values equal size of data (time series) that correspond to that source.
CR: dictionary with keys "edges","characterization","interpretation" Where edges contain causal relationships of CD data characterization is a parallel list with edges which provide an characterization over the relationship (increase,decrease,uknown)
details: String with details from user
context_from_dict
classmethod
¶
context_from_dict(contextdict, details=None)
contextdict: Which contain timestamp, multiple keys of data sources (each one a time-series) to build CD and "edges","characterization" to build CR details: String with details from user
PdmContext.utils.structure.Eventpoint ¶
Eventpoint(code, source, timestamp, details=None, type=None)
This class is used as structure to help in the flow of data for Context generation, essentially each instance of such class represent a single data sample from specific source (where the code refers to the feature name), The details are used to sotre the actual data, while the type refer to the type of data (crucial for event data which must be on of isolated or configuration)