}
}
}
else if (config instanceof IConfig2D) {
IConfig2D config2d = (IConfig2D) config;
IDimension2DX dimension2DX = config2d.getDimensionX();
List<IActuator> listActuator2DX = dimension2DX.getActuatorsList();
List<IRange2DX> range2DX = dimension2DX.getRangesList();
for (int i = 0; i < range2DX.size(); i++) {
List<ITrajectory> listTrajectory = range2DX.get(i)
.getTrajectoriesList();
for (int j = 0; j < listTrajectory.size(); j++) {
IActuator actuator = listActuator2DX.get(j);
if (actuator != null && actuator.isEnabled()) {
ITrajectory trajectory = copyToTrajectoryImpl(actuator,
listTrajectory.get(j));
if (trajectory != null) {
trajectories.add(trajectory);
}
}
}
}
IDimension2DY dimension2DY = config2d.getDimensionY();
List<IActuator> listActuator2DY = dimension2DY.getActuatorsList();
List<IRange2DY> range2DY = dimension2DY.getRangesList();
for (int i = 0; i < range2DY.size(); i++) {
List<ITrajectory> listTrajectory = range2DY.get(i)