Examples of connect()


Examples of marauroa.functional.SimpleClient.connect()

            i = index++;
            SimpleClient client = new SimpleClient("client.properties");

            Thread.sleep(Math.abs(rand.nextInt() % 20) * 1000);

            client.connect("localhost", PORT);
            AccountResult resAcc = client.createAccount("testUsername" + i, "password","email");
            assertTrue("Account creation must not fail", !resAcc.failed());

            assertEquals("testUsername" + i, resAcc.getUsername());
            assertEquals(Result.OK_CREATED, resAcc.getResult());
View Full Code Here

Examples of megamek.client.Client.connect()

                name = p.getText();
            }
            BotClient c = new TestBot(name, client.getHost(), client.getPort());
            c.game.addGameListener(new BotGUI(c));
            try {
                c.connect();
            } catch (Exception e) {
                clientgui
                        .doAlertDialog(
                                Messages.getString("ChatLounge.AlertBot.title"), Messages.getString("ChatLounge.AlertBot.message")); //$NON-NLS-1$ //$NON-NLS-2$
            }
View Full Code Here

Examples of megamek.client.bot.BotClient.connect()

        // setup any bots
        for (int x = 0; x < pa.length; x++) {
            if (sd.playerTypes[x] == ScenarioDialog.T_BOT) {
                BotClient c = new TestBot(pa[x].getName(), "localhost", hd.port); //$NON-NLS-1$
                c.game.addGameListener(new BotGUI(c));
                if (!c.connect()) {
                }
                c.retrieveServerInfo();
            }
        }
View Full Code Here

Examples of megamek.client.bot.TestBot.connect()

        // setup any bots
        for (int x = 0; x < pa.length; x++) {
            if (sd.playerTypes[x] == ScenarioDialog.T_BOT) {
                BotClient c = new TestBot(pa[x].getName(), "localhost", hd.port); //$NON-NLS-1$
                c.game.addGameListener(new BotGUI(c));
                if (!c.connect()) {
                }
                c.retrieveServerInfo();
            }
        }
View Full Code Here

Examples of model.MARK_II.connectTypes.AbstractRegionToRegionConnect.connect()

        // connect LGN to very small part of V1 Region of Neocortex
        Neocortex neocortex = nervousSystem.getCNS().getBrain().getCerebrum()
                .getCerebralCortex().getNeocortex();
        AbstractRegionToRegionConnect regionToRegionConnect = new RegionToRegionRectangleConnect();
        regionToRegionConnect.connect(LGN.getRegion(),
                neocortex.getCurrentRegion(), 0, 0);

        return nervousSystem;
    }
View Full Code Here

Examples of model.MARK_II.connectTypes.AbstractSensorCellsToRegionConnect.connect()

        Retina retina = new Retina(66, 66);
        Region region = new Region("Region", 8, 8, 4,
                percentMinimumOverlapScore, (int) desiredLocalActivity);

        AbstractSensorCellsToRegionConnect retinaToRegion = new SensorCellsToRegionRectangleConnect();
        retinaToRegion.connect(retina.getVisionCells(), region, 0, 0);

        SpatialPooler spatialPooler = new SpatialPooler(region);
        spatialPooler.setLearningState(true);
        TemporalPooler temporalPooler = new TemporalPooler(spatialPooler,
                (int) newSynapseCount);
View Full Code Here

Examples of model.MARK_II.connectTypes.RegionToRegionRectangleConnect.connect()

        // connect LGN to very small part of V1 Region of Neocortex
        Neocortex neocortex = nervousSystem.getCNS().getBrain().getCerebrum()
                .getCerebralCortex().getNeocortex();
        AbstractRegionToRegionConnect regionToRegionConnect = new RegionToRegionRectangleConnect();
        regionToRegionConnect.connect(LGN.getRegion(),
                neocortex.getCurrentRegion(), 0, 0);

        return nervousSystem;
    }
View Full Code Here

Examples of model.MARK_II.connectTypes.SensorCellsToRegionRectangleConnect.connect()

        Retina retina = new Retina(66, 66);
        Region region = new Region("Region", 8, 8, 4,
                percentMinimumOverlapScore, (int) desiredLocalActivity);

        AbstractSensorCellsToRegionConnect retinaToRegion = new SensorCellsToRegionRectangleConnect();
        retinaToRegion.connect(retina.getVisionCells(), region, 0, 0);

        SpatialPooler spatialPooler = new SpatialPooler(region);
        spatialPooler.setLearningState(true);
        TemporalPooler temporalPooler = new TemporalPooler(spatialPooler,
                (int) newSynapseCount);
View Full Code Here

Examples of mx4j.connector.rmi.jrmp.JRMPConnector.connect()

      properties.put("java.naming.factory.initial",
          "com.sun.jndi.rmi.registry.RegistryContextFactory");
      properties.put("java.naming.provider.url", connectionURL);
      JRMPConnector connector = new JRMPConnector();
      //JRMPConnectorWrapper connector = new JRMPConnectorWrapper();
      connector.connect("EM:rmiadaptor=MonitoringService", properties);

      rmiConn = connector.getRemoteMBeanServer();
      seeBeyondIQManager = new ObjectName("EM:" + factory.getEnvironmentName() + "="
          + factory.getLogicalhostName());
    } catch (Exception e) {
View Full Code Here

Examples of mx4j.tools.remote.ConnectionManager.connect()

      ConnectionManager server = (ConnectionManager)resolver.lookupClient(address, environment);
      server = (ConnectionManager)resolver.bindClient(server, environment);

      Object credentials = environment == null ? null : environment.get(CREDENTIALS);
      connection = server.connect(credentials);
   }

   protected void doClose() throws IOException
   {
      connection.close();
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.