-
Notifications
You must be signed in to change notification settings - Fork 0
Style
Here are some naming conventions for xUML model element and variable names.
Symbols include variable, attribute, class, parameter, event, method and operation names.
Symbol names follow the usual alphanumeric conventions with the exception that the space character may be used as a delimiter. So the name incoming aircraft, for example, is a legal name.
Values and functions provided by the model execution platform are preceded by an underscore.
For ease of reading, a number of model naming conventions are recommended, but not enforced.
Variable names – Lower case: my aircraft .= /R1/Aircraft
Class names – All initial caps: Air Traffic Controller
External entity names – All caps: UI, ALARMS
Attribute names – First initial cap: Maximum altitude
Parameter names – All lower case: (landing runway, radio freq)
Data types – All initial caps: Compass Direction
Relationship phrase names – Lower case: /R3/is taking off from
Event, operation and method names – First initial cap:
- Event:
Land planes -> Air Traffic Controller - Operation:
UI.Send warning( Message ) - Method:
Off Duty Controller.Check break duration()Transitory states – First initial cap:Checking temperature
Wait states – All Caps:RAISING LANDING GEAR
(Note that state names are never referenced in Scrall, but it is helpful to see all of model naming conventions in one place).
Copyright 2020, 2021, 2022, 2023, 2025 © Leon Starr under MIT Open Source License
- Why they are problematic
- Instance attribute creation values
- Boolean values
- Special values
- Enumerated values
- Action block
- Statement
- Single line action
- Multiple dependent actions on a single line
- An action spread across multiple lines
- A conditional group of single line actions
- Comments
- Finding instances
- Attribute access
- Creation and deletion
- Subclass migration
- Creating a table from a class
- Creating a table with a definition
- Converting a table into a class
- Set operations on tables
- Set comparisons on tables
- Join
- Rename
- Extend
- Aggregation
- Rank
- Image
- Input values
- Signatures and name doubling
- Output values
- Execution order
- Sequential execution
- Conditional execution
- Signals
- Scrall has no for_each action
- Iteration