Examples of readArray()


Examples of fr.soleil.tango.clientapi.TangoAttribute.readArray()

        if (index >= 0) {
            if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, attributeName)) {
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    if (doubleValues != null && index < doubleValues.length) {
                        value = doubleValues[index];
                    }
                }
                catch (DevFailed e) {
View Full Code Here

Examples of fr.soleil.tango.clientapi.TangoAttribute.readArray()

            }
            else if (x >= 0 && y >= 0) {
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if (doubleValues != null && x < dimX && y < dimY) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
View Full Code Here

Examples of fr.soleil.tango.clientapi.TangoAttribute.readArray()

        if (index >= 0) {
            if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, attributeName)) {
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    if (doubleValues != null && index < doubleValues.length) {
                        value = doubleValues[index];
                    }
                }
                catch (DevFailed e) {
View Full Code Here

Examples of fr.soleil.tango.clientapi.TangoAttribute.readArray()

            }
            else if (x >= 0 && y >= 0) {
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if (doubleValues != null && x < dimX && y < dimY) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
View Full Code Here

Examples of fr.soleil.tango.clientapi.TangoAttribute.readArray()

        if (index >= 0) {
            if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, attributeName)) {
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    if (doubleValues != null && index < doubleValues.length) {
                        value = doubleValues[index];
                    }
                }
                catch (DevFailed e) {
View Full Code Here

Examples of hprose.io.HproseReader.readArray()

                }
                if (remoteMethod == null) {
                    remoteMethod = getGlobalMethods().get(aliasname, count);
                }
                if (remoteMethod == null) {
                    arguments = reader.readArray(count);
                }
                else {
                    arguments = new Object[count];
                    reader.readArray(remoteMethod.paramTypes, arguments, count);
                }
View Full Code Here

Examples of javax.json.JsonReader.readArray()

      String filename = outputdir + "/patterns" + ".json";

      JsonArrayBuilder obj = Json.createArrayBuilder();
      if (writtenPatInJustification.containsKey(label) && writtenPatInJustification.get(label)) {
        JsonReader jsonReader = Json.createReader(new BufferedInputStream(new FileInputStream(filename)));
        JsonArray objarr = jsonReader.readArray();
        jsonReader.close();
        for (JsonValue o : objarr)
          obj.add(o);
      } else
        obj = Json.createArrayBuilder();
View Full Code Here

Examples of javax.sql.rowset.serial.SQLInputImpl.readArray()

    public void testReadArray() throws SQLException {
        Array array = new MockArray();
        Object[] attributes = new Object[] { array };
        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        assertEquals(array, impl.readArray());

        try {
            impl.readArray();
            fail("should throw SQLException");
        } catch (SQLException e) {
View Full Code Here

Examples of javax.sql.rowset.serial.SQLInputImpl.readArray()

        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        assertEquals(array, impl.readArray());

        try {
            impl.readArray();
            fail("should throw SQLException");
        } catch (SQLException e) {
            // expected
        }
View Full Code Here

Examples of javax.sql.rowset.serial.SQLInputImpl.readArray()

            // expected
        }

        attributes = new Object[] { null };
        impl = new SQLInputImpl(attributes, new HashMap<String, Class<?>>());
        assertNull(impl.readArray());
    }

    /**
     * @tests {@link javax.sql.rowset.serial.SQLInputImpl#readAsciiStream()}
     */
 
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.