Package io.openems.common.oem
Class DummyOpenemsEdgeOem
java.lang.Object
io.openems.common.oem.DummyOpenemsEdgeOem
- All Implemented Interfaces:
OpenemsEdgeOem
- Direct Known Subclasses:
OpenemsEdgeOemImpl
A default
OpenemsEdgeOem
for OpenEMS Edge.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.common.oem.OpenemsEdgeOem
OpenemsEdgeOem.SystemUpdateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Helper method for JUnit tests.getAppWebsiteUrl
(String appId) Gets the Website-URL for the given App-ID.The Websocket URL for OpenEMS Backend.The measurement Tag used to write data to InfluxDB.The manufacturer of the device that is running OpenEMS Edge.The Energy-Management-System serial number of the device.The model identifier of the device.The options of the device.The serial number of the device.The version of the device.The parameters for the integrated OpenEMS Edge System-Update feature.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.common.oem.OpenemsEdgeOem
getEntsoeToken, getExchangeRateAccesskey, getKacoBlueplanetHybrid10IdentKey
-
Constructor Details
-
DummyOpenemsEdgeOem
public DummyOpenemsEdgeOem()
-
-
Method Details
-
getManufacturer
Description copied from interface:OpenemsEdgeOem
The manufacturer of the device that is running OpenEMS Edge.Note: this should be max. 32 ASCII characters long
- Specified by:
getManufacturer
in interfaceOpenemsEdgeOem
- Returns:
- the value
-
getManufacturerModel
Description copied from interface:OpenemsEdgeOem
The model identifier of the device.Note: this should be max. 32 ASCII characters long
- Specified by:
getManufacturerModel
in interfaceOpenemsEdgeOem
- Returns:
- the value
-
getManufacturerOptions
Description copied from interface:OpenemsEdgeOem
The options of the device.Note: this should be max. 32 ASCII characters long
- Specified by:
getManufacturerOptions
in interfaceOpenemsEdgeOem
- Returns:
- the value
-
getManufacturerVersion
Description copied from interface:OpenemsEdgeOem
The version of the device.Note: this should be max. 32 ASCII characters long
- Specified by:
getManufacturerVersion
in interfaceOpenemsEdgeOem
- Returns:
- the value
-
getManufacturerSerialNumber
Description copied from interface:OpenemsEdgeOem
The serial number of the device.Note: this should be max. 32 ASCII characters long
- Specified by:
getManufacturerSerialNumber
in interfaceOpenemsEdgeOem
- Returns:
- the value
-
getManufacturerEmsSerialNumber
Description copied from interface:OpenemsEdgeOem
The Energy-Management-System serial number of the device.Note: this should be max. 32 ASCII characters long
- Specified by:
getManufacturerEmsSerialNumber
in interfaceOpenemsEdgeOem
- Returns:
- the value
-
getBackendApiUrl
Description copied from interface:OpenemsEdgeOem
The Websocket URL for OpenEMS Backend.Note: this value usually starts with "ws://" or "wss://"
- Specified by:
getBackendApiUrl
in interfaceOpenemsEdgeOem
- Returns:
- the value
-
getInfluxdbTag
Description copied from interface:OpenemsEdgeOem
The measurement Tag used to write data to InfluxDB.Note: this value defaults to "edge"
- Specified by:
getInfluxdbTag
in interfaceOpenemsEdgeOem
- Returns:
- the value
-
getSystemUpdateParams
Description copied from interface:OpenemsEdgeOem
The parameters for the integrated OpenEMS Edge System-Update feature.See 'Host' in 'io.openems.edge.common' for details
- Specified by:
getSystemUpdateParams
in interfaceOpenemsEdgeOem
- Returns:
- the record
-
getAppWebsiteUrl
Description copied from interface:OpenemsEdgeOem
Gets the Website-URL for the given App-ID.- Specified by:
getAppWebsiteUrl
in interfaceOpenemsEdgeOem
- Parameters:
appId
- the App-ID- Returns:
- a proper URL (e.g. https://...)
- an empty String: App is defined, but no WebsiteUrl is available; or
- null: App is undefined
-
assertAllWebsiteUrlsSet
Helper method for JUnit tests. Tests if the givenOpenemsEdgeOem
provides the same Website-URLs asDummyOpenemsEdgeOem
- (i.e. all are not-null. SeegetAppWebsiteUrl(String)
- Parameters:
oem
- theOpenemsEdgeOem
- Throws:
OpenemsException
-