Skip to content

Commit af107a6

Browse files
committed
DFGVariable: estimateDict<: AbstractVariableEstimate
1 parent b0a7699 commit af107a6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/entities/DFGVariable.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ mutable struct PackedVariableNodeData
7373
x15::Bool ) = new(x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15)
7474
end
7575

76+
77+
abstract type AbstractVariableEstimate end
7678
"""
7779
$TYPEDEF
7880
@@ -84,7 +86,7 @@ Notes
8486
- `estimate` is the actual numerical estimate value,
8587
- Additional information such as how the data is represented (ie softtype) is stored alongside this data container in the `DFGVariableSummary` container.
8688
"""
87-
struct VariableEstimate
89+
struct VariableEstimate <: AbstractVariableEstimate
8890
solverKey::Symbol
8991
ppeType::Symbol
9092
estimate::Vector{Float64}
@@ -100,7 +102,7 @@ mutable struct DFGVariable <: AbstractDFGVariable
100102
label::Symbol
101103
timestamp::DateTime
102104
tags::Vector{Symbol}
103-
estimateDict::Dict{Symbol, Dict{Symbol, VariableEstimate}}
105+
estimateDict::Dict{Symbol, Dict{Symbol, <: AbstractVariableEstimate}}
104106
solverDataDict::Dict{Symbol, VariableNodeData}
105107
smallData::Dict{String, String}
106108
bigData::Any
@@ -160,7 +162,7 @@ mutable struct DFGVariableSummary <: AbstractDFGVariable
160162
label::Symbol
161163
timestamp::DateTime
162164
tags::Vector{Symbol}
163-
estimateDict::Dict{Symbol, Dict{Symbol, VariableEstimate}}
165+
estimateDict::Dict{Symbol, Dict{Symbol, <:AbstractVariableEstimate}}
164166
softtypename::Symbol
165167
_internalId::Int64
166168
end

0 commit comments

Comments
 (0)