Programmazione del comportamento dello stato
Definire il funzionamento del grafico programmando il comportamento degli stati e delle transizioni mediante azioni, eventi e strutture di stato. Controllare la logica definendo quello che avviene durante le azioni e le transizioni di stato. Organizzare il comportamento di runtime del grafico utilizzando stati gerarchici, stati paralleli e collegamenti storici.
Argomenti
- Define State Behavior by Using Actions
Define behavior for state activation, while active, and when deactivating, to control system behavior at each stage of state execution.
- Supported Symbols in Actions
Special symbols available for state and transition actions.
- Create Hierarchical State Structures
Create hierarchical state structures by nesting child states inside parent states to organize complex logic and enable behavior inheritance in your chart.
- Implement Parallel States
Implement concurrent behaviors by using parallel (AND) states.
- Use Events in Stateflow Charts
Use events in Stateflow to trigger state transitions and actions for precise control over when and how states execute.
- Remember State Behavior by Using History Junctions
Track and restore previous conditions after interruptions to chart execution by using history junctions.