Class CheckRelayCount
java.lang.Object
io.openems.edge.core.appmanager.validator.AbstractCheckable
io.openems.edge.core.appmanager.validator.CheckRelayCount
- All Implemented Interfaces:
Checkable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCheckRelayCount
(ComponentUtil openemsAppUtil, org.osgi.service.component.ComponentContext componentContext, OpenemsApp relayApp) -
Method Summary
Modifier and TypeMethodDescriptionboolean
check()
Checks if the implemented task was successful or not.getErrorMessage
(Language language) Gets the error message if the check was incorrect completed.void
setProperties
(Map<String, ?> properties) Sets the properties.Methods inherited from class io.openems.edge.core.appmanager.validator.AbstractCheckable
getComponentName, getTranslation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.edge.core.appmanager.validator.Checkable
getComponentName
-
Field Details
-
COMPONENT_NAME
- See Also:
-
-
Constructor Details
-
CheckRelayCount
public CheckRelayCount(ComponentUtil openemsAppUtil, org.osgi.service.component.ComponentContext componentContext, OpenemsApp relayApp)
-
-
Method Details
-
setProperties
Description copied from interface:Checkable
Sets the properties.- Specified by:
setProperties
in interfaceCheckable
- Parameters:
properties
- the properties to be set for the next check
-
check
public boolean check()Description copied from interface:Checkable
Checks if the implemented task was successful or not. -
getErrorMessage
Description copied from interface:Checkable
Gets the error message if the check was incorrect completed.- Specified by:
getErrorMessage
in interfaceCheckable
- Parameters:
language
- the language of the message- Returns:
- the message
-