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

import io.openems.common.types.OptionsEnum;

public enum Mode implements OptionsEnum {
	ZERO(0, "Zero"), //
	MINIMUM(1, "Minimum"), //
	SURPLUS(2, "Surplus"), //
	FORCE(3, "Force") //
	;

	private final int value;
	private final String name;

	private Mode(int value, String name) {
		this.value = value;
		this.name = name;
	}

	@Override
	public int getValue() {
		return this.value;
	}

	@Override
	public String getName() {
		return this.name;
	}

	@Override
	public OptionsEnum getUndefined() {
		return ZERO;
	}
}
