diff --git a/src/SymbolicIndexingInterface.jl b/src/SymbolicIndexingInterface.jl index 71f5b4f..32b6f9e 100644 --- a/src/SymbolicIndexingInterface.jl +++ b/src/SymbolicIndexingInterface.jl @@ -5,8 +5,8 @@ include("trait.jl") export is_variable, variable_index, variable_symbols, is_parameter, parameter_index, parameter_symbols, is_independent_variable, independent_variable_symbols, is_observed, - observed, is_time_dependent, constant_structure, symbolic_container, all_solvable_symbols, - all_symbols + observed, is_time_dependent, constant_structure, symbolic_container, all_variable_symbols, + all_symbols, solvedvariables, allvariables include("interface.jl") export SymbolCache diff --git a/src/interface.jl b/src/interface.jl index 42e4edd..67fab0e 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -116,10 +116,9 @@ number of variables or parameters over time. constant_structure(sys) = constant_structure(symbolic_container(sys)) """ - all_variables(sys) + all_variable_symbols(sys) -Return a vector of pairs, where the first element of each pair is a symbolic variable -and the second is its initial value. This includes observed quantities. +Return a vector of variable symbols in the system, including observed quantities. For types that implement `Base.getindex` with symbolic indices using this interface, The shorthand `sys[allvariables]` can be used as shorthand for @@ -145,7 +144,7 @@ This singleton is used as a shortcut to allow indexing all solution variables [`ScalarSymbolic`](@ref). See: [`variable_symbols`](@ref). """ const solvedvariables = SolvedVariables() -symbolic_type(::Type{AllVariables}) = ScalarSymbolic() +symbolic_type(::Type{SolvedVariables}) = ScalarSymbolic() struct AllVariables end