KTBS built-in method implementations¶
Implementation of the built-in methods shipped with kTBS.
Interface¶
I define the interface of a method implementation.
-
class
ktbs.methods.interface.
IMethod
[source]¶ I define the interface of a method implementation.
-
compute_trace_description
(computed_trace)[source]¶ I set the computed properties (model, origin) of the given trace
Parameters: computed_trace – a engine.trace.ComputedTrace
Return type: rdfrest.util.Diagnosis
The returned diagnosis must be non-empty if the model and/or the origin could not be set, or if it is predicatable that compute_obsels will fail. It can be non-empty in other situations, but the message should then make it clear that it is a mere warning (rather than an error).
Note also that after this method is called,
compute_obsels()
is expected to start afresh.
-