Examples of Action


Examples of pivot.wtk.Action

    }

    // Application methods

    public void startup(Display display, Dictionary<String, String> properties) throws Exception {
        new Action("setAuthenticationAction") {
            public String getDescription() {
                return "Specifies authentication credentials";
            }

            public void perform() {
                final WTKXSerializer sheetSerializer = new WTKXSerializer();
                final Sheet sheet;

                try {
                    sheet = (Sheet)sheetSerializer.readObject("pivot/tools/net/setAuthentication.wtkx");
                } catch (Exception ex) {
                    throw new RuntimeException(ex);
                }

                Button okButton = (Button)sheetSerializer.getObjectByID("okButton");
                okButton.getButtonPressListeners().add(new ButtonPressListener() {
                    public void buttonPressed(Button button) {
                        sheet.close(true);
                    }
                });

                Button cancelButton = (Button)sheetSerializer.getObjectByID("cancelButton");
                cancelButton.getButtonPressListeners().add(new ButtonPressListener() {
                    public void buttonPressed(Button button) {
                        sheet.close(false);
                    }
                });

                if (credentials != null) {
                    TextInput usernameTextInput = (TextInput)sheetSerializer.getObjectByID("username");
                    TextInput passwordTextInput = (TextInput)sheetSerializer.getObjectByID("password");
                    usernameTextInput.setText(credentials.getUsername());
                    passwordTextInput.setText(credentials.getPassword());
                }

                sheet.getSheetStateListeners().add(new SheetStateListener() {
                    public Vote previewSheetClose(Sheet sheet, boolean result) {
                        return Vote.APPROVE;
                    }

                    public void sheetCloseVetoed(Sheet sheet, Vote reaso) {
                        // No-op
                    }

                    public void sheetClosed(Sheet sheet) {
                        if (sheet.getResult()) {
                            TextInput usernameTextInput = (TextInput)
                                sheetSerializer.getObjectByID("username");
                            TextInput passwordTextInput = (TextInput)
                                sheetSerializer.getObjectByID("password");

                            String username = usernameTextInput.getText();
                            String password = passwordTextInput.getText();

                            if (username.length() == 0 && password.length() == 0) {
                                credentials = null;
                            } else {
                                credentials = new Credentials(username, password);
                            }
                        }
                    }
                });

                sheet.open(window);
            }
        };

        new Action("toggleHostnameVerificationAction") {
            public String getDescription() {
                return "Toggles lenient hostname verification";
            }

            public void perform() {
                lenientHostnameVerification = !lenientHostnameVerification;
            }
        };

        new Action("setKeystoreAction") {
            private String keystorePath = null;
            private String keystorePassword = null;

            public String getDescription() {
                return "Sets a trusted keystore";
View Full Code Here

Examples of plan_runner.thetajoin.dynamic.advisor.Action

          SystemParameters.ThetaDataReshufflerToJoiner, tplSend);
    }
  }

  protected void advise() {
    Action advisorcurrentAction = null;
    final Maybe<Action> isAction = _mAdvisor.advise();
    if (!isAction.isNone())// there is no pending Assignment
      if (_currentAdvisorState != state.DATAMIGRATING
          && _currentAdvisorState != state.FLUSHING) {
        advisorcurrentAction = isAction.get();
        _currentAdvisorState = state.FLUSHING;
        LOG.info(_componentName + ":" + _taskIDLogicalIndex + " MAIN: sending new mapping:"
            + advisorcurrentAction.toString() + " Relation sizes "
            + _currentFirstRelationCount + "," + _currentSecondRelationCount);

        for (int i = 1; i < _resufflerIndex.size(); i++)
          _collector.emitDirect(
              _resufflerIndex.get(i),
              SystemParameters.ThetaSynchronizerSignal,
              new Values(SystemParameters.ThetaSignalStop, advisorcurrentAction
                  .toString()));
        // emit the stop signal with mapping
        _mAdvisor.updateMapping(advisorcurrentAction);
        // **************************Local changes
        _currentState = state.FLUSHING;
        _currentEpochNumber++;
        _currentAction = advisorcurrentAction;
        _currentDimExcDis = getNewMapping(_currentAction);

        LOG.info(_ID + ":" + _taskPhysicalID
            + " :Reshuffler (sending STOP) & current mapping changing to :("
            + _currentAction.toString() + ") with epoch number:" + _currentEpochNumber
            + " (" + _mAdvisor.totalRowTuples + "," + _mAdvisor.totalColumnTuples + ")");
        updateLogicalMappings();
        _collector.emit(SystemParameters.ThetaReshufflerSignal, new Values(
            SystemParameters.ThetaSignalStop, advisorcurrentAction.toString()));
        // ///*****************************
      }
  }
 
View Full Code Here

Examples of prefuse.action.Action

        m_vis.putAction("layout", layout);
       
        // the update list updates the colors of data points and sets the visual
        // properties for any labels. Color updating is limited only to the
        // current focus items, ensuring faster performance.
        final Action update = new ZipColorAction(FOCUS);
        m_vis.putAction("update", update);
       
        // animate a change in color in the interface. this animation is quite
        // short, only 200ms, so that it does not impede with interaction.
        // color animation of data points looks only at the focus items,
        // ensuring faster performance.
        ActionList animate = new ActionList(200);
        animate.add(new ColorAnimator(FOCUS, VisualItem.FILLCOLOR));
        animate.add(new ColorAnimator(LABELS, VisualItem.TEXTCOLOR));
        animate.add(new RepaintAction());
        animate.addActivityListener(new ActivityAdapter() {
            public void activityCancelled(Activity a) {
                // if animation is canceled, set colors to final state
                update.run(1.0);
            }
        });
        m_vis.putAction("animate", animate);
       
        // update items after a resize of the display, animating them to their
View Full Code Here

Examples of ru.ifmo.diplom.kirilchuk.jawelet.util.extensioner.Action

    @Override
    public double[] decomposeLow(double[] data, Filter lowDecompositionFilter) {
        double[] result;
       
        Action zeroPaddingToEven = new ZeroPaddingToEven();

        int extra = zeroPaddingToEven.getExtensionLength(data.length);
        result = new Extensioner(data)
                .schedule(zeroPaddingToEven)
                .schedule(new CyclicEndExtension(lowDecompositionFilter.getLength()))
                .execute();
        result = MathUtils.convolve(result, lowDecompositionFilter.getCoeff());
View Full Code Here

Examples of shocks.dawp.Action

  public Action leaseAction(DataSource metadata) {
    String type = (String)metadata.getAttribute("type");
    if(type == "action") {
      String className = (String)metadata.getAttribute("className");
      if(pools.containsKey(className)){
        Action action = pool(className).lease();
        return pool(className).lease();
      } else {
        log.debug("no pool for " + className);
      }
    } else {
View Full Code Here

Examples of smack.down.Action

  @Test
  public void testAugmentation() {
    Player player1 = new Player("TestPlayer", new CardList(), new CardSet(), new CardSet());
    Minion m1 = new Minion("TestMinion", Faction.Aliens, 2);
    m1.setOwner(player1);
    Action action = new Augmentation();
    action.setOwner(player1);
   
    assertEquals(2, m1.getStrength());
   
    action.play(m1, new Callback(){});
   
    assertEquals(6, m1.getStrength());
   
    player1.endTurn(new Callback(){});
   
View Full Code Here

Examples of soc.qase.state.Action

  private void init()
  {
    // movement wrappers
    angles = new Angles(0, 0, 0);
    velocity = new Velocity(0, 0, 0);
    action = new Action(false, false, false);
    currentMove = new Move(angles, velocity, action, 0);
    previousMove = new Move(angles, velocity, action, 0);
    lastMove = new Move(angles, velocity, action, 0);

    // game information
View Full Code Here

Examples of su.lafayette.udptracker.structures.Action

    long connectionId = channelBuffer.readLong(); // TODO: Можно проверять connectionId.
    int actionId = channelBuffer.readInt();
    int transactionId = channelBuffer.readInt();

    Action action = Action.byId(actionId);

    ClientRequest request;

    switch (action) {
      case CONNECT:
View Full Code Here

Examples of trackerModule.core.rulestructure.Action

    Unit state      = ship.get("State");
    Unit stateTime    = ship.get("StateTime");
    Unit stateTimeCount  = ship.get("StateTimeCount");
    Double rand  = Math.random();
   
    Action ac = ru.inProbability(rand);
    for( String str : ac.getActionMap().keySet() ){
      Object[] ob = ac.getActionMap().get(str);
           
      if( str.equalsIgnoreCase("SetState") ){
      //  System.out.println(ru.getOwnerName() + ": " + str + ": " + ob[0]);
        state.setData(ob[0]);       
        if( ob.length >= 2 ){
View Full Code Here

Examples of transientlibs.bindedobjects.core.datasets.Action

        return textCapsule.font.getWidth(textCapsule.text);
    }

    public void processRelatedAction() {

        Action currentAction = (Action) relatedNode;
//Log.info("ggag");

        if ((currentAction.reqs.isFulfilled())
                && (currentAction.reqsToActivate.isFulfilled())) {
            //Log.info("do eeet");
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.