Examples of Command


Examples of org.nfctools.scio.Command

    this.apduTag = apduTag;
  }

  @Override
  public void write(byte[] data, int offset, int length) throws IOException {
    Command command = new Command(data, offset, length);
    Response response = apduTag.transmit(command);
    responseData = response.getData();
    if (!response.isSuccess())
      throw new ApduException("Error sending message [" + NfcUtils.convertBinToASCII(data) + "] (" + offset + ","
          + length + ") => [SW1: " + response.getSw1() + ", SW2:" + response.getSw2() + ", Data: "
View Full Code Here

Examples of org.olat.core.gui.control.winmgr.Command

        if (jsPathToEvalBeforeAJAXAddJsCode.containsKey(addJs)) {
          fileInfo.put("before", jsPathToEvalBeforeAJAXAddJsCode.get(addJs));         
        }
        jsAdd.put(fileInfo);
      }
      Command com = CommandFactory.createJSCSSCommand();
      com.setSubJSON(root);
      return com;
    } catch (JSONException e) {
      throw new AssertException("wrong data put into json object", e);
    }
  }
View Full Code Here

Examples of org.openhab.core.types.Command

          // into real commands by the webapp.
          if ((item instanceof SwitchItem || item instanceof GroupItem) && commandName.equals("TOGGLE")) {
            commandName = OnOffType.ON.equals(item.getStateAs(OnOffType.class)) ? "OFF" : "ON";
          }
         
          Command command = TypeParser.parseCommand(item.getAcceptedCommandTypes(), commandName);
          if(command!=null) {
            eventPublisher.sendCommand(itemName, command);
          } else {
            logger.warn("Received unknown command '{}' for item '{}'", commandName, itemName);           
          }
View Full Code Here

Examples of org.openstreetmap.josm.command.Command

        List<Node> selectedNodes = new ArrayList<>(getCurrentDataSet().getSelectedNodes());
        List<Way> selectedWays = new ArrayList<>(getCurrentDataSet().getSelectedWays());

        try {
            Command cmd = null;
            //// Decide what to align based on selection:

            /// Only ways selected -> For each way align their nodes taking care of intersection
            if(selectedNodes.isEmpty() && !selectedWays.isEmpty()) {
                cmd = alignMultiWay(selectedWays);
View Full Code Here

Examples of org.pentaho.mantle.client.solutionbrowser.filelist.FileCommand.COMMAND

      int cmdIndex = 0;
      String cmdSetting = pluginSetting + "-command-" + cmdIndex;
      while ( settings.containsKey( cmdSetting ) ) {
        try {
          COMMAND cmd = COMMAND.valueOf( settings.get( cmdSetting ) );
          String perspective = settings.get( pluginSetting + "-command-perspective-" + cmdIndex );
          pluginMenu.addCommand( cmd );
          plugin.addCommandPerspective( cmd, perspective );
          cmdSetting = pluginSetting + "-command-" + ( ++cmdIndex );
        } catch ( Throwable t ) {
View Full Code Here

Examples of org.platformlayer.ops.Command

    if (target.getFilesystemInfoFile(canary) == null) {
      if (OpsContext.isConfigure()) {
        File dataDir = template.getDataDir();

        Command command = Command.build("java");
        command.addLiteral("-jar").addFile(template.getInstallWarFile());
        command.addLiteral("init");
        command.addLiteral("--no-auto-start");
        command.addLiteral("--batch");
        command.addLiteral("-d").addFile(dataDir);

        target.executeCommand(command);
      }
    }
View Full Code Here

Examples of org.prevayler.Command

        Iterator iter = commandLog.iterator();
        try
        {
            while (iter.hasNext())
            {
                Command cmd = (Command) iter.next();
                prevayler.executeCommand(cmd);
            }
        }
        catch (Exception e)
        {
View Full Code Here

Examples of org.rascalmpl.ast.Command

    // the complete URI up front, we don't need to keep providing it later.
    StringBuilder sb = new StringBuilder();
    sb.append("public ").append(tagStr).append("Type ").append(tagStr).append("() { ");
    sb.append(" return getTypedResource(").append(uriLoc.toString()).append(",#").append(tagStr).append("Type); }");
    IConstructor declTree = ctx.getEvaluator().parseCommand(ctx.getEvaluator().getMonitor(), sb.toString(), ctx.getCurrentAST().getLocation().getURI());
    Command cmd = new ASTBuilder().buildCommand(declTree);
    Environment env = ctx.getCurrentEnvt();
    ctx.setCurrentEnvt(env.getRoot());
    Result<IValue> fun0 = ctx.getEvaluator().eval(ctx.getEvaluator().getMonitor(), cmd);
    ctx.unwind(env);
View Full Code Here

Examples of org.rhq.core.pc.standaloneContainer.Command

            return false;

        if (tokens[0].isEmpty())
            return false;

        Command com = Command.get(tokens[0]);
        if (com == null) {
            System.err.println("Command " + tokens[0] + " is unknown");
            return false;
        }
        int minArgs = com.getMinArgs();
        if (tokens.length < minArgs + 1) {
            System.err.println("Command " + com + " needs " + minArgs + " parameter(s): " + com.getArgs());
            return false;
        }

        switch (com) {
        case ADD:
View Full Code Here

Examples of org.rhq.coregui.client.util.async.Command

            CoreGUI.getMessageCenter().notify(new Message(MSG.view_measureTable_startBeforeEnd()));
        } else {
            cachedBegin = prefs.begin = (long) startTime;
            cachedEnd = prefs.end = (long) endTime;
            cachedTimeRange = prefs.end - prefs.begin;
            Command callback = new Command() {
                public void execute() {
                    persisted = true;
                }
            };
            measurementUserPreferences.setMetricRangePreferences(prefs, allowPreferenceUpdateRefresh, callback);
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.