Skip to content

Commit 97e23d6

Browse files
refactor: make AbstractSystem public, add docs
1 parent defd9e6 commit 97e23d6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/src/API/System.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ optimizations).
77

88
```@docs
99
System
10+
ModelingToolkit.AbstractSystem
1011
```
1112

1213
## Utility constructors

src/ModelingToolkit.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ in a non-breaking release. Usage of these arguments is not advised.
134134
"""
135135
$(TYPEDEF)
136136
137-
TODO
137+
Abstract supertype of all system types. Any custom system types must subtype this.
138138
"""
139139
abstract type AbstractSystem end
140140
# Solely so that `ODESystem` can be deprecated and still act as a valid type.
@@ -336,6 +336,7 @@ export DynamicOptSolution
336336
@public is_diff_equation, Equality, linearize_symbolic, reorder_unknowns
337337
@public similarity_transform, inputs, outputs, bound_inputs, unbound_inputs, bound_outputs
338338
@public unbound_outputs, is_bound
339+
@public AbstractSystem
339340

340341
for prop in [SYS_PROPS; [:continuous_events, :discrete_events]]
341342
getter = Symbol(:get_, prop)

0 commit comments

Comments
 (0)