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

print condition in show(::Transition) #1065

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Conversation

baggepinnen
Copy link
Collaborator

and compactify printing which now becomes a bit longer

example:

julia> equations(ff)
17-element Vector{Equation}:
 initial_state(state1)
 state1  state2 if (activeState(state1₊stateD) & activeState(state1₊stateY)) [immediate: 1, reset: 1, sync: 0, prio: 1]
 state2  state1 if (v(t) >= 20) [immediate: 1, reset: 1, sync: 0, prio: 1]
 initial_state(stateA)
 stateA  stateB if (v(t) >= 6) [immediate: 1, reset: 1, sync: 0, prio: 1]
 stateB  stateC if (v(t) == 0) [immediate: 1, reset: 1, sync: 0, prio: 1]
 stateC  stateD if (count(t) >= 2) [immediate: 1, reset: 1, sync: 0, prio: 1]
 stateC  stateA if (true) [immediate: 1, reset: 1, sync: 0, prio: 2]
 initial_state(stateX)
 stateX  stateY if (stateX₊i(t) > 20) [immediate: 1, reset: 1, sync: 0, prio: 1]
 Shift(t, 1)(v(t)) ~ 2 + v(t)
 Shift(t, 1)(v(t)) ~ -1 + v(t)
 Shift(t, 1)(state1₊count(t)) ~ 1 + state1₊count(t)
 Shift(t, 1)(state1₊stateX₊i(t)) ~ 1 + state1₊stateX₊i(t)
 state1₊stateX₊w(t) ~ v(t)
 Shift(t, 1)(state1₊stateY₊j(t)) ~ 1 + state1₊stateY₊j(t)
 Shift(t, 1)(v(t)) ~ 5 + v(t)

and compactify printing which now becomes a bit longer
@ChrisRackauckas ChrisRackauckas merged commit 5f57198 into master Feb 21, 2024
5 of 11 checks passed
@ChrisRackauckas ChrisRackauckas deleted the fb/print_transition branch February 21, 2024 14:19
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

Successfully merging this pull request may close these issues.

2 participants