setType(ScanType.SCAN_ENERGY);
}
@Override
protected IConfig<IDimensionEnergy> initModel() {
ConfigEnergyModel configEnergyDModel = new ConfigEnergyModel(this);
IDimensionEnergy dimension = (IDimensionEnergy) getDimensionX();
if (dimension != null) {
IDimensionEnergy dimensionModel = (IDimensionEnergy) dimension.toModel();
List<IActuator> actuatorList = dimension.getActuatorsList();
List<IActuator> actuatorListModel = convertActuatorListToModel(actuatorList);
dimensionModel.setActuatorsList(actuatorListModel);
List<IRangeEnergy> rangeList = dimension.getRangesEnergyList();
List<IRangeEnergy> rangeModelList = new ArrayList<IRangeEnergy>();
for (IRangeEnergy range : rangeList) {
rangeModelList.add((IRangeEnergy) range.toModel());
}
dimension.setRangesEnergyList(rangeModelList);
configEnergyDModel.setDimensionX(dimensionModel);
}
return configEnergyDModel;
}