return allActuators;
}
@Override
protected IConfig<IDimension2DX> initModel() {
Config2DModel config2DModel = new Config2DModel(this);
IDimension2DX dimension2DX = (IDimension2DX) getDimensionX();
if (dimension2DX != null) {
IDimension2DX dimensionModel = (IDimension2DX) dimension2DX.toModel();
List<IActuator> actuatorList = dimension2DX.getActuatorsList();
List<IActuator> actuatorListModel = convertActuatorListToModel(actuatorList);
dimensionModel.setActuatorsList(actuatorListModel);
List<IRange2DX> rangeList = dimension2DX.getRangesList();
List<IRange2DX> rangeModelList = new ArrayList<IRange2DX>();
for (IRange2DX range : rangeList) {
rangeModelList.add((IRange2DX) range.toModel());
}
dimension2DX.setRangesList(rangeModelList);
config2DModel.setDimensionX(dimensionModel);
}
if (dimensionY != null) {
IDimension2DY dimensionModel = (IDimension2DY) dimensionY.toModel();
List<IActuator> actuatorList = dimensionY.getActuatorsList();
List<IActuator> actuatorListModel = convertActuatorListToModel(actuatorList);
dimensionModel.setActuatorsList(actuatorListModel);
List<IRange2DY> rangeList = dimensionY.getRangesList();
List<IRange2DY> rangeModelList = new ArrayList<IRange2DY>();
for (IRange2DY range : rangeList) {
rangeModelList.add((IRange2DY) range.toModel());
}
dimensionY.setRangesList(rangeModelList);
config2DModel.setDimensionY(dimensionModel);
}
return config2DModel;
}