Import io.api.AbstractOpenemsModbusComponent Import .annotations.ReferencePolicyOption Import .annotations.ReferenceCardinality The webconsole_configurationFactory_nameHint parameter sets a custom name for Apache Felix Web Console, helping the user to find the correct bundle. The OpenEMS Edge framework therefor sets the 'target' property of a reference to filter the matched services. Note: Linking other OpenEMS Components is implemented using OSGi References. The Modbus_target will be automatically set by OpenEMS framework and does usually not need to be configured by the user. This is the ID that is configured at the simulated meter. The Modbus service implementation requires us to provide the Modbus Unit-ID (also commonly called Device-ID or Slave-ID) of the Modbus slave device. At runtime the user will typically set this configuration parameter to something like 'modbus0'. The 'Modbus-ID' parameter creates the link to a Modbus-Service via its OpenEMS Component-ID. We will let the user define this type by a configuration parameter. The 'Meter' nature requires definition of a MeterType that defines the purpose of the Meter. The annotation provides meta information about a configuration parameter like name and description. The enabled parameter provides a soft way of deactivating an OpenEMS Component programmatically. If no alias is configured, the Component-ID is used instead. The alias configuration parameter sets the human-readable name of this OpenEMS Component. It is good practice to define such an ID here, as it simplifies configuration in the UI. The id configuration parameter sets the OpenEMS Component-ID (see Channel Address). Use it to set a name and description for this OpenEMS Component. The annotation defines this file as a Meta Type Resource for OSGi configuration admin. String webconsole_configurationFactory_nameHint() default "Meter Simulated " (10) String Modbus_target() default "(enabled=true)" (9) Int modbusUnitId() default 1 = "Modbus target filter", description = "This is auto-generated by 'Modbus-ID'.") ![]() String modbus_id() default "modbus0" = "Modbus Unit-ID", description = "The Unit-ID of the Modbus device.") MeterType type() default MeterType.PRODUCTION = "Modbus-ID", description = "ID of Modbus bridge.") String alias() default "" = "Is enabled?", description = "Is this Component enabled?")īoolean enabled() default true = "Meter-Type", description = "Grid, Production (=default), Consumption") (5) String id() default "meter0" = "Alias", description = "Human-readable name of this Component defaults to Component-ID") Import .annotations.ObjectClassDefinition ĭescription = "Implements the simulated Config = "Component-ID", description = "Unique ID of this Component")
0 Comments
Leave a Reply. |