smif.model.dependency module¶
Dependencies represent the flow of data explicitly, with reference to the source model output and sink model input.
A Dependency is an edge in the model process graph. No processing happens on dependency edges, only on the Model nodes.
A Dependency can have a timestep specified - by default this is the current timestep, but a system-of-systems model may also want to specify that data should be provided from the previous timestep or a base timestep.
Reference¶
-
class
smif.model.dependency.
Dependency
(source_model, source, sink_model, sink, timestep=<RelativeTimestep.CURRENT: 'CURRENT'>)[source]¶ Bases:
object
Link a model input to a data source
Parameters: - source_model (smif.model.Model) – The source model object
- source (smif.metadata.Spec) – The source output description
- sink_model (smif.model.Model) – The sink model object
- sink (smif.metadata.Spec) – The sink input description
- timestep (smif.metadata.RelativeTimestep, optional) – The relative timestep of the dependency, defaults to CURRENT