Examples of Connection

  • 2 ends that can be connected to {@link Gate}.
  • A {@link Path} that provides the path from the first end to the last end @author zxpletran007
  • spark.api.Connection
    A connection to a SPARQL processor. Connections can be used to create commands, get metadata, or be closed.
  • sun.rmi.transport.Connection
  • tv.floe.metronome.classification.neuralnetworks.core.Connection
  • vicazh.hyperpool.stream.Connection
    This class is the superclass of all connections @author Victor Zhigunov @version 0.4.8.3

  • Examples of org.kite9.diagram.primitives.Connection

       */
      private void postProcess(DiagramElement diag, DiagramElement parent) {
        if (diag instanceof Diagram) {
          int rank = 0;
          for (Iterator<Connection> iterator = ((Diagram) diag).getAllLinks().iterator(); iterator.hasNext();) {
            Connection l = (Connection) iterator.next();
            if ((l.getFrom() != NO_REF) && (l.getTo() != NO_REF)) {
              l.getFrom().getLinks().add(l);
              l.getTo().getLinks().add(l);
              if (l instanceof Link) {
                ((Link) l).setRank(rank++);
              }
            } else {
              iterator.remove();
            }
          }
        }

        if (diag instanceof Contained) {
          ((Contained) diag).setContainer((Container) parent);
        }

        if (diag instanceof CompositionalDiagramElement) {
          ((CompositionalDiagramElement) diag).setParent(parent);
        }

        if (diag instanceof Link) {
          Link il = (Link) diag;
          if (il.getFrom() == null) {
            il.setFrom((Connected) parent);
          } else {
            ensureLink(il.getFrom(), il);
          }

          if (il.getTo() == null) {
            il.setTo((Connected) parent);
          } else {
            ensureLink(il.getTo(), il);
          }

          postProcess(il.getFromLabel(), il);
          postProcess(il.getToLabel(), il);
        }

        if (diag instanceof Glyph) {
          for (CompositionalDiagramElement c : ((Glyph) diag).getText()) {
            postProcess(c, diag);
          }
        }

        if (diag instanceof Container) {
          Collection<Contained> content = ((Container) diag).getContents();
          if (content != null) {
            for (Contained c : content) {
              postProcess(c, diag);
            }
          }
          postProcess(((Container) diag).getLabel(), diag);
        }
        if (diag instanceof Connected) {
          for (Iterator<Connection> lc = ((Connected) diag).getLinks().iterator(); lc.hasNext();) {
            Connection c = (Connection) lc.next();
            if ((c.getFrom() == NO_REF) || (c.getTo() == NO_REF)) {
              lc.remove();
            } else {
              postProcess(c, diag);
            }
          }
    View Full Code Here

    Examples of org.locationtech.udig.printing.model.Connection

        if (newSource.equals(oldTarget)) {
          return false;
        }
        // return false, if the connection exists already
        for (Iterator iter = newSource.getSourceConnections().iterator(); iter.hasNext();) {
          Connection conn = (Connection) iter.next();
          // return false if a newSource -> oldTarget connection exists already
          // and it is a different instance than the connection-field
          if (conn.getTarget().equals(oldTarget) &&  !conn.equals(connection)) {
            return false;
          }
        }
        return true;
      }
    View Full Code Here

    Examples of org.mortbay.io.Connection

                scheduleIdle();
            }

            public void close() throws IOException
            {
                Connection con=getConnection();
                if (con instanceof HttpConnection)
                {
                    RetryContinuation continuation = (RetryContinuation) ((HttpConnection)getConnection()).getRequest().getContinuation();
                    if (continuation != null && continuation.isPending())
                        continuation.reset();
    View Full Code Here

    Examples of org.neuroph.core.Connection

       *            output neuron
       * @param to
       *            input neuron
       */
      public static void createConnection(Neuron fromNeuron, Neuron toNeuron) {
        Connection connection = new Connection(fromNeuron, toNeuron);
        toNeuron.addInputConnection(connection);
      }
    View Full Code Here

    Examples of org.objectweb.joram.client.jms.Connection

       * @exception IllegalStateException  If the server is not listening.
       */
      public javax.jms.Connection createConnection(String name,
                                                   String password) throws JMSException {
        initIdentity(name, password);
        return new Connection(params, createRequestChannel(params, identity, reliableClass));
      }
    View Full Code Here

    Examples of org.objectweb.speedo.jmx.mbeans.Connection

            aa.setItfPatterns(EXPOSED_ITFS);
        ((Admin) agentC.getFcInterface("admin")).expose();
        }
       
        public void addConnectionMBeans() throws Exception {
            Connection c = new Connection(
                    getPoolAttributes(AbstractSpeedo.CONNECTION_POOL_PATH),
                    getPoolItf(AbstractSpeedo.PM_POOL_PATH),
                    getPMF());
            server.registerMBean(c, new ObjectName("speedo:name=connection"));
        }
    View Full Code Here

    Examples of org.omg.ETF.Connection

         * up to the ORB, using either the upcall mechanism or the
         * polling mechanism.
         */
        private void deliverConnection (Socket socket, boolean isSSL)
        {
            Connection result = null;
            try
            {
                result = createServerConnection(socket, isSSL);
            }
            catch (IOException ex)
    View Full Code Here

    Examples of org.openmuc.j62056.Connection

       */
      public Map<String, DataSet> read() {
        // the frequently executed code (polling) goes here ...
        Map<String, DataSet> dataSetMap = new HashMap<String, DataSet>();

        Connection connection = new Connection(config.getSerialPort(),
            config.getEchoHandling(), config.getBaudRateChangeDelay());
        try {
          try {
            connection.open();
          } catch (IOException e) {
            logger.error("Failed to open serial port {}: {}",
                config.getSerialPort(), e.getMessage());
            return dataSetMap;
          }
         
          List<DataSet> dataSets = null;
          try {
            dataSets = connection.read();
            for (DataSet dataSet : dataSets) {
              logger.debug("DataSet: {};{};{}", dataSet.getId(),
                  dataSet.getValue(), dataSet.getUnit());
              dataSetMap.put(dataSet.getId(), dataSet);
            }
          } catch (IOException e) {
            logger.error("IOException while trying to read: {}", e.getMessage());
          } catch (TimeoutException e) {
            logger.error("Read attempt timed out");
          }
        } finally {
          connection.close();
        }

        return dataSetMap;
      }
    View Full Code Here

    Examples of org.openquark.gems.client.Connection

        /**
         * @see org.openquark.gems.client.GemGraphChangeListener#gemDisconnected(GemGraphDisconnectionEvent)
         */
        public void gemDisconnected(GemGraphDisconnectionEvent e) {
           
            Connection connection = (Connection)e.getSource();
            Gem sourceGem = connection.getSource().getGem();
            Gem destinationGem = connection.getDestination().getGem();
            ExplorerGemNode sourceGemNode = gemToNodesMap.get(sourceGem);
            ExplorerGemNode destinationGemNode = gemToNodesMap.get(destinationGem);
           
            // This scope may not be showing the gem that triggered the event so there may be nothing to do.
            if (sourceGemNode == null) {
    View Full Code Here

    Examples of org.ops4j.pax.url.mvn.internal.Connection

            final MavenConfigurationImpl config =
                    new MavenConfigurationImpl(configuredProperties, ServiceConstants.PID);

            config.setSettings(new MavenSettingsImpl(config.getSettingsFileUrl(), config.useFallbackRepositories()));

            return new Connection(url, config);
        }
    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.