/** * Retrieves a name for the preset passed in. * * @param preset the <code>FlhMciPreset</code> to be checked */ public String getPresetName(FlhMciPreset preset) { Guardian.assertNotNull("preset", preset); String name; if (preset.equals(_presetMap.get(FlhMciConstants.PRESET_PARAM_VALUE_SET[0]))) { name = FlhMciConstants.PRESET_PARAM_VALUE_SET[0]; } else if (preset.equals(_presetMap.get(FlhMciConstants.PRESET_PARAM_VALUE_SET[1]))) { name = FlhMciConstants.PRESET_PARAM_VALUE_SET[1]; } else if (preset.equals(_presetMap.get(FlhMciConstants.PRESET_PARAM_VALUE_SET[2]))) { name = FlhMciConstants.PRESET_PARAM_VALUE_SET[2]; } else { name = FlhMciConstants.PRESET_PARAM_VALUE_SET[3]; } return name; }
/** Retrieves a preset with all values set to the default mci L2 processing */ private static FlhMciPreset getL2MciPreset() { FlhMciPreset preset = new FlhMciPreset(); preset.setLowBandName(L2_MCI_LOW_BAND); preset.setHighBandName(L2_MCI_HIGH_BAND); preset.setSignalBandName(L2_MCI_SIGNAL_BAND); preset.setLineheightBandName(L2_MCI_LINEHEIGHT_BAND); preset.setSlopeBandName(L2_MCI_SLOPE_BAND); preset.setBitmaskExpression(L2_BITMASK); return preset; }