COHLA. This section starts with a brief description of the structure of our DSL approach as introduced in [11] and our steps towards the extension for automated DSE. CoHLA is developed using Xtext [5] together with a code generator developed using Xtend [3]. These tools are based on the Eclipse IDE4 and are suitable to create a custom language with a code generator, possibly for multiple targets. A. Co-simulation definition in CoHLA 1 FederateClass Slider { 2 TimePolicy RegulatedAndConstrained 3 Attributes { 4 Input Boolean enable 5 Input Real encoder 6 Output Boolean limit_switch 7 Input Real motor 8 Output Real position 9 } 10 Initialisables { 11 Initialisable MaxmiumDistance "Maxmium. distance" as Real 12 Initialisable Position_realInitial " position_real.initial" as Real 13 } 14 SimulatorType FMU 15 DefaultModel "SliderAxis.fmu" 16 DefaultStep Time 17 DefaultStepSize 0.00005 18 DefaultLookahead 0.00001 19 } Listing 1. FederateClass definition for the Slider in the SliderSetup. 2▇▇▇▇://▇▇▇.▇▇▇▇▇.▇▇▇/ 3▇▇▇▇▇://▇▇▇▇▇▇▇▇▇▇▇▇.▇▇▇/ 4▇▇▇▇▇://▇▇▇.▇▇▇▇▇▇▇.▇▇▇/ It contains the type of simulator to use (line 14), the default model to use (line 15), some HLA-specific in- formation (lines 2, 17 and 18) and the externally visible attributes in the model (lines 3 to 9). An attribute consists of an HLA sharing type, a type, and a name. Additionally, initialisation attributes can be defined for a FederateClass to specify some internal model attributes (lines 10 to 13) that can used to assign initial values.
Appears in 2 contracts
Sources: End User Agreement, End User Agreement