Examples of Action


Examples of abbot.script.Action

            addStep(step);
        }
        else if (methodName.startsWith("action")) {
            if (id == null) {
                // non-component action
                addStep(new Action(getContext(), null, methodName, argList));
            }
            else {
                ComponentReference ref = getComponentReference(id);
                if (ref == null)
                    throw new NoSuchReferenceException(id);
                addStep(new Action(getContext(), null,
                                   methodName, argList,
                                   method.getDeclaringClass()));
            }
        }
        else {
View Full Code Here

Examples of actions.Action

    throws ServletException, IOException  {
    try{
      String cmd = req.getParameter("cmd");
      //if(action != null){
        //On met le paramétre menu pour aller sur la page d'accueil
        Action a = (Action)actions.get(cmd);
        if(a == null){
          throw new Exception("Commande Erronée !");
        }
       
        System.out.println("cmd = "+cmd);
       
        String next = a.execute(req);       
        String suivant = SEP+next;
               
        System.out.println("suivant = "+suivant);
        RequestDispatcher rq = context.getRequestDispatcher(suivant);
        rq.forward(req,res);
View Full Code Here

Examples of agh.sr.rmi.client.action.Action

    public void newTurn(PlayerToken playerToken) {
        System.out.println("New turn for player : " + playerToken);
        if (playerToken.equals(currentPlayerToken)) {
            System.out.println("Its your turn! Sending action to server!");
            try {
                gameController.makeMove(playerToken, new Action());
            } catch (RemoteException e) {
                System.out.println("Making new move gone so wrong!");
                e.printStackTrace();
            }
        }
View Full Code Here

Examples of aima.core.agent.Action

  //
  // PRIVATE METHODS
  //
  private boolean isTerminal(S s) {
    boolean terminal = false;
    Action a = pi.get(s);
    if (null == a || a.isNoOp()) {
      // No actions possible in state is considered terminal.
      terminal = true;
    }
    return terminal;
  }
View Full Code Here

Examples of avrora.actions.Action

    }

    private static void runAction() throws Exception {
        banner();

        Action a = Defaults.getAction(ACTION.get());
        if (a == null)
            Avrora.userError("Unknown Action", StringUtil.quote(ACTION.get()));

        a.options.process(mainOptions);
        a.run(mainOptions.getArguments());
    }
View Full Code Here

Examples of bm.core.mvc.Action

            if( view instanceof DataFormView && forItem )
            {
                final Item item = ((DataFormView) view).getItem(
                        actionDef.getFor()
                );
                final Action action = new Action(
                        actionName,
                        command,
                        code,
                        item,
                        actionDef.getDefault() != null &&
                            actionDef.getDefault().booleanValue()
                );
                view.addAction( action, active );
            }
            else
            {
                view.addAction( new Action(
                        actionName,
                        command,
                        code,
                        null,
                        actionDef.getDefault() != null &&
View Full Code Here

Examples of caltrop.interpreter.ast.Action

            throw new InterpreterException(
                    "DataflowActorInterpreter: Must call actionSetup() "
                            + "before calling actionEvaluatePrecondition().");
        }

        final Action action = envAction;
        final InputPattern[] inputPatterns = action.getInputPatterns();

        for (int i = 0; i < inputPatterns.length; i++) {
            final InputPattern inputPattern = inputPatterns[i];

            // FIXME: handle multiports
            final InputChannel channel = ((InputPort) (inputPortMap
                    .get(inputPattern.getPortname()))).getChannel(0);

            if (inputPattern.getRepeatExpr() == null) {
                if (!channel.hasAvailable(inputPattern.getVariables().length)) {
                    // System.out.println("Not enough inputs:" + inputPattern.getVariables().length);
                    return false;
                }
            } else {
                int repeatVal = context.intValue(env.get(new EnvironmentKey(
                        inputPattern.getPortname())));

                if (!channel.hasAvailable(inputPattern.getVariables().length
                        * repeatVal)) {
                    // System.out.println("Not enough repeated inputs:" + inputPattern.getVariables().length * repeatVal);
                    return false;
                }
            }
        }

        final ExprEvaluator eval = new ExprEvaluator(context, env);
        final Expression[] guards = action.getGuards();

        for (int i = 0; i < guards.length; i++) {
            final Object g = eval.evaluate(guards[i]);

            if (!context.booleanValue(g)) {
View Full Code Here

Examples of center.task.TaskSchedulerInfo.Action

    public void processing(ITaskAPI ta) throws Throwable {
      try {
        System.out.println("Scheduler by name '" + sti.getName()
            + "' was started");
        Action act;
        Context cntx = new Context(id_processor, 0, ta, sti);
        while (!Action.STOP.equals(act = sti.getAction(cntx))) {
          if (Action.START.equals(act) || Action.ONES.equals(act)) {
            cntx = sti.createAndReadyTask(cntx, null, null);
            if (sti.getWaitFinished(cntx)) {
View Full Code Here

Examples of cero.games.Action

      notifyRoundEnd();
    }

    private void pumpAction() {
      // TODO use semaphore instead of synchronized
      Action act;
      if (actions.size() > 0) {
        act = actions.get(0);
        notifyActionPlayed(act);
        if (validateAction(act)) {
          act.executeAction();
          notifyActionExecuted(act);
        } else
          notifyActionFailed(act);
        actions.remove(act);
      }
View Full Code Here

Examples of ch.entwine.weblounge.common.site.Action

    Site site = request.getSite();
    ComposerImpl composer = new ComposerImpl(id);
    JspWriter writer = pageContext.getOut();

    Action action = (Action) request.getAttribute(WebloungeRequest.ACTION);

    try {

      // Flush all input that has been written to the response so far.
      writer.flush();
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.