Examples of IScanResult


Examples of fr.soleil.salsa.entity.IScanResult

            button.addActionListener(new ActionListener() {

                @Override
                public void actionPerformed(ActionEvent e) {
                    try {
                        IScanResult result = connector.retrieveCommonScanResult(true);
                        Map<IActuator, double[]> trajectoryMap = result.getTrajectoryMap();
                        StringBuilder builder = new StringBuilder();
                        if (result != null) {
                            builder.append("ScanServer=" + result.getScanServer() + "\n");
                            builder.append("Class=" + result.getClass().getName() + "\n");
                            builder.append("ScanType=" + result.getResultType() + "\n");
                            builder.append("RunName=" + result.getRunName() + "\n");
                            builder.append("SensorTimeStamps=" + result.getSensorsTimeStampsCompleteName() + "\n");
                            builder.append("ActuatorTimeStamps=" + result.getActuatorsTimeStampsCompleteName() + "\n");

                            List<ISensor> sensorList = result.getSensorsList();
                            builder.append("---Sensor size=" + sensorList.size() + "---\n");
                            for (ISensor sensor : sensorList) {
                                builder.append("Sensor name=" + sensor.getName() + "\n");
                                builder.append("Sensor attribute name=" + sensor.getScanServerAttributeName() + "\n");
                            }

                            List<IActuator> actuatorXList = result.getActuatorsXList();
                            builder.append("---Actuator X size=" + actuatorXList.size() + "---\n");
                            for (IActuator actuator : actuatorXList) {
                                builder.append("Actuator X name=" + actuator.getName() + "\n");
                                builder.append("Actuator attribute name=" + actuator.getScanServerAttributeName()
                                        + "\n");
                                if ((trajectoryMap != null) && trajectoryMap.containsKey(actuator)) {
                                    builder.append("Real trajectory =" + Arrays.toString(trajectoryMap.get(actuator))
                                            + "\n");
                                }
                            }
                            if (result.getResultType() == IScanResult.ResultType.RESULT_2D) {
                                List<IActuator> actuatorYList = ((IScanResult2D) result).getActuatorsYList();
                                builder.append("---Actuator Y size=" + actuatorYList.size() + "---\n");
                                for (IActuator actuator : actuatorYList) {
                                    builder.append("Actuator Y name=" + actuator.getName() + "\n");
                                    builder.append("Actuator attribute name=" + actuator.getScanServerAttributeName()
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanResult

            // in the meantime on
            // another thread.
            // We could synchronize the methods that can change scanResult too, but that would just
            // be
            // extra overhead.
            IScanResult result = scanResult;
            if (result != null) {
                List<ISensor> sensorsList = result.getSensorsList();
                List<IActuator> actuatorsList = result.getActuatorsXList();

                Option[] sensorsArray = new Option[sensorsList.size()];
                int sensorIndex;
                int sensorsNumber = sensorsList.size();
                ISensor sensor;
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanResult

            // in the meantime on
            // another thread.
            // We could synchronize the methods that can change scanResult too, but that would just
            // be
            // extra overhead.
            IScanResult result = scanResult;
            if (result != null) {
                List<ISensor> sensorsList = result.getSensorsList();
                List<IActuator> actuatorsList = result.getActuatorsXList();

                Option[] sensorsArray = new Option[sensorsList.size()];
                int sensorIndex;
                int sensorsNumber = sensorsList.size();
                ISensor sensor;
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanResult

        @Override
        public void refresh() {
            try {
                String scanServerName = getScanServer();
                if (scanServerName != null && !scanServerName.trim().equals("")) {
                    IScanResult scanResult = ScanApi.getBufferedScanResult(scanServerName);
                    if (scanResult == null) {
                        scanResultName = null;
                    }
                    else {
                        scanResultName = scanResult.getRunName();
                    }
                }
            }
            catch (SalsaDeviceException e) {
                scanResultName = null;
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanResult

     * @throws SalsaDeviceException If a problem occurred while accessing the Scan Server
     * @throws SalsaScanConfigurationException If the Scan Server Scan Type is not supported
     */
    public IScanResult readScanResult(String scanServerName) throws SalsaDeviceException,
            SalsaScanConfigurationException {
        IScanResult scanResult;
        if (isScanResultReady(scanServerName)) {
            // Type
            IConfig.ScanType scanType = getScanType(scanServerName);
            switch (scanType) {
                case SCAN_1D:
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanResult

     * @throws SalsaDeviceException If a problem occurred while accessing the Scan Server
     * @throws SalsaScanConfigurationException If the Scan Server Scan Type is not supported
     */
    public IScanResult readScanResult(String scanServerName) throws SalsaDeviceException,
            SalsaScanConfigurationException {
        IScanResult scanResult;
        if (isScanResultReady(scanServerName)) {
            // Type
            IConfig.ScanType scanType = getScanType(scanServerName);
            switch (scanType) {
                case SCAN_1D:
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanResult

        noReadCycles = 0;
        if (!autoRefresh && !inError) {
            setAutoRefresh(true);
        }
        NumberMatrix data;
        IScanResult scanResult = getScanResult();
        if (scanResult != null) {
            data = convertScanResultToNumberMatrix(scanResult);
        }
        else {
            data = null;
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanResult

    /**
     * Returns the scan result.
     */
    public IScanResult getScanResult() {
        IScanResult scanResult;
        if (!inError) {
            String scanServerName = getScanServer();
            try {
                if (scanServerName != null && !scanServerName.isEmpty()) {
                    if (ScanApi.isScanResultReady(scanServerName)) {
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanResult

    /**
     * The sensor for the z dimension.
     */
    public ISensor getZSensor() {
        if (zSensor == null) {
            IScanResult scanResult = getScanResult();
            if (scanResult != null) {
                List<ISensor> sensorsXList = scanResult.getSensorsList();
                if (sensorsXList != null && sensorsXList.size() > 0) {
                    zSensor = sensorsXList.get(0);
                }
            }
        }
View Full Code Here

Examples of fr.soleil.salsa.entity.IScanResult

        noReadCycles = 0;
        if (!autoRefresh && !inError) {
            setAutoRefresh(true);
        }
        List<DataArray> data;
        IScanResult scanResult = getScanResult();
        if (scanResult != null && scanResult instanceof IScanResult1D) {
            data = convertScanResultToDataArraysList((IScanResult1D) scanResult);
        }
        else if ((yAxisComponents != null) && (!yAxisComponents.isEmpty())) {
            data = new ArrayList<DataArray>();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.