Examples of Engine


Examples of com.noelios.restlet.Engine

     *
     * @param context
     *            The bundle context.
     */
    public void start(BundleContext context) throws Exception {
        org.restlet.util.Engine.setInstance(new Engine(false));

        // Discover helpers in installed bundles and start
        // the bundle if necessary
        for (final Bundle bundle : context.getBundles()) {
            registerHelpers(bundle);
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.Engine

    @Override
    public void execute(AdminCommandContext context) {
        ActionReport report = context.getActionReport();

        try {
            final Engine engine = engine(report);
            if (engine != null) {
                setContextParam(engine,
                    name, value, description, ignoreDescriptorItem, report);
            }
        } catch (Exception e) {
View Full Code Here

Examples of com.sun.xml.internal.ws.api.pipe.Engine

        // if there is an EPR, EPR's address should be used for invocation instead of default address
        if(epr != null)
            this.requestContext.setEndPointAddressString(epr.getAddress());
        else
            this.requestContext.setEndpointAddress(defaultEndPointAddress);
        this.engine = new Engine(toString());
        this.endpointReference = epr;
        wsdlProperties = (wsdlPort==null) ? null : new WSDLProperties(wsdlPort);
    }
View Full Code Here

Examples of com.sun.xml.ws.api.pipe.Engine

        }
        this.masterCodec = c;

        tubePool = new TubePool(masterTubeline);
        terminalTube.setEndpoint(this);
        engine = new Engine(toString());
        wsdlProperties = (port==null) ? null : new WSDLProperties(port);

        Map<QName, WSEndpointReference.EPRExtension> eprExtensions = new HashMap<QName, WSEndpointReference.EPRExtension>();
        try {
            if (port != null) {
View Full Code Here

Examples of com.whatevernot.engine.standard.Engine

   * @param blockingQueue The queue.
   * @return The engine.
   */
  public static IEngine makeEngine(BlockingQueue<Runnable> blockingQueue)
  {
    return new Engine(blockingQueue);
  }
View Full Code Here

Examples of engine.Engine

    if(path.startsWith("jar:")) {
    System.setProperty("org.lwjgl.librarypath", new File("native/"+os).getAbsolutePath());
    }
    */
    Engine engine = new Engine();

    engine.start();

    System.exit(0);

  }
View Full Code Here

Examples of forestry.core.gadgets.Engine

    if (tile instanceof TilePowered)
      return !((TilePowered) tile).hasFuelMin(threshold);

    if (tile instanceof Engine) {
      Engine engine = (Engine) tile;
      return !engine.hasFuelMin(threshold);
    }

    return false;
  }
View Full Code Here

Examples of fysix.equipment.Engine

        moonCircle.addPoint(7,7);
        moonCircle.addPoint(9,4);
       
        moon.setBoundingArea(moonCircle);
       
        Engine mainEngine = new Engine(120, 50, 10, 10000000, 0.000005, 0, 0);
        // Mount to ship...
       
        // Engine dust
        Polygon engineDust = new Polygon();
        engineDust.addPoint(0,0);
View Full Code Here

Examples of games.stendhal.server.entity.npc.fsm.Engine

   * Tests for hiAndBye.
   */
  @Test
  public void testHiAndBye() {
    final SpeakerNPC npc = getNPC("Felina");
    final Engine en = npc.getEngine();

    assertTrue(en.step(player, "hi Felina"));
    assertEquals("Greetings! How may I help you?", getReply(npc));

    assertTrue(en.step(player, "bye"));
    assertEquals("Bye.", getReply(npc));
  }
View Full Code Here

Examples of games.stendhal.server.entity.npc.fsm.Engine

   * Tests for buyCat.
   */
  @Test
  public void testBuyCat() {
    final SpeakerNPC npc = getNPC("Felina");
    final Engine en = npc.getEngine();

    assertTrue(en.step(player, "hi"));
    assertEquals("Greetings! How may I help you?", getReply(npc));

    assertTrue(en.step(player, "job"));
    assertEquals("I sell cats. Well, really they are just little kittens when I sell them to you but if you #care for them well they grow into cats.", getReply(npc));

    assertTrue(en.step(player, "care"));
    assertEquals("Cats love chicken and fish. Just place a piece on the ground and your cat will run over to eat it. You can right-click on her and choose 'Look' at any time, to check up on her weight; she will gain one unit of weight for every piece of chicken she eats.", getReply(npc));

    // There is currently no quest response defined for Felina.
    assertFalse(en.step(player, "quest"));

    assertTrue(en.step(player, "buy"));
    assertEquals("A cat will cost 100. Do you want to buy it?", getReply(npc));
    assertTrue(en.step(player, "no"));
    assertEquals("Ok, how else may I help you?", getReply(npc));

    assertTrue(en.step(player, "buy dog"));
    assertEquals("Sorry, I don't sell dogs.", getReply(npc));

    assertTrue(en.step(player, "buy house"));
    assertEquals("Sorry, I don't sell houses.", getReply(npc));

    assertTrue(en.step(player, "buy someunknownthing"));
    assertEquals("Sorry, I don't sell someunknownthings.", getReply(npc));

    assertTrue(en.step(player, "buy a glass of wine"));
    assertEquals("Sorry, I don't sell glasses of wine.", getReply(npc));

    assertTrue(en.step(player, "buy a hand full of peace"));
    assertEquals("Sorry, I don't sell hand fulls of peace.", getReply(npc));

    assertTrue(en.step(player, "buy cat"));
    assertEquals("A cat will cost 100. Do you want to buy it?", getReply(npc));

    assertTrue(en.step(player, "no"));
    assertEquals("Ok, how else may I help you?", getReply(npc));

    assertTrue(en.step(player, "buy cat"));
    assertEquals("A cat will cost 100. Do you want to buy it?", getReply(npc));

    assertTrue(en.step(player, "yes"));
    assertEquals("You don't seem to have enough money.", getReply(npc));

    assertTrue(en.step(player, "buy two cats"));
    assertEquals("2 cats will cost 200. Do you want to buy them?", getReply(npc));

    assertTrue(en.step(player, "yes"));
    assertEquals("Hmm... I just don't think you're cut out for taking care of more than one cat at once.", getReply(npc));

    // equip with enough money to buy the cat
    assertTrue(equipWithMoney(player, 500));
    assertTrue(en.step(player, "buy cat"));
    assertEquals("A cat will cost 100. Do you want to buy it?", getReply(npc));

    assertFalse(player.hasPet());

    assertTrue(en.step(player, "yes"));
    assertEquals("Here you go, a cute little kitten! Your kitten will eat any piece of chicken or fish you place on the ground. Enjoy her!", getReply(npc));

    assertTrue(player.hasPet());

    assertTrue(en.step(player, "bye"));
    assertEquals("Bye.", getReply(npc));
  }
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.