Examples of State


Examples of models.enumeration.State

                assigneeChanged = !issue.assignedUserEquals(newAssignee);
                issue.assignee = newAssignee;
            }

            boolean stateChanged = false;
            State oldState = null;
            if ((issueMassUpdate.state != null) && (issue.state != issueMassUpdate.state)) {
                stateChanged = true;
                oldState = issue.state;
                issue.state = issueMassUpdate.state;
            }
View Full Code Here

Examples of name.shamansir.mvp4glayout.client.ui.state.State

        /* if (isAnonymous() && !portal.worksWithAnonymous()) {
            NavigationUtils.navigateFirstPage();
            return; // throw anonymous away
        } */
       
        final State state = builder.layoutHasStates() ? DEFAULT_LAYOUT_STATE : null;
       
        if (builder.built()) builder.reset();
       
        if ((view.getCurPortal() != null) &&
            view.getCurPortal().equals(portal)) {
View Full Code Here

Examples of net.greghaines.jesque.meta.WorkerInfo.State

        final WorkerInfo wInfo = new WorkerInfo();
        final String name = "foo";
        wInfo.setName(name);
        Assert.assertEquals(name, wInfo.getName());
        Assert.assertEquals(name, wInfo.toString());
        final State state = State.IDLE;
        wInfo.setState(state);
        Assert.assertEquals(state, wInfo.getState());
        final Date started = new Date();
        wInfo.setStarted(started);
        Assert.assertEquals(started, wInfo.getStarted());
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.TMSchema.State

        protected void paintToImage(Component c, Image image, Graphics g,
                                    int w, int h, Object[] args) {
            Skin skin = (Skin)args[0];
            Part part = skin.part;
            State state = (State)args[1];
            if (state == null) {
                state = skin.state;
            }
            if (c == null) {
                c = skin.component;
View Full Code Here

Examples of net.javlov.State

    }
  }
 
  @Override
  protected State constructObservation(Agent a) {
    State s = super.constructObservation(a);
    double[] data = (double[])s.getData();
    s.setOptionSet( stateOptions[(int)data[0]][(int)data[1]] );
    return s;
  }
View Full Code Here

Examples of net.kano.joustsim.oscar.State

    }

    private class AimConnStateListener implements StateListener {
        public void handleStateChange(StateEvent event) {
            State newState = event.getNewState();
            if (newState == State.ONLINE) {
                loggedIn = true;
                loginProcessed = true;
                if (log.isDebugEnabled()) {
                    log.debug("Connection made. Login Succesfull");
View Full Code Here

Examples of net.openai.util.fsm.State

   * </ol>
   *
   * @return
   */
  private Machine getNumericDateMachine() {
    State startState = new NamedState("START");
    State endState = new NamedState("END");
    State ntEndState = new NonTerminalEndState("NON TERMINAL END");
    endState.setEndStateFlag(true);
    ntEndState.setEndStateFlag(true);

    Machine machine = new Machine(startState);
    State monthNumState = new NamedState("MONTH_NUM");
    State monthDaySeparatorState = new NamedState("MONTH_DAY_SEP");
    State dayNumState = new NamedState("DAY_NUM");
    State dayYearSeparatorState = new NamedState("DAY_YEAR_SEP");

    Condition monthNumCondition = new IntegerRangeCondition(MIN_MONTH,
        MAX_MONTH);
    Condition mdFslashCondition = new PunctuationValueCondition('/');
    Condition mdDashCondition = new PunctuationValueCondition('-');
    Condition dyFslashCondition = new PunctuationValueCondition('/');
    Condition dyDashCondition = new PunctuationValueCondition('-');
    Condition dayNumCondition = new IntegerRangeCondition(MIN_DAY, MAX_DAY);
    Condition yearNumCondition = new IntegerRangeCondition(MIN_YEAR,
        MAX_YEAR);

    // condition that is not a fslash or dash
    Condition notFslashNotDashCondition = new CombineCondition(
        new NegateCondition(mdFslashCondition), new NegateCondition(
            mdDashCondition));

    startState.addTransition(monthNumCondition, monthNumState);
    startState.addTransition(new AnyCondition(), startState);

    monthNumState.addTransition(mdFslashCondition, monthDaySeparatorState);
    monthNumState.addTransition(mdDashCondition, monthDaySeparatorState);
    monthNumState.addTransition(new AnyCondition(), startState);

    monthDaySeparatorState.addTransition(dayNumCondition, dayNumState);
    monthDaySeparatorState.addTransition(new AnyCondition(), startState);

    dayNumState.addTransition(dyFslashCondition, dayYearSeparatorState);
    dayNumState.addTransition(dyDashCondition, dayYearSeparatorState);
    dayNumState.addTransition(notFslashNotDashCondition, ntEndState);
    dayNumState.addTransition(new AnyCondition(), startState);

    dayYearSeparatorState.addTransition(yearNumCondition, endState);
    dayYearSeparatorState.addTransition(new AnyCondition(), startState);

    endState.addTransition(new AnyCondition(), startState);
    ntEndState.addTransition(new AnyCondition(), startState);

    return machine;
View Full Code Here

Examples of net.pms.update.AutoUpdater.State

      }
    });
  }

  private void updateOnGuiThread() {
    State state = autoUpdater.getState();

    if (!SwingUtilities.isEventDispatchThread()) {
      throw new RuntimeException("Must be on event thread");
    }
View Full Code Here

Examples of net.sf.jiga.xtended.impl.game.scene.State

         * suspends the rendering timer
         *
         * @see #resume()
         */
        private void suspend() {
                State ostate = state;
                switch (State.valueOf(_timerstate.newInput(PAUSE.X))) {
                        case SUSPENDED:
                                try {
                                        final Monitor monitor = vSynch;
                                        synchronized (monitor) {
View Full Code Here

Examples of net.sourceforge.fullsync.State

   *      net.sourceforge.fullsync.fs.FileAttributes)
   */
  @Override
  public State compareFiles(final File src, final File dst) throws DataParseException {
    if (Math.floor(src.getLastModified() / 1000.0) > Math.floor(dst.getLastModified() / 1000.0)) {
      return new State(State.FileChange, Location.Source);
    }
    else if (Math.floor(src.getLastModified() / 1000.0) < Math.floor(dst.getLastModified() / 1000.0)) {
      return new State(State.FileChange, Location.Destination);
    }
    if (src.getSize() != dst.getSize()) {
      return new State(State.FileChange, Location.None);
    }
    return new State(State.NodeInSync, Location.Both);
  }
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.