package it.mice.voila.runtime.entity;

public class ThreeLevelSeverityIndicator extends AwesomeIndicatorBean {
	private static final String[] FONT_NAMES = {"fa-ban", "fa-warning", "fa-check"};
	private static final String[] FONT_COLORS = {"error", "warning", "info"};
	
	public ThreeLevelSeverityIndicator(Double value, Double low, Double high, String text) {
		super(
				value.compareTo(low) < 1 ? FONT_NAMES[0] : value.compareTo(high) < 1 ? FONT_NAMES[1] : FONT_NAMES[2], 
				value.compareTo(low) < 1 ? FONT_COLORS[0] : value.compareTo(high) < 1 ? FONT_COLORS[1] : FONT_COLORS[2], 
				text
		);
	}
}
