Skip to content

Commit efd40d0

Browse files
committed
Towards final Agent and GraphRoot
1 parent 8c1e2f1 commit efd40d0

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

src/GraphsDFG/GraphsDFG.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ using ...DistributedFactorGraphs:
1111
Agent,
1212
LabelNotFoundError,
1313
LabelExistsError,
14-
FactorgraphRoot,
14+
GraphRoot,
1515
AbstractGraphVariable,
1616
AbstractGraphFactor,
1717
NoSolverParams,

src/GraphsDFG/entities/GraphsDFG.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ mutable struct GraphsDFG{
1515
addHistory::Vector{Symbol} #TODO: Discuss more - is this an audit trail?
1616
solverParams::T # Solver parameters
1717
blobStores::Dict{Symbol, AbstractBlobstore}
18-
graph::FactorgraphRoot
18+
graph::GraphRoot
1919
agent::Agent
2020
end
2121

@@ -54,7 +54,7 @@ function GraphsDFG{T, V, F}(
5454
graphBlobEntries = OrderedDict{Symbol, Blobentry}(),
5555
description::String = "",
5656
graphDescription::String = description,
57-
graph::FactorgraphRoot = FactorgraphRoot(
57+
graph::GraphRoot = GraphRoot(
5858
graphLabel,
5959
graphDescription,
6060
graphTags,

src/GraphsDFG/services/GraphsDFGSerialization.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222
typePackedVariable::Bool = false # Are variables packed or full
2323
typePackedFactor::Bool = false # Are factors packed or full
2424
blobStores::Union{Nothing, Dict{Symbol, FolderStore{Vector{UInt8}}}} #FIXME allow more types of blobstores
25-
graph::FactorgraphRoot
25+
graph::GraphRoot
2626
agent::Agent
2727
end
2828

@@ -35,7 +35,7 @@ function PackedGraphsDFG(old::_OldPackedGraphsDFG)
3535
old.typePackedVariable,
3636
old.typePackedFactor,
3737
old.blobStores,
38-
FactorgraphRoot(
38+
GraphRoot(
3939
old.graphLabel,
4040
old.description,
4141
old.graphTags,

src/entities/AbstractDFG.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# abstract type AbstractGraphNode end <: AbstractDFGNode
88
# the rest of the nodes are also AbstractDFGNodes, eg.
99
# Agent <: AbstractDFGNode
10-
# FactorgraphRoot <: AbstractDFGNode
10+
# GraphRoot <: AbstractDFGNode
1111

1212
"""
1313
$(TYPEDEF)

src/entities/Agent_and_Graph.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
@kwdef mutable struct Agent
33
label::Symbol = :DefaultAgent
44
description::String = ""
5-
tags::Vector{Symbol} = Symbol[]
6-
metadata::Dict{Symbol, MetadataTypes} = Dict{Symbol, MetadataTypes}()
7-
blobEntries::OrderedDict{Symbol, Blobentry} = OrderedDict{Symbol, Blobentry}()
5+
tags::Set{Symbol} = Set{Symbol}()
6+
bloblets::Bloblets = Bloblets()
7+
blobentries::OrderedDict{Symbol, Blobentry} = OrderedDict{Symbol, Blobentry}()
88
end
99

10-
@kwdef mutable struct FactorgraphRoot
10+
@kwdef mutable struct GraphRoot
1111
label::Symbol = :DefaultFactorgraph
1212
description::String = ""
13-
tags::Vector{Symbol} = Symbol[]
14-
metadata::Dict{Symbol, MetadataTypes} = Dict{Symbol, MetadataTypes}()
15-
blobEntries::OrderedDict{Symbol, Blobentry} = OrderedDict{Symbol, Blobentry}()
13+
tags::Set{Symbol} = Set{Symbol}()
14+
bloblets::Bloblets = Bloblets()
15+
blobentries::OrderedDict{Symbol, Blobentry} = OrderedDict{Symbol, Blobentry}()
1616
end

0 commit comments

Comments
 (0)