Examples of State


Examples of org.trzcinka.intellitrac.model.tickets.State

    toolWindowComponent.appendTextToComment(text);
  }

  @Override
  public void update(AnActionEvent e) {
    State state = TicketsModel.getInstance().getCurrentState();
    boolean enabled = state == State.TICKET_EDITOR;
    e.getPresentation().setEnabled(enabled);
  }
View Full Code Here

Examples of org.yinwang.pysonar.State

    public Type superclass;


    public ClassType(@NotNull String name, @Nullable State parent) {
        this.name = name;
        this.setTable(new State(parent, State.StateType.CLASS));
        table.setType(this);
        if (parent != null) {
            table.setPath(parent.extendPath(name));
        } else {
            table.setPath(name);
View Full Code Here

Examples of org.zanata.webtrans.shared.model.ValidationAction.State

                getValidationFactory().getAllValidationActions().values();

        for (ValidationAction valAction : allValidations) {
            String name = valAction.getId().name();
            if (customizedValidations.containsKey(name)) {
                State persistedState =
                        State.valueOf(customizedValidations.get(name));
                valAction.setState(persistedState);
            }
        }
        return allValidations;
View Full Code Here

Examples of pl.edu.amu.wmi.daut.base.State

     * Pusty automat ktory ma byc konkatenacja pierwszych 2 automatow.
     */
    private void concatenate(AutomatonSpecification first,
            AutomatonSpecification second, AutomatonSpecification automaton) {

        State initialStateL = automaton.addState();
        State finalStateL = automaton.addState();
        automaton.markAsInitial(initialStateL);
        automaton.insert(initialStateL, first);
        for (State q : automaton.allStates()) {
            if (automaton.isFinal(q)) {
               automaton.addTransition(q, finalStateL, new EpsilonTransitionLabel());
View Full Code Here

Examples of ptolemy.domains.fsm.kernel.State

            _debug("Firing " + getFullName(), " at time " + getModelTime());
        }
        FSMActor controller = getController();
        // Read the inputs from the environment.
        controller.readInputs();
        State st = controller.currentState();

        // Chose a preemptive transition, if there is one,
        // and execute its choice actions.
        // The choice actions are the outputActions, not the setActions.
        Transition tr = controller.chooseTransition(st
                .preemptiveTransitionList());
        _enabledTransition = tr;

        // If a preemptive transition was found, prefire and fire
        // the refinements of the transition, and then return.
        if (tr != null) {
            if (_debugging) {
                _debug("Preemptive transition is enabled.");
            }
            Actor[] actors = tr.getRefinement();
            if (actors != null) {
                for (int i = 0; i < actors.length; ++i) {
                    if (_stopRequested) {
                        break;
                    }
                    if (_debugging) {
                        _debug("Prefire and fire the refinement of the preemptive transition: "
                                + actors[i].getFullName());
                    }
                    if (actors[i].prefire()) {
                        actors[i].fire();
                        _actorsFired.add(actors[i]);
                    }
                }
            }
            controller.readOutputsFromRefinement();
            return;
        }

        // There was no preemptive transition, so we proceed
        // to the refinement of the current state.
        Actor[] actors = st.getRefinement();
        if (actors != null) {
            for (int i = 0; i < actors.length; ++i) {
                if (_stopRequested) {
                    break;
                }
                if (_debugging) {
                    _debug("Fire the refinement of the current state: ",
                            actors[i].getFullName());
                }
                actors[i].fire();
                _actorsFired.add(actors[i]);
            }
        }
        // Mark that this state has been visited.
        st.setVisited(true);

        // Read the inputs from the environment.
        controller.readInputs();
        // Read the outputs from the refinement.
        controller.readOutputsFromRefinement();

        // NOTE: we assume the controller, which is an FSM actor, is strict.
        // That is, the controller will only fire when all inputs are ready.
        // NOTE: There seems to be a problem. In particular, if some inputs are
        // unknown before this modal model fires, the transition is not checked.
        // This suggest that we might need another firing if some inputs later
        // become known so that to ensure that no transition is missed.
        // NOTE: this is saved by the _hasIterationConverged() method
        // defined in the FixedPointDirector, where it ensures that no receivers
        // will change their status and until then an iteration is claimed
        // complete.
        Iterator inputPorts = controller.inputPortList().iterator();

        while (inputPorts.hasNext()) {
            IOPort inputPort = (IOPort) inputPorts.next();
            if (!inputPort.isKnown()) {
                return;
            }
        }

        // See whether there is an enabled transition.
        tr = controller.chooseTransition(st.nonpreemptiveTransitionList());
        _enabledTransition = tr;
        if (tr != null) {
            if (_debugging) {
                _debug("Transition: " + tr.getName() + " is enabled.");
            }
View Full Code Here

Examples of rationals.State

            Automaton automaton=m_automataByProperty.get(replacement.getKey().getProperty());
            boolean isOfNegativePolarity=(replacement.getValue() instanceof OWLObjectComplementOf);
            // Generate states of the automaton
            Map<State,OWLClassExpression> statesToConcepts=new HashMap<State,OWLClassExpression>();
            for (Object stateObject : automaton.states()) {
                State state=(State)stateObject;
                if (state.isInitial())
                    statesToConcepts.put(state,replacement.getValue());
                else {
                    OWLClassExpression stateConcept=dataFactory.getOWLClass(IRI.create("internal:all#"+(firstReplacementIndex++)));
                    if (isOfNegativePolarity)
                        stateConcept=stateConcept.getComplementNNF();
View Full Code Here

Examples of run.acceptance.support.State

//        runAcceptance( ReaderUtils.readFile( fileName ), System.out );
        }

    public static void runAcceptance( String content, PrintStream out )
        {
        State state = new State();
        for (ScriptElement e: new ScriptParser().parse( content ))
            {
            String c = e.getCommand(), b = e.getBody();
            if (c.equals( "ruleset" ))
                state.setRulesFromString( b );
            else if (c.equals( "rdf" ))
                state.setModelfromString( b );
            else if (c.equals( "expect" ))
                state.expectModel( b );
            else if (c.equals( "title" ))
                state.addTitle( collapse( e.getArguments() ) );
            else if (c.equals( "comment" ))
                state.addComment( b );
            else throw new RuntimeException( "don't understand command: " + c );
            }
        state.displayResults( out );
        }
View Full Code Here

Examples of se.sics.cooja.Mote.State

      int moteNr = Integer.parseInt(mote);
      if (moteNr < 0 || simulation.getMotesCount() <= moteNr) {
        return createErrorMessage("Bad mote ID specified: " + moteNr);
      }

      State state = simulation.getMote(moteNr).getState();
      if (state == State.DEAD)
        return XML_OK_START + 0 + XML_OK_END;
      return XML_OK_START + 1 + XML_OK_END;

    } else if (type.equals("time")) {
View Full Code Here

Examples of stanfordlogic.jocular.rlcpp.State

        w.setNumberOfStates(observation.intArray[1]);
        // Se lee de fichero el tipo de algoritmo que se va usar y se almacena
        // en funcion_apr
        loadConfigAgent("config_agent.cfg");
        // Se inicializa el estado
        State s = new State();
        s.discrete = true;
        s.discreteState = observation.intArray[0];
        // Se inicializa el vector de acciones
        actions = new stanfordlogic.jocular.rlcpp.Action[2];
        actions[0] = new stanfordlogic.jocular.rlcpp.Action();
View Full Code Here

Examples of stephencarmody.k8.physics.State

        Log.setLogFile("C:/physics.log");
        Application.setTitle("Physics");
        Application.initialise(400, 300);
        wood = new Texture("/stephencarmody/physics/texture/blonde-wood.jpg");
        new User();
        new State(100f, 0f);
        Application.run();
      } catch ( Throwable t ) {
        String msg = t.toString() + "\n\t";
        StackTraceElement[] stack = t.getStackTrace();
        for ( StackTraceElement s : stack ) msg += "at " + s.getClassName() + "." + s.getMethodName()+ "\n\t";
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.