Next: Systems, Previous: Interfaces, Up: Dezyne Language Reference [Contents][Index]
Components are the building blocks in a Dezyne. They allow composition into bigger components called system components.
A component has a list of ports and optionally a behavior or a system block.
component ::= "component" "{" port+ (behavior | system)? "}" behavior ::= "behavior" "{" behavior-statement* "}" system ::= "system" "{" system-statement* "}"
• Ports | Defining a component’s communication channels. | |
• Component Behavior | Defining a component’s behavior. | |
• Component Types | Three types of components. | |
• Component Declarative Statements | Component-specific declarative statements. | |
• Component Imperative Statements | Component-specific imperative statements. | |
• Multiple Provides Ports | Providing more than one interface. |