Package io.openems.edge.common.statemachine


@Version("1.0.0") @Export package io.openems.edge.common.statemachine
This package holds helper classes to define a State-Machine inside an OpenEMS Component.

Finite State-Machines are a good, reliable and well-tested way of handling the logic inside an OpenEMS Controller or inside OpenEMS Device implementations.

This package consists of three classes:

  • StateMachine manages the different States
  • State is typically implemented by an enum that represents the different States
  • StateHandler holds the actual code of a State