setType(ScanType.SCAN_1D);
}
@Override
protected IConfig<IDimension1D> initModel() {
Config1DModel config1DModel = new Config1DModel(this);
IDimension1D dimension1D = (IDimension1D) getDimensionX();
if (dimension1D != null) {
IDimension1D dimensionModel = (IDimension1D) dimension1D.toModel();
List<IActuator> actuatorList = dimension1D.getActuatorsList();
List<IActuator> actuatorListModel = convertActuatorListToModel(actuatorList);
dimensionModel.setActuatorsList(actuatorListModel);
List<IRange1D> rangeList = dimension1D.getRangesXList();
List<IRange1D> rangeModelList = new ArrayList<IRange1D>();
for (IRange1D range : rangeList) {
rangeModelList.add((IRange1D) range.toModel());
}
dimension1D.setRangesXList(rangeModelList);
config1DModel.setDimensionX(dimensionModel);
}
return config1DModel;
}