Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotate types of S and R #26

Open
mforets opened this issue Feb 9, 2019 · 1 comment
Open

Annotate types of S and R #26

mforets opened this issue Feb 9, 2019 · 1 comment

Comments

@mforets
Copy link
Collaborator

mforets commented Feb 9, 2019

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
Copy link
Owner

blegat commented Feb 9, 2019

This is the right direction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants