Skip to contents

continuous_events(sys) and discrete_events(sys) return the events of a system and its subsystems, namespaced; the _toplevel variants only the events of the system itself (of its hierarchical parent for a compiled system).

Usage

continuous_events(sys)

discrete_events(sys)

continuous_events_toplevel(sys)

discrete_events_toplevel(sys)

Arguments

sys

A System.

Examples

t <- t_nounits; D <- D_nounits
x <- Variable("x", t)
sys <- System(list(D(x) ~ 1), t, name = "s", continuous_events = list(x ~ 1))
continuous_events(sys)
#> [[1]]
#> SymbolicContinuousCallback:
#> Conditions:
#>   x(t) ~ 1
#>