@@ -28,6 +28,25 @@ Base.Broadcast.broadcastable(dfg::AbstractDFG) = Ref(dfg)
2828# #------------------------------------------------------------------------------
2929# # Getters
3030# #------------------------------------------------------------------------------
31+ """
32+ $(SIGNATURES)
33+ Get the id of the node.
34+ """
35+ getId (node) = node. id
36+
37+ """
38+ $(SIGNATURES)
39+ Get the label of the node.
40+ """
41+ getLabel (node) = node. label
42+
43+ """
44+ $SIGNATURES
45+
46+ Get the metadata of the node.
47+ """
48+ getMetadata (node) = node. metadata
49+
3150"""
3251 $(SIGNATURES)
3352Convenience function to get all the metadata of a DFG
@@ -120,6 +139,15 @@ function getTypeDFGFactors end
120139# #------------------------------------------------------------------------------
121140# # Setters
122141# #------------------------------------------------------------------------------
142+ """
143+ $SIGNATURES
144+ Set the metadata of the node.
145+ """
146+ function setMetadata! (node, metadata:: Dict{Symbol, SmallDataTypes} )
147+ # with set old data should be removed, but care is taken to make sure its not the same object
148+ node. metadata != = metadata && empty! (node. metadata)
149+ return merge! (node. metadata, metadata)
150+ end
123151
124152"""
125153 $(SIGNATURES)
140168"""
141169$SIGNATURES
142170
143- Get the metadata of the node.
144- """
145- getMetadata (node) = node. metadata
146-
147- """
148- $SIGNATURES
149-
150- Set the metadata of the node.
151- """
152- function setMetadata! (node, metadata:: Dict{Symbol, SmallDataTypes} )
153- # with set old data should be removed, but care is taken to make sure its not the same object
154- node. metadata != = metadata && empty! (node. metadata)
155- return merge! (node. metadata, metadata)
156- end
157-
158- """
159- $SIGNATURES
160-
161171Get the metadata from the agent in the AbstractDFG.
162172"""
163173getAgentMetadata (dfg:: AbstractDFG ) = getMetadata (getAgent (dfg))
@@ -212,7 +222,7 @@ emptyGraphMetadata!(dfg::AbstractDFG) = empty!(dfg.graphMetadata)
212222# TODO add__Data!?
213223
214224# #==============================================================================
215- # # Agent/Graph Blob Entries CRUD
225+ # # Agent/Graph/Model Blob Entries CRUD
216226# #==============================================================================
217227
218228function getGraphBlobEntry end
@@ -229,8 +239,16 @@ function addAgentBlobEntries! end
229239function updateAgentBlobEntry! end
230240function deleteAgentBlobEntry! end
231241
242+ function getModelBlobEntry end
243+ function getModelBlobEntries end
244+ function addModelBlobEntry! end
245+ function addModelBlobEntries! end
246+ function updateModelBlobEntry! end
247+ function deleteModelBlobEntry! end
248+
232249function listGraphBlobEntries end
233250function listAgentBlobEntries end
251+ function listModelBlobEntries end
234252
235253# #==============================================================================
236254# # AbstractBlobStore CRUD
@@ -315,6 +333,30 @@ function getVariable(dfg::G, label::Union{Symbol, String}) where {G <: AbstractD
315333 return error (" getVariable not implemented for $(typeof (dfg)) " )
316334end
317335
336+ """
337+ $(SIGNATURES)
338+ Get a VariableSummary from a DFG.
339+ """
340+ function getVariableSummary end
341+
342+ """
343+ $(SIGNATURES)
344+ Get the variables from a DFG as a Vector{VariableSummary}.
345+ """
346+ function getVariablesSummary end
347+
348+ """
349+ $(SIGNATURES)
350+ Get a VariableSkeleton from a DFG.
351+ """
352+ function getVariableSkeleton end
353+
354+ """
355+ $(SIGNATURES)
356+ Get the variables from a DFG as a Vector{VariableSkeleton}.
357+ """
358+ function getVariablesSkeleton end
359+
318360"""
319361 $(SIGNATURES)
320362Get a DFGFactor from a DFG using its label.
@@ -323,6 +365,12 @@ function getFactor(dfg::G, label::Union{Symbol, String}) where {G <: AbstractDFG
323365 return error (" getFactor not implemented for $(typeof (dfg)) " )
324366end
325367
368+ """
369+ $(SIGNATURES)
370+ Get the skeleton factors from a DFG as a Vector{FactorSkeleton}.
371+ """
372+ function getFactorsSkeleton end
373+
326374function Base. getindex (dfg:: AbstractDFG , lbl:: Union{Symbol, String} )
327375 if isVariable (dfg, lbl)
328376 getVariable (dfg, lbl)
0 commit comments