1 | # Configuration |
---|
2 | c_profileName = ModelicaML |
---|
3 | |
---|
4 | # Configuration: Code generation |
---|
5 | c_outputFolder = code-gen/ |
---|
6 | c_incFolder = code-inc/ |
---|
7 | c_includeModelComments = true |
---|
8 | c_includeAsserts = true |
---|
9 | #debugMode is used to include code for, e.g. checking if only one OR state is active at an instance or if states are deactivated if the parent state is not active. |
---|
10 | c_debugMode = true |
---|
11 | |
---|
12 | ### ModelicaML specific |
---|
13 | p_path_ModelicaClassConstructs = ModelicaML::ModelicaClassConstructs |
---|
14 | p_path_ModelicaPredefinedTypes = ModelicaML::ModelicaPredefinedTypes |
---|
15 | p_path_ModelicaCompositeConstructs = ModelicaML::ModelicaCompositeConstructs |
---|
16 | p_path_ModelicaBehaviorConstructs = ModelicaML::ModelicaBehaviorConstructs |
---|
17 | p_path_ModelicaPredefinedEnumerations = ModelicaML::ModelicaPredefinedEnumerations |
---|
18 | p_path_ModelicaRelationsConstructs = ModelicaML::ModelicaRelationsConstructs |
---|
19 | p_path_ModelicaRequirementConstructs = ModelicaML::ModelicaRequirementConstructs |
---|
20 | p_path_ModelicaSimulationConstructs = ModelicaML::ModelicaSimulationConstructs |
---|
21 | p_path_ModelicaAnnotationConstructs = ModelicaML::ModelicaAnnotationConstructs |
---|
22 | p_path_ModelicaMLTestDefinition = ModelicaML::Verification |
---|
23 | p_path_ModelicaMLValueBinding = ModelicaML::ValueBinding |
---|
24 | p_path_ModelicaMLModelReferences = ModelicaML::ModelReferences |
---|
25 | p_path_ModelicaMLCodeGeneration = ModelicaML::CodeGeneration |
---|
26 | |
---|
27 | #### ModelicaML specific END |
---|
28 | |
---|
29 | # Stereotypes: Modelica Classes |
---|
30 | s_class = ModelicaClass |
---|
31 | s_package = ModelicaPackage |
---|
32 | s_operator = Operator |
---|
33 | s_model = Model |
---|
34 | s_block = Block |
---|
35 | s_connector = Connector |
---|
36 | s_record = Record |
---|
37 | s_type = Type |
---|
38 | s_enumeration = ModelicaEnumeration |
---|
39 | s_function = Function |
---|
40 | ### ModelicaML specific |
---|
41 | s_calculationModel = CalculationModel |
---|
42 | s_testScenario = VerificationScenario |
---|
43 | s_test = VerificationModel |
---|
44 | s_requirement = Requirement |
---|
45 | s_requirementRepresentative = RequirementRepresentative |
---|
46 | s_measureOfEffectiveness = MeasureOfEffectiveness |
---|
47 | |
---|
48 | s_ModelicaModelReference = ModelicaModelReference |
---|
49 | s_p_modelPath = modelPath |
---|
50 | |
---|
51 | s_ModelicaModelProxy = ModelicaModelProxy |
---|
52 | |
---|
53 | s_CodeGenerationSpecification = CodeGenerationSpecification |
---|
54 | #### ModelicaML specific END |
---|
55 | |
---|
56 | ### ModelicaML specific: Verification Definition Dependencies |
---|
57 | s_requires = Requires |
---|
58 | s_requiredFor = RequiredFor |
---|
59 | s_usedToVerify = UsedToVerify |
---|
60 | #### ModelicaML specific END: Verification Definition Dependencies |
---|
61 | |
---|
62 | |
---|
63 | # Stereotypes: Modelica Classes Properties |
---|
64 | s_p_final = final |
---|
65 | s_p_partial = partial |
---|
66 | s_p_encapsulated = encapsulated |
---|
67 | s_p_expandable = expandable |
---|
68 | ### ModelicaML specific |
---|
69 | s_p_iconImagePath = iconImagePath |
---|
70 | #### ModelicaML specific END |
---|
71 | |
---|
72 | # Stereotypes: Modelica Relations |
---|
73 | s_extends = ExtendsRelation |
---|
74 | s_typeExtend = TypeRelation |
---|
75 | s_redeclare = RedeclareRelation |
---|
76 | s_partialDerivativeFunction = PartialDerivativeOfFunctionRelation |
---|
77 | s_constrainedby = ConstrainedByRelation |
---|
78 | s_import = Import |
---|
79 | |
---|
80 | |
---|
81 | # Stereotypes: Modelica Function Properties |
---|
82 | #### NOTE: in ModelicaML 'external' keyword is set if s_p_externalLanguageSpecification != null |
---|
83 | s_p_external = external |
---|
84 | s_p_externalLanguageSpecification = externalLanguageSpecification |
---|
85 | s_p_externalFunctionCall = externalFunctionCall |
---|
86 | s_p_externalAnnotation = externalAnnotation |
---|
87 | |
---|
88 | |
---|
89 | # Stereotypes: Modelica Components |
---|
90 | s_component = Component |
---|
91 | s_variable = Variable |
---|
92 | s_port = ConnectionPort |
---|
93 | s_functionArgument = FunctionArgument |
---|
94 | #### ModelicaML specific |
---|
95 | s_requirementInstance = RequirementInstance |
---|
96 | s_calculatedProperty = CalculatedProperty |
---|
97 | #### ModelicaML specific END |
---|
98 | |
---|
99 | |
---|
100 | # Stereotypes: Modelica Components Properties |
---|
101 | s_p_innerouter = scope |
---|
102 | s_p_replaceable = replaceable |
---|
103 | s_p_causality = causality |
---|
104 | s_p_conditionalAttribute = conditionalExpression |
---|
105 | s_p_modification = modification |
---|
106 | s_p_declarationEquation = declarationEquationOrAssignment |
---|
107 | #### ModelicaML specific |
---|
108 | s_p_declarationAssignment = declarationAssignment |
---|
109 | #### ModelicaML specific END |
---|
110 | s_p_arraySubscripts = arraySize |
---|
111 | s_p_variability = variability |
---|
112 | ### ISSUE: TODO: For components we use use UML "public" and "protected" and exclude "private" and "package". We should do the same for classes. |
---|
113 | s_p_visibility = visibility |
---|
114 | ### ISSUE : TODO: END |
---|
115 | s_p_flowFlag = flowFlag |
---|
116 | ## s_partialDerivativeFunction |
---|
117 | s_p_partialDerivativeFunctionArguments = arguments |
---|
118 | |
---|
119 | # Stereotypes: Modelica Behavior |
---|
120 | s_equation = Equations(Code) |
---|
121 | s_algorithm = Algorithm(Code) |
---|
122 | s_assert = Assert |
---|
123 | s_connect = Connection |
---|
124 | s_if = If |
---|
125 | s_when = When |
---|
126 | ### ModelicaML specific |
---|
127 | s_modelicaStateMachine = ModelicaMLStateMachine |
---|
128 | ## ModelicaML specific: ModelicaMLStateMachine |
---|
129 | s_p_samplingExpression = samplingExpression |
---|
130 | ### ModelicaML specific END |
---|
131 | s_stateDependency = StateDependency |
---|
132 | s_conditionalEquation = ConditionalEquations(Diagram) |
---|
133 | s_conditionalEquationEquations = Equations(CodeInDiagram) |
---|
134 | s_conditionalAlgorithm = ConditionalAlgorithm(Diagram) |
---|
135 | s_conditionalAlgorithmStatements = AlgorithmStatements(CodeInDiagram) |
---|
136 | s_executionOrderPriority = ExecutionOrderPriority |
---|
137 | s_p_isSubActivity = isSubActivity |
---|
138 | s_p_forIndices = forIndices |
---|
139 | s_p_loopKind = loopKind |
---|
140 | s_p_whileExpression = whileExpression |
---|
141 | ## ModelicaML specific: StateTransitionSpecification |
---|
142 | s_StateTransitionSpecification = StateTransitionSpecification |
---|
143 | s_p_suppressExitActions = suppressExitActions |
---|
144 | s_p_suppressEntryActions = suppressEntryActions |
---|
145 | ## ModelicaML specific: StateSpecification |
---|
146 | s_StateSpecification = StateSpecification |
---|
147 | s_p_freezeExpression = freezeExpression |
---|
148 | ## ModelicaML specific: AdditionalIncludes |
---|
149 | s_AdditionalIncludes = AdditionalIncludes |
---|
150 | s_p_additionalActionCode = additionalActionCode |
---|
151 | ## ModelicaML specific END |
---|
152 | ## ModelicaML specific: ControlFlowSpecification |
---|
153 | s_p_priority = priority |
---|
154 | ## ModelicaML specific: StateDependency |
---|
155 | s_p_isInState = isInState |
---|
156 | s_p_logicalOperator = logicalOperator |
---|
157 | ### ModelicaML specific END |
---|
158 | |
---|
159 | ## ModelicaML specific: s_connect |
---|
160 | s_p_connectionEnds = explicitConnectionEnds |
---|
161 | ### ModelicaML specific END |
---|
162 | |
---|
163 | # Stereotypes: Modelica Behavior Properties |
---|
164 | s_p_initial = initial |
---|
165 | ## Assert (NOTE: not supported by SysML4Modelica) |
---|
166 | s_p_condition = condition |
---|
167 | s_p_level = level |
---|
168 | s_p_message = message |
---|
169 | |
---|
170 | |
---|
171 | # Stereotypes: Modelica Annotation |
---|
172 | s_annotation = Annotation |
---|
173 | |
---|
174 | s_annotation_icon = Annotation(Icon) |
---|
175 | s_p_iconAnnotationString = iconAnnotationString |
---|