All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openxc.measurements.TurnSignalStatus Maven / Gradle / Ivy

The newest version!
package com.openxc.measurements;

import com.openxc.units.State;

public class TurnSignalStatus extends
        BaseMeasurement> {
    public final static String ID = "turn_signal_status";

    public enum TurnSignalPosition {
        OFF,
        LEFT,
        RIGHT
    }

    public TurnSignalStatus(State value) {
        super(value);
    }

    public TurnSignalStatus(TurnSignalPosition value) {
        this(new State(value));
    }

    public TurnSignalStatus(String value) {
        this(TurnSignalPosition.valueOf(value));
    }

    @Override
    public String getGenericName() {
        return ID;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy