Skip to content

Commit ba1dac8

Browse files
committed
work in progress,
might just delete
1 parent d8aa898 commit ba1dac8

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/entities/AbstractDFG.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,16 @@ The common node parameters for variables and factors.
2727
mutable struct DFGNodeParams
2828
solvable::Int
2929
_internalId::Int64
30+
DFGNodeParams(s1=0,s2=0) = new(s1,s2)
3031
end
31-
DFGNodeParams() = DFGNodeParams(0, 0)
32+
33+
# import Base: convert
34+
#
35+
# function convert(::Type{Symbol},::DFGNodeParams)
36+
# # error("WTF")
37+
# :WTF
38+
# end
39+
# export convert
3240

3341
"""
3442
$(TYPEDEF)

src/services/CommonAccessors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ getSolvable(var::Union{DFGVariable, DFGFactor})::Int = var._dfgNodeParams.solvab
106106
107107
Get 'solvable' parameter for either a variable or factor.
108108
"""
109-
function getSolvable(dfg::AbstractDFG, sym::Symbol)
109+
function getSolvable(dfg::AbstractDFG, sym::Symbol)::Int
110110
if isVariable(dfg, sym)
111111
return getVariable(dfg, sym)._dfgNodeParams.solvable
112112
elseif isFactor(dfg, sym)

0 commit comments

Comments
 (0)