@@ -53,6 +53,10 @@ function SymbolicIndexingInterface.observed(sys::SystemMockup, sym, states = not
5353end
5454SymbolicIndexingInterface. is_time_dependent (sys:: SystemMockup ) = isequal (sys. indepvar, :t )
5555SymbolicIndexingInterface. constant_structure (sys:: SystemMockup ) = sys. static
56+ SymbolicIndexingInterface. all_variable_symbols (sys:: SystemMockup ) = sys. vars
57+ function SymbolicIndexingInterface. all_symbols (sys:: SystemMockup )
58+ vcat (sys. vars, sys. params, independent_variable_symbols (sys))
59+ end
5660
5761sys = SystemMockup (true , [:x , :y , :z ], [:a , :b , :c ], :t )
5862
@@ -79,6 +83,8 @@ sys = SystemMockup(true, [:x, :y, :z], [:a, :b, :c], :t)
7983@test variable_symbols (sys) == [:x , :y , :z ]
8084@test parameter_symbols (sys) == [:a , :b , :c ]
8185@test independent_variable_symbols (sys) == [:t ]
86+ @test all_variable_symbols (sys) == [:x , :y , :z ]
87+ @test sort (all_symbols (sys)) == [:a , :b , :c , :t , :x , :y , :z ]
8288
8389sys = SystemMockup (true , [:x , :y , :z ], [:a , :b , :c ], nothing )
8490
@@ -93,6 +99,8 @@ sys = SystemMockup(true, [:x, :y, :z], [:a, :b, :c], nothing)
9399@test variable_symbols (sys) == [:x , :y , :z ]
94100@test parameter_symbols (sys) == [:a , :b , :c ]
95101@test independent_variable_symbols (sys) == []
102+ @test all_variable_symbols (sys) == [:x , :y , :z ]
103+ @test sort (all_symbols (sys)) == [:a , :b , :c , :x , :y , :z ]
96104
97105sys = SystemMockup (false , [:x , :y , :z ], [:a , :b , :c ], :t )
98106@test ! constant_structure (sys)
115123@test variable_symbols (sys, 3 ) == [:x , :y , :z ]
116124@test parameter_symbols (sys) == [:a , :b , :c ]
117125@test independent_variable_symbols (sys) == [:t ]
126+ @test all_variable_symbols (sys) == [:x , :y , :z ]
127+ @test sort (all_symbols (sys)) == [:a , :b , :c , :t , :x , :y , :z ]
0 commit comments