*/
@Override
public void notifyNewRangeAction() {
if (this.config != null) {
IDimension1D dimension = ((IConfig1D) config).getDimensionX();
Range1DModel rangeToAdd = new Range1DModel();
rangeToAdd.setDimension(dimension);
rangeToAdd.setIntegrationTime(1.0);
rangeToAdd.setStepsNumber(1);
this.rangeModelsList.add(rangeToAdd);
List<IRange1D> range1DList = dimension.getRangesXList();
for (int i = 0; i < this.actuatorModelsList.size(); i++) {
Trajectory1DModel trajectory1DModelToAdd = new Trajectory1DModel();
trajectory1DModelToAdd.setBeginPosition(0.0);
trajectory1DModelToAdd.setEndPosition(0.0);
trajectory1DModelToAdd.setDelta(0.0);
trajectory1DModelToAdd.setRelative(false);
trajectory1DModelToAdd.setSpeed(0.0);
rangeToAdd.getTrajectoriesList().add(trajectory1DModelToAdd);
trajectory1DModelToAdd.setRange(rangeToAdd);
trajectory1DModelToAdd.setActuator(actuatorModelsList.get(i));
dimension.getTrajectoriesList().add(trajectory1DModelToAdd);
trajectory1DModelToAdd.addListener(listenerTrajectory1D);
}
if (view != null) {
view.addRange();
}
range1DList.add(rangeToAdd);
rangeToAdd.addListener(listenerRange1D);
config.setModified(true);
// refresh();
}
}