Examples of channels()


Examples of com.webobjects.eoaccess.EOAdaptorContext.channels()

    fixClassPath();
    EODatabaseContext databaseContext = new EODatabaseContext(new EODatabase(_model));
    EOAdaptorContext adaptorContext = databaseContext.adaptorContext();

    NSMutableArray beforeOpenChannels = new NSMutableArray();
    Enumeration beforeChannelsEnum = adaptorContext.channels().objectEnumerator();
    while (beforeChannelsEnum.hasMoreElements()) {
      EOAdaptorChannel channel = (EOAdaptorChannel) beforeChannelsEnum.nextElement();
      if (channel.isOpen()) {
        beforeOpenChannels.addObject(channel);
      }
View Full Code Here

Examples of com.webobjects.eoaccess.EOAdaptorContext.channels()

        if (!channelOpen) {
          adaptorChannel.closeChannel();
        }
      }
    } finally {
      Enumeration afterChannelsEnum = adaptorContext.channels().objectEnumerator();
      while (afterChannelsEnum.hasMoreElements()) {
        EOAdaptorChannel channel = (EOAdaptorChannel) afterChannelsEnum.nextElement();
        if (channel.isOpen() && !beforeOpenChannels.containsObject(channel)) {
          channel.closeChannel();
        }
View Full Code Here

Examples of edu.purdue.wind.Wave.channels()

      wave = Wave.readFile(args[0]);
  } catch (IOException e) {
      throw new RuntimeException(e);
  }

  if (wave.channels() != 2) {
      System.err.println("Stereo input data required");
      System.exit(1);
  }

  int nSamples = 0;
View Full Code Here

Examples of edu.purdue.wind.Wave.channels()

      throw new RuntimeException(e);
  }

  System.out.println("Bits per sample:   " + wave.sampleBits());
  System.out.println("Sample rate (Hz):  " + wave.sampleRate());
  System.out.println("Channels:          " + wave.channels());
  System.out.println("Number of samples: " + wave.samples());
    }
}
View Full Code Here

Examples of edu.purdue.wind.Wave.channels()

  } catch (IOException e) {
      throw new RuntimeException(e);
  }

  short channel = Short.parseShort(args[1]);
  if (channel >= wave.channels()) {
      System.err.println("Cannot request channel not present in file");
      System.exit(1);
  }

  // Find the highest power of two smaller than wave.samples(),
View Full Code Here

Examples of org.apache.qpid.management.common.mbeans.ManagedConnection.channels()

        assertNotNull("Connection MBean is not found", connections);
        assertEquals("Unexpected number of connection mbeans", 1, connections.size());
        final ManagedConnection mBean = connections.get(0);
        assertNotNull("Connection MBean is null", mBean);

        TabularData channelsData = mBean.channels();
        assertNotNull("Channels data are null", channelsData);
        assertEquals("Unexpected number of rows in channel table", 1, channelsData.size());

        final Iterator<CompositeDataSupport> rowItr = (Iterator<CompositeDataSupport>) channelsData.values().iterator();
        final CompositeDataSupport row = rowItr.next();
View Full Code Here

Examples of org.apache.qpid.management.common.mbeans.ManagedConnection.channels()

        final Date initialLastIOTime = mBean.getLastIoTime();
        session.commit();
        assertTrue("Last IO time should have been updated", mBean.getLastIoTime().after(initialLastIOTime));

        channelsData = mBean.channels();
        assertNotNull("Channels data are null", channelsData);
        assertEquals("Unexpected number of rows in channel table", 1, channelsData.size());

        final Iterator<CompositeDataSupport> rowItr2 = (Iterator<CompositeDataSupport>) channelsData.values().iterator();
        final CompositeDataSupport row2 = rowItr2.next();
View Full Code Here

Examples of org.opencv.core.Mat.channels()

    }

    @Test
    public void testBufferedImageToMat() throws IOException {
        Mat mat = matForImage(TEST_4_CHANNEL_IMAGE, 4);
        assertEquals(4, mat.channels());

        mat = matForImage(TEST_3_CHANNEL_IMAGE, 3);
        assertEquals(3, mat.channels());

        mat = matForImage(TEST_GRAYSCALE_IMAGE, 1);
View Full Code Here

Examples of org.opencv.core.Mat.channels()

    public void testBufferedImageToMat() throws IOException {
        Mat mat = matForImage(TEST_4_CHANNEL_IMAGE, 4);
        assertEquals(4, mat.channels());

        mat = matForImage(TEST_3_CHANNEL_IMAGE, 3);
        assertEquals(3, mat.channels());

        mat = matForImage(TEST_GRAYSCALE_IMAGE, 1);
        assertEquals(1, mat.channels());
    }
View Full Code Here

Examples of org.opencv.core.Mat.channels()

        mat = matForImage(TEST_3_CHANNEL_IMAGE, 3);
        assertEquals(3, mat.channels());

        mat = matForImage(TEST_GRAYSCALE_IMAGE, 1);
        assertEquals(1, mat.channels());
    }


    private Mat matForImage(String imageName, int expectedComponents) throws IOException {
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
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.