|Home > Iris APIs > Notification and discovery of state changes API|
Clients can observe the state of component instances and might display this state to the user, so they need to know when the state is updated.
When a client calls a state-modifying function like
IRIS_STATE_CHANGED event is automatically generated. The client does not need to generate it.
All clients register for
IRIS_SIMULATION_TIME_EVENT. When this event is received with a value of
RUNNING=False, this indicates that the simulation time has stopped progressing. Clients should then query all displayed state and update their views.
While the simulation time is stopped, clients can modify the state of component instances, for example by writing resources or memory. Other clients should register for
IRIS_STATE_CHANGED events to get notification of these changes and update their views.