package io.openems.edge.controller.evse.single.statemachine;

import io.openems.edge.common.statemachine.StateHandler;
import io.openems.edge.controller.evse.single.statemachine.StateMachine.State;

public class UndefinedHandler extends StateHandler<State, Context> {

	@Override
	public State runAndGetNextState(Context context) {
		return context.actions.abilities().isEvConnected() //
				? State.EV_CONNECTED //
				: State.EV_NOT_CONNECTED;
	}
}
