gclass_check_fsm()

gclass_check_fsm()#

Checks the finite state machine (FSM) of a given hgclass for consistency, ensuring that all states and events are properly defined.

Prototype

int gclass_check_fsm(
    hgclass gclass
);

Parameters

Key

Type

Description

gclass

hgclass

The hgclass instance whose FSM is to be checked.


Return Value

Returns 0 if the FSM is valid, or a negative value if inconsistencies are found.

Notes

This function verifies that all states exist, that events are properly defined, and that transitions are valid within the FSM.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples