private double getMetalPercentage(int i) {
        if ((i >= 0) && (i < this.thermalConstants.length)) {
            return this.metalPercentages[i];
        } else {
            System.out.println("ERROR: invalid metal percentage requested.");
            return 0;
        }
    }