$ ceps FILE [FILES] extract_events_transitively_and_group.ceps
$ ceps s.ceps extract_events_transitively_and_group.ceps
Input state machine is: s.ceps
Output:
{
"components":
[
{ "name":"S1", "in_events":["E1","E2"], "out_events":[]},
{ "name":"S2", "in_events":["E3","E4","E5"], "out_events":[]}
]
}
Warning
Requires ceps version 0.8.1.1 or higher.
$ ceps examples_ceps_sm/sm_with_actions.ceps extract_events_transitively_and_group.ceps
Input state machine is: sm_with_actions.ceps
Output:
{
"components":
[
{ "name":"basic_example1", "in_events":["ANY_KEY","CAPS_LOCK"], "out_events":["OUT1","OUT2","OUT3"]},
{ "name":"basic_example2", "in_events":["ANY_KEY","OUT1","OUT2"], "out_events":["CAPS_LOCK","OUT2"]}
]
}
Description: For each state machine S create the set of all events which are contained in a transition of S or in a transition of one of its sub state machines .