// Actuators dimension X
actionName = "read_attribute(\"" + CurrentScanDataModel.ACTUATORS_DATA_LIST + " "
+ CurrentScanDataModel.YACTUATORS_DATA_LIST + "\")";
String[] actuatorsValueKeysArray = CurrentScanDataModel.getActuators(scanServerName);
IActuator actuator = null;
String actuatorName = null;
List<IActuator> actuatorList = null;
if (actuatorsValueKeysArray != null) {
for (String actuatorValueKey : actuatorsValueKeysArray) {
entityName = TangoDeviceHelper.getEntityName(actuatorValueKey);
actuatorName = TangoAttributeHelper.getLabel(scanServerName, entityName);
actuator = new ActuatorImpl();
actuator.setName(actuatorName);
actuator.setEnabled(true);
// X Actuator
if (entityName.startsWith("actuator_1")) {
actuatorList = scanResult.getActuatorsXList();
} else if (entityName.startsWith("actuator_2") && (scanResult instanceof IScanResult2D)) {
actuatorList = ((IScanResult2D) scanResult).getActuatorsYList();
}
if (actuatorList != null) {
actuatorList.add(actuator);
}
actuator.setScanServerAttributeName(actuatorValueKey);
}
if (withTrajectories) {
HashMap<IActuator, double[]> trajectoryMap = new HashMap<IActuator, double[]>();
actuatorList = scanResult.getActuatorsXList();