Class AbstractContext<PARENT extends OpenemsComponent>
java.lang.Object
io.openems.edge.common.statemachine.AbstractContext<PARENT>
- Direct Known Subclasses:
AbstractForceChargeDischarge.Context
,Context
,Context
,Context
,Context
,Context
,Context
,Context
,Context
,Context
,Context
,Context
,Context
,Context
,Context
,Context
,Context
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anAbstractContext
without useful logging.AbstractContext
(PARENT parent) Constructs anAbstractContext
. -
Method Summary
Modifier and TypeMethodDescriptionGets the parentOpenemsComponent
.void
Log a debug message including the Component ID.void
Log an error message including the Component ID.void
Log an info message including the Component ID.void
Log a warn message including the Component ID.
-
Constructor Details
-
AbstractContext
public AbstractContext()Constructs anAbstractContext
without useful logging. -
AbstractContext
Constructs anAbstractContext
.- Parameters:
parent
- the parentOpenemsComponent
. This is used to provide useful logging.
-
-
Method Details
-
getParent
Gets the parentOpenemsComponent
.- Returns:
- the parent
-
logDebug
Log a debug message including the Component ID.- Parameters:
log
- the Logger instancemessage
- the message
-
logInfo
Log an info message including the Component ID.- Parameters:
log
- the Logger instancemessage
- the message
-
logWarn
Log a warn message including the Component ID.- Parameters:
log
- the Logger instancemessage
- the message
-
logError
Log an error message including the Component ID.- Parameters:
log
- the Logger instancemessage
- the message
-