package org.epics.css.dal.simple.impl;

import org.epics.css.dal.simple.MetaData;

public final class NumericMetaDataImpl implements MetaData {
	
	private final double alarmHigh;
	private final double alarmLow;
	private final double displayHigh;
	private final double displayLow;
	private final double warnHigh;
	private final double warnLow;
	private final int precision;
	private final String units;
	
	public NumericMetaDataImpl(double displayHigh, double displayLow, double warnHigh, double warnLow, double alarmHigh, double alarmLow, int precision, String units) {
		this.alarmHigh = alarmHigh;
		this.alarmLow = alarmLow;
		this.displayHigh = displayHigh;
		this.displayLow = displayLow;
		this.warnHigh = warnHigh;
		this.warnLow = warnLow;
		this.precision = precision;
		this.units = units;
	}

	public double getAlarmHigh() {
		return alarmHigh;
	}

	public double getAlarmLow() {
		return alarmLow;
	}

	public double getDisplayHigh() {
		return displayHigh;
	}

	public double getDisplayLow() {
		return displayLow;
	}

	public int getPrecision() {
		return precision;
	}

	public String getState(int state) {
		// default value
		return null;
	}

	public String[] getStates() {
		// default value
		return null;
	}

	public String getUnits() {
		return units;
	}

	public double getWarnHigh() {
		return warnHigh;
	}

	public double getWarnLow() {
		return warnLow;
	}

}

@@ -439,20 +439,19 @@
  display
-High
+Low
 , double
@@ -450,35 +450,36 @@
 , double display
-Low
+High
 , double warnHig
@@ -475,20 +475,19 @@
 ble warn
-High
+Low
 , double
@@ -483,32 +483,50 @@
 Low, double warn
+High, double alarm
 Low, double alar
@@ -531,33 +531,16 @@
 armHigh,
- double alarmLow,
  int pre

Order of parameters rearranged.