Examples of Action


Examples of io.netty.handler.codec.http2.Http2StreamRemovalPolicy.Action

        this.removalPolicy = removalPolicy;
        localEndpoint = new DefaultEndpoint(server);
        remoteEndpoint = new DefaultEndpoint(!server);

        // Tell the removal policy how to remove a stream from this connection.
        removalPolicy.setAction(new Action() {
            @Override
            public void removeStream(Http2Stream stream) {
                DefaultHttp2Connection.this.removeStream((DefaultStream) stream);
            }
        });
View Full Code Here

Examples of io.teknek.intravert.action.Action

          ApplicationContext application) {
    for (int i = 0; i < request.getOperations().size(); i++) {
      Operation operation = null;
      try {
        operation = request.getOperations().get(i);
        Action action = actionFatory.findAction(operation.getType());
        action.doAction(operation, response, requestContext, application);
      } catch (RuntimeException ex) {
        response.setExceptionId(operation.getId());
        response.setExceptionMessage(ex.getMessage());
        ex.printStackTrace();
        break;
View Full Code Here

Examples of jade.content.onto.basic.Action

   
    // Build a AMS action object for the request
    Register r = new Register();
    r.setDescription(amsd);
   
    Action act = new Action();
   
    act.setActor(AMSName);
    act.setAction(r);
   
    synchronized (cm) {
      try{   
        cm.fillContent(request, act);
      }
View Full Code Here

Examples of javaff.data.Action

    {
      Set acts = p.getActions();
      Iterator lit = acts.iterator();
      while (lit.hasNext())
      {
        Action a = (Action) lit.next();
        if (a instanceof StartInstantAction)
        {
          StartInstantAction sa = (StartInstantAction) a;
          if (!acts.contains(sa.getSibling())) ((TotalOrderPlan)p).addAction(sa.getSibling());
        }
View Full Code Here

Examples of javax.swing.Action

        // TODO Auto-generated method stub
        return null;
    }

    private void setActionMenuDefaultValues(ActionMenu menu) {
      Action action = menu.getAction();
      if (action != null) {
        if (action.getValue(Action.SMALL_ICON) == null) {
          action.putValue(Action.SMALL_ICON, BEANICON);
        }
        if (action.getValue(Action.NAME) == null) {
          action.putValue(Action.NAME, mBshFile.getName());
        }
      }
      else {
        ActionMenu[] subItems = menu.getSubItems();
        for (ActionMenu subItem : subItems) {
View Full Code Here

Examples of javax.xml.ws.Action

        String action = "";
        if (wm != null) {
            action = wm.action();
        }
        if (StringUtils.isEmpty(action)) {
            Action act = method.getAnnotation(Action.class);
            if (act != null) {
                action = act.input();
            }
        }
        return action;
    }
View Full Code Here

Examples of javax.xml.ws.addressing.Action

   private void processMetaExtensions(Method method, EndpointMetaData epMetaData, OperationMetaData opMetaData)
   {
      AddressingProperties ADDR = new AddressingPropertiesImpl();
      AddressingOpMetaExt addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());

      Action anAction = method.getAnnotation(Action.class);
      if (anAction != null)
      {
         addrExt.setInboundAction(anAction.input());
         addrExt.setOutboundAction(anAction.output());
      }
      else
      // default action values
      {
         // TODO: figure out a way to assign message name instead of IN and OUT
View Full Code Here

Examples of koth.game.Action

                            else if (x >= p.x + s + b - s * 0.5f && x <= p.x + 2 * s + b - s * 0.5f)
                                stance = Stance.Scissors;
                        }
                        if (stance != null) {
                            if (stance != pawn.getStance())
                                action = new Action(pawn, stance);
                            waiting = false;
                            lock.notifyAll();
                            return;
                        }
                        // Check if turn was skipped
                        if (0 == 1) { // TODO button to skip turn
                            pawn = null;
                            waiting = false;
                            lock.notifyAll();
                            return;
                        }
                        // Check if a destination was chosen
                        Point.Float t = renderer.unproject(x, y, 0);
                        t.x -= pawn.getLocation().getX();
                        t.y -= pawn.getLocation().getY();
                        if (t.x * t.x + t.y * t.y < 0.2f)
                            break;
                        Move move;
                        if (Math.abs(t.x) > Math.abs(t.y))
                            move = t.x >= 0 ? Move.East : Move.West;
                        else
                            move = t.y >= 0 ? Move.North : Move.South;
                        action = new Action(pawn, move);
                        waiting = false;
                        lock.notifyAll();
                        pawn = null;
                    }
                }
View Full Code Here

Examples of lupos.event.action.Action

  @Override
  public void queryResultReceived(QueryResult qr, Subscription sub) {
    System.out.println("QUERY RESULT RECEIVED");
    if(this.subscriptionActionMap.containsKey(sub)) {
      Action action = this.subscriptionActionMap.get(sub);
      action.execute(qr);
    }
  }
View Full Code Here

Examples of mage.interfaces.Action

        });
    }

    @Override
    public void removeTable(final String sessionId, final UUID roomId, final UUID tableId) throws MageException {
        execute("removeTable", sessionId, new Action() {
            @Override
            public void execute() {
                UUID userId = SessionManager.getInstance().getSession(sessionId).getUserId();
                TableManager.getInstance().removeTable(userId, tableId);
            }
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.