Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C Code > Generating C Code > Overview of generating C code (C code) > Overview of modeling C code (C code) > Overview of modeling C code (C code) > Summary of state diagram mappings for C (C code)
  
Summary of state diagram mappings for C (C code)
This table provides a summary of how Modeler State Diagram and State Diagram items map to C code.
For an example of how a simple State Diagram is generated, click here Summary of state diagram mappings for C (C code)
For information about making ACS ignore a State Diagram, click here Summary of state diagram mappings for C (C code)
For more information about a mapping, click the associated button.
State Diagram Item
C Code
Owning Class
Current State attribute
Busy attribute
Current State type
Constructor operation
Run to Completion operation
Destructor operation
RtsGetAttributeValue operation (for simulation)
RtsInjectEventOperation operation (for simulation)
RtsSetAttributeValue operation (for simulation)
Atomic State
Enter State operation
Exit State operation
Concurrent State
Current State attribute
Current State type
Enter State operation
Exit State operation
Event Action Block
Depends on trigger type
For more information, click the button to the left
Final State
Code to set Current State attribute added to
Exit State operation
History State
History State attribute
History State operation
Initial State
Default Entry operation
Junction
Not generated
Sequential State
Current State attribute
Current State type
Enter State operation
Exit State operation
Submachine State
Code for the referenced State Machine.