return index;
}
@Override
public void swapActuator(String actuatorName1, String actuatorName2, boolean yActuator) {
IDimension dimension = getDimensionX();
if (yActuator && (this instanceof IConfig2D)) {
dimension = ((IConfig2D) this).getDimensionY();
}
if (dimension != null) {
List<IActuator> tmpActuatorList = dimension.getActuatorsList();
int actuator1pos = getIndexForName(actuatorName1, tmpActuatorList);
int actuator2pos = getIndexForName(actuatorName2, tmpActuatorList);
if ((actuator1pos > -1) && (actuator2pos > -1)) {
//First rename actuator
swapDevice(actuatorName1, actuatorName2, tmpActuatorList);
List<? extends IRange> rangeList = dimension.getRangeList();
if (rangeList != null) {
List<ITrajectory> trajectoryList = null;
ITrajectory t1 = null;
ITrajectory t2 = null;
for (IRange range : rangeList) {