/*
 * JaamSim Discrete Event Simulation
 * Copyright (C) 2014 Ausenco Engineering Canada Inc.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */
package com.jaamsim.input;

import com.jaamsim.units.DimensionlessUnit;
import com.jaamsim.units.Unit;


public class ExpResult {
	public double value;
	public Class<? extends Unit> unitType;

	public ExpResult(double val, Class<? extends Unit> ut) {
		value = val;
		unitType = ut;
	}

	public static ExpResult BAD_RESULT = new ExpResult(Double.NaN, DimensionlessUnit.class);

	public boolean isBad() {
		return this == BAD_RESULT;
	}
}

@@ -699,17 +699,16 @@
 .Unit;%0A%0A
-%0A
 public c
@@ -724,16 +724,113 @@
 esult %7B%0A
+%09public static final ExpResult BAD_RESULT = new ExpResult(Double.NaN, DimensionlessUnit.class);%0A%0A
 %09public 
@@ -982,99 +982,8 @@
 %09%7D%0A%0A
-%09public static ExpResult BAD_RESULT = new ExpResult(Double.NaN, DimensionlessUnit.class);%0A%0A
 %09pub

mark the BAD_Result constant as final