Skip to content

Commit 96df0f4

Browse files
authored
rn PackedVariable to Variable,
and keep the alias for now
1 parent a78b6d9 commit 96df0f4

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/entities/DFGVariable.jl

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,14 @@ getEstimateFields(::MeanMaxPPE) = [:suggested, :max, :mean]
177177
## DFG Variables
178178
##==============================================================================
179179

180-
# Packed Variable
181-
Base.@kwdef struct PackedVariable
180+
export Variable
181+
182+
"""
183+
$(TYPEDEF)
184+
185+
The Variable information packed in a way that accomdates multi-lang using json.
186+
"""
187+
Base.@kwdef struct Variable
182188
# NOTE: This has to match the order of the JSON deserializer as we're using OrderedStructs.
183189
id::Union{UUID, Nothing}
184190
label::Symbol
@@ -193,10 +199,11 @@ Base.@kwdef struct PackedVariable
193199
solvable::Int
194200
solverData::Vector{PackedVariableNodeData}
195201
end
202+
const PackedVariable = Variable
196203

197-
StructTypes.StructType(::Type{PackedVariable}) = StructTypes.UnorderedStruct()
198-
StructTypes.idproperty(::Type{PackedVariable}) = :id
199-
StructTypes.omitempties(::Type{PackedVariable}) = (:id,)
204+
StructTypes.StructType(::Type{Variable}) = StructTypes.UnorderedStruct()
205+
StructTypes.idproperty(::Type{Variable}) = :id
206+
StructTypes.omitempties(::Type{Variable}) = (:id,)
200207

201208
##------------------------------------------------------------------------------
202209
## DFGVariable lv2

0 commit comments

Comments
 (0)