blegat / HybridSystems.jl

Hybrid Systems definitions in Julia
Other
28 stars 5 forks source link

Annotate types of S and R #26

Open mforets opened 5 years ago

mforets commented 5 years ago

For the reasons outlined in this comment, i suggest to annotate the modes and reset maps, and while we are at it, use concrete types inside:

struct HybridSystem{A, ST<:AbstractSystem, VM<:AbstractVector{ST}, MT<:AbstractMap, VR<:AbstractVector{MT}, W, VW<:AbstractVector{W}} <: AbstractHybridSystem
    automaton::A
    modes::VM
    resetmaps::VR
    switchings::VW
    # Can be used by extensions
    ext::Dict{Symbol, Any}
end
blegat commented 5 years ago

This is the right direction