export class Threshold
{
    constructor (
        public value: number,
        public calc: (value: number) => State
    ) { }
}

export enum State
{
    GREEN = "GREEN", ORANGE = "ORANGE", RED = "RED"
}