Examples of Core


Examples of com.clarkparsia.pellet.sparqldl.model.Core

      if( bound.containsAll( arguments ) ) {
        staticCost = estimate.getCost( KBOperation.IS_TYPE );
        branchCount = 1;
      }
      else {
        Core core = (Core) atom;
        int n = core.getDistVars().size();

        double b = Math.pow( estimate.avgInstancesPerClass( false ), n );
        branchCount = b;

        switch ( QueryEngine.getStrategy( atom ) ) {
View Full Code Here

Examples of com.darylteo.deploy.core.Core

public class DeploymentManager extends Verticle {

  @Override
  public void start() throws Exception {
    /* Start Web Admin Web Server */
    Core core = new Core(this);
    WebAdmin admin = new WebAdmin(this);
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.ai.special.Core

   
    _log.info(" - Baium");
    ThreadPoolManager.getInstance().scheduleAi(new Baium(-1, "baium", "ai"), 200);
   
    _log.info(" - Core");
    ThreadPoolManager.getInstance().scheduleAi(new Core(-1, "core", "ai"), 300);
   
    _log.info(" - Queen Ant");
    ThreadPoolManager.getInstance().scheduleAi(new QueenAnt(-1, "queen_ant", "ai"), 400);
   
    //_log.info(" - Van Halter");
View Full Code Here

Examples of com.onarandombox.MultiverseCore.api.Core

    @Test
    public void testEnableDebugMode() {
        // Pull a core instance from the server.
        Plugin plugin = mockServer.getPluginManager().getPlugin("Multiverse-Core");
        Core core = (Core) plugin;

        // Make sure Core is not null
        assertNotNull(plugin);

        // Make sure Core is enabled
        assertTrue(plugin.isEnabled());

        // Make a fake server folder to fool MV into thinking a world folder exists.
        File serverDirectory = new File(creator.getCore().getServerFolder(), "world");
        serverDirectory.mkdirs();

        // Initialize a fake command
        Command mockCommand = mock(Command.class);
        when(mockCommand.getName()).thenReturn("mv");

        // Assert debug mode is off
        Assert.assertEquals(0, core.getMVConfig().getGlobalDebug());

        // Send the debug command.
        String[] debugArgs = new String[] { "debug", "3" };
        plugin.onCommand(mockCommandSender, mockCommand, "", debugArgs);

        Assert.assertEquals(3, core.getMVConfig().getGlobalDebug());
    }
View Full Code Here

Examples of com.onarandombox.MultiverseCore.api.Core

     */
    @Override
    public void setDestination(JavaPlugin plugin, String destination) {
        // TODO Taking a JavaPlugin here is rather useless, if we keep casting it up to MultiverseCore.
        // We should change that.
        Core core = (Core) plugin;
        String[] items = destination.split(":");
        if (items.length > 3) {
            isValid = false;
            return;
        }
        if (items.length == 1 && ((MultiverseCore) plugin).getMVWorldManager().isMVWorld(items[0])) {
            isValid = true;
            this.world = core.getMVWorldManager().getMVWorld(items[0]);
            return;
        }
        if (items.length == 2 && ((MultiverseCore) plugin).getMVWorldManager().isMVWorld(items[0])) {
            this.world = core.getMVWorldManager().getMVWorld(items[0]);
            this.yaw = core.getLocationManipulation().getYaw(items[1]);
            return;
        }
        if (items[0].equalsIgnoreCase("w") && ((MultiverseCore) plugin).getMVWorldManager().isMVWorld(items[1])) {
            this.world = ((MultiverseCore) plugin).getMVWorldManager().getMVWorld(items[1]);
            isValid = true;
            if (items.length == 3) {
                this.yaw = core.getLocationManipulation().getYaw(items[2]);
            }
        }
    }
View Full Code Here

Examples of embet.core.Core

  } catch (MalformedURLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
  }
 
  EmbetClientAPI client = new EmbetClientAPI(new Core("embet", "/embet/admire/sksa.properties", l, new File("memory_init/admire_load")));
 

    /*
    client.submitUserTextContext( "guest", "Bratislava Krpelany" );

View Full Code Here

Examples of net.pterodactylus.sone.core.Core

  }

  @Test
  public void testBookmarkingMissingPost() throws URISyntaxException {
    /* create mocks. */
    Core core = mock(Core.class);
    WebInterface webInterface = mock(WebInterface.class);
    when(webInterface.getCore()).thenReturn(core);
    HTTPRequest httpRequest = new HTTPRequestImpl(new URI("/ajax/bookmark.ajax"), "GET");
    FreenetRequest request = mock(FreenetRequest.class);
    when(request.getHttpRequest()).thenReturn(httpRequest);
View Full Code Here

Examples of net.pterodactylus.sone.core.Core

    String type = request.getHttpRequest().getParam("type");
    if (!type.equals("sone") && !type.equals("post") && !type.equals("reply")) {
      return createErrorJsonObject("invalid-type");
    }
    String[] ids = request.getHttpRequest().getParam("id").split(" ");
    Core core = webInterface.getCore();
    for (String id : ids) {
      if (type.equals("post")) {
        Optional<Post> post = core.getPost(id);
        if (!post.isPresent()) {
          continue;
        }
        core.markPostKnown(post.get());
      } else if (type.equals("reply")) {
        Optional<PostReply> reply = core.getPostReply(id);
        if (!reply.isPresent()) {
          continue;
        }
        core.markReplyKnown(reply.get());
      } else if (type.equals("sone")) {
        Optional<Sone> sone = core.getSone(id);
        if (!sone.isPresent()) {
          continue;
        }
        core.markSoneKnown(sone.get());
      }
    }
    return createSuccessJsonObject();
  }
View Full Code Here

Examples of net.pterodactylus.sone.core.Core

  @Test
  public void testLockingALocalSone() throws FcpException {
    Sone localSone = mock(Sone.class);
    when(localSone.getId()).thenReturn("LocalSone");
    when(localSone.isLocal()).thenReturn(true);
    Core core = mock(Core.class);
    when(core.getSone(eq("LocalSone"))).thenReturn(Optional.of(localSone));
    when(core.getLocalSone(eq("LocalSone"), anyBoolean())).thenReturn(localSone);
    SimpleFieldSet fields = new SimpleFieldSetBuilder().put("Sone", "LocalSone").get();

    LockSoneCommand lockSoneCommand = new LockSoneCommand(core);
    Response response = lockSoneCommand.execute(fields, null, null);
View Full Code Here

Examples of net.pterodactylus.sone.core.Core

  }

  @Test(expected = FcpException.class)
  public void testLockingARemoteSone() throws FcpException {
    Sone removeSone = mock(Sone.class);
    Core core = mock(Core.class);
    when(core.getSone(eq("RemoteSone"))).thenReturn(Optional.of(removeSone));
    SimpleFieldSet fields = new SimpleFieldSetBuilder().put("Sone", "RemoteSone").get();

    LockSoneCommand lockSoneCommand = new LockSoneCommand(core);
    lockSoneCommand.execute(fields, null, null);
  }
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.