Package fr.soleil.comete.util

Examples of fr.soleil.comete.util.NumberMatrix


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


                    valuesMatrix[row][column] = scanPointsMatrix[row][column].getTime();
                }
            }
        }

        NumberMatrix matrix = new NumberMatrix();
        matrix.setName("Scan result");
        matrix.setValues(valuesMatrix);

        return matrix;
    }
View Full Code Here

    @Override
    public NumberMatrix readData() {
        if (report.getDimensionType() != DimensionType.IMAGE) {
            return null;
        }
        NumberMatrix matrix = new NumberMatrix();
        matrix.setName(sensor.getName());
        matrix.setValues(report.getReadImageData());
        return matrix;
    }
View Full Code Here

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

                    valuesMatrix[row][column] = scanPointsMatrix[row][column].getTime();
                }
            }
        }

        NumberMatrix matrix = new NumberMatrix();
        matrix.setName("Scan result");
        matrix.setValues(valuesMatrix);

        return matrix;
    }
View Full Code Here

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

                    valuesMatrix[row][column] = scanPointsMatrix[row][column].getTime();
                }
            }
        }

        NumberMatrix matrix = new NumberMatrix();
        matrix.setName("Scan result");
        matrix.setValues(valuesMatrix);

        return matrix;
    }
View Full Code Here

        final AttributeImagePanel widget = new AttributeImagePanel.Builder(m_deviceName,
                attributeName).jframe(jf1).build();
        Sleeper.SECONDS.sleep(2);

        final NumberMatrix numberMatrix = widget.getData();
        Assert.assertTrue("Widget doesn't reflect image attribute", equality(numberMatrix, data));

        // modifier la valeur de l'attribut
        for (int i = 0; i < data.length; i++) {
            data[i] += i;
        }

        m_deviceProxy.write_attribute(new DeviceAttribute(attributeName, data, numberMatrix
                .getWidth(), numberMatrix.getHeight()));

        // attendre la mise � jour du composant
        Sleeper.SECONDS.sleep(1);
        Assert.assertTrue("Widget doesn't reflect image attribute",
                equality(widget.getData(), data));
View Full Code Here

    final AttributeImagePanel widget = new AttributeImagePanel.Builder(
        m_deviceName, attributeName).jframe(jf1).build();
    Sleeper.SECONDS.sleep(2);

    final NumberMatrix numberMatrix = widget.getData();
    Assert.assertTrue("Widget doesn't reflect image attribute",
        equality(numberMatrix, data));

    // modifier la valeur de l'attribut
    for (int i = 0; i < data.length; i++) {
      data[i] += i;
    }

    m_deviceProxy.write_attribute(new DeviceAttribute(attributeName, data,
        numberMatrix.getWidth(), numberMatrix.getHeight()));

    // attendre la mise � jour du composant
    Sleeper.SECONDS.sleep(1);
    Assert.assertTrue("Widget doesn't reflect image attribute",
        equality(widget.getData(), data));
View Full Code Here

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

TOP

Related Classes of fr.soleil.comete.util.NumberMatrix

Copyright © 2018 www.massapicom. 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.