Examples of Transition


Examples of com.werken.blissed.Transition

        if ( transitionTag == null )
        {
            return;
        }

        Transition transition = transitionTag.getTransition();

        if ( transition.getGuard() != null )
        {
            throw new JellyException( "Guard already defined for transition" );
        }

        transition.setGuard( guard );
    }
View Full Code Here

Examples of dk.brics.automaton.Transition

        State last = start;

        for (int i = 0; i < length; i++) {
            last = new State();
            for (int k : alphabet) {
                tmp.addTransition(new Transition(FiniteAutomaton.getCharFromInt(k), last));
            }
            tmp = last;

        }
        last.setAccept(true);
View Full Code Here

Examples of dk.brics.jwig.analysis.graph.Transition

                    calledState = stateMachine
                            .createReqularMethodState(calledMethod);
                    // it was new, analyze it later
                    queue.add(calledMethod);
                }
                Transition lambda = new LambdaTransition();
                lambda.setTarget(calledState);
                calleeState.addSuccessor(lambda);
            } else if (isMakeURL) {
                // mark for later analysis
                stateMachine.addMakeURLLocation(expr, method, st);
            }
View Full Code Here

Examples of eas.math.fundamentalAlgorithms.graphBased.algorithms.fsm.Transition

            aut.setInitialState(state);
        }
    }
   
    private void insertTransition(FSM aut, String state1, String state2, String label) {
        aut.addTransition(new Transition(true, state1, state2, label));
    }
View Full Code Here

Examples of eas.simulation.spatial.sim2D.marbSimulation.endlAutomat.Transition

     * @param simZyk  Der Simulationszyklus.
     */
    @Override
    public void step(final Wink simZyk) {
        LinkedList<Transition> bedingungen;
        Transition aktBed;
        int aktion;
        int parameter;
        ZInfo zusatz;
        int folgeZ = 0;
        Iterator<Transition> it;
        int i = 0;
       
        while (i < this.conds.length) {
            if (this.conds[i].evaluiere(this)) {
                if (this.initial || i != this.aktAut) {
                    this.aktAut = i;
                    this.vAut[this.aktAut].setzeChanged();
                    this.vAut[this.aktAut].notifyObservers(
                            new Integer(this.aktAut));
                    this.initial = false;
                }
                break;
            }
            i++;
        }
       
        this.expAktZyklen++;
        this.fitAktZyklen[this.aktAut]++;
        this.fitRedAktZyklen[this.aktAut]++;
        this.aktivZyklen[this.aktAut]++;
        this.mutAktZyklen++;
       
        if (this.fitRedAktZyklen[this.aktAut] > this.fitRedZyklen) {
            this.setFitness(this.aktAut,
                            (int) (this.getFitness()[this.aktAut]
                                    / this.fitRedWert));
            this.fitRedAktZyklen[this.aktAut] = 0;
        }
       
        if (simZyk.getLastTick() % this.fitZyklen == 0) {
            this.befehle.clear();
            this.befehle.add(new Integer(this.lastBf));

            this.setFitness(this.aktAut,
                            this.getFitness()[this.aktAut]
                            + this.fitVs[this.aktAut].fitness(
                                    (RobEA) this));
        }

        if (this.umg.existsPlugin(new EvolutionPluginCompletelyEvolvable().id())) {
            if (this.mutAktZyklen > this.mutZyklen) {
                this.mutV = true;
                this.mutiere();
                this.mutAktZyklen = 0;
                this.mutV = false;
                GlobaleMARBVariablen.setVMutationInLetztemZyklus(true);
            } else {
                this.mutV = false;
                GlobaleMARBVariablen.setVMutationInLetztemZyklus(false);
            }
           
            // Mutieren der Bedingungen deaktiviert.
            // if (this.condMutAktZyklen >
            // this.pars.getParWertLong().getCondMutZyk()) {
            // this.mutiereBeds();
            // this.condMutAktZyklen = 0;
            // }
        }
       
        if (this.aktZustand[this.aktAut] == null) {
            this.aktZustand[this.aktAut]
                            = this.vAut[this.aktAut].holeStartzustand();
        }

        if (this.isSelektiert()) {
            if (this.aktZustand[this.aktAut] != null) {
                this.vAut[this.aktAut].setzeChanged();
                this.vAut[this.aktAut].notifyObservers(
                        this.aktZustand[this.aktAut]);
            }
        }

        if (this.aktZustand[this.aktAut] != null) {
            zusatz = this.aktZustand[this.aktAut].getInfo();
            aktion = zusatz.getAktion();
            parameter = zusatz.getParam();

            this.gesamtAktion(aktion, parameter);
           
            this.lastBf = aktion;
           
            bedingungen = zusatz.getBeds();
            it = bedingungen.iterator();
            this.aktZustand[this.aktAut] = null;
            while (it.hasNext() && folgeZ == 0) {
                aktBed = it.next();
                if (aktBed.evaluiere(this)) {
                    folgeZ = aktBed.getFolgezustand();
                    this.aktZustand[this.aktAut]
                        = this.vAut[this.aktAut].holeKnoten(
                                new Integer(folgeZ));
                }
            }
View Full Code Here

Examples of fmg.fmg8.endlAutomat.Transition

            int koordX = this.links;
            int koordY = this.oben;
           
            int kX;
            int kY;
            Transition bed;
            int folgeZustand;
            String bedingung;
            int xAusgleich;
            int zaehler = 0;
           
            // Knoten
            it = knotenListe.iterator();
            while (it.hasNext()) {
                knot = it.next();

                if (this.gesetzteKn.containsKey(knot.holeName())) {
                    kX = (int) this.gesetzteKn.get(knot.holeName()).x;
                    kY = (int) this.gesetzteKn.get(knot.holeName()).y;
                    this.setzeKnoten(knot,
                                     darstellung,
                                     kX,
                                     kY,
                                     (Knoten) ausgKn);

                    if (g.istStartZ(knot)) {
                        darstellung.hinzuPfeil(kX - 60,
                                               kY - 60,
                                               kX - 45,
                                               kY - 45,
                                               0.5,
                                               false);
                    }
                } else {
                    this.setzeKnoten(knot,
                                     darstellung,
                                     koordX,
                                     koordY,
                                     (Knoten) ausgKn);

                    this.gesetzteKn.put(knot.holeName(),
                                        new Vektor2D(koordX, koordY));

                    if (g.istStartZ(knot)) {
                        darstellung.hinzuPfeil(koordX - 60,
                                               koordY - 60,
                                               koordX - 45,
                                               koordY - 45,
                                               0.5,
                                               false);
                    }

                    zaehler++;
                   
                    if (zaehler < Math.ceil(Math.sqrt(knAnzahl))) {
                        koordX = koordX + gitterX;
                    } else {
                        koordX = this.links;
                        koordY = koordY + gitterY;
                        zaehler = 0;
                    }
                }
            }

            // Kanten
            it1 = knotenListe.iterator();
            while (it1.hasNext()) {
                knot1 = (Knoten) it1.next();
                koord1 = (Vektor2D) this.gesetzteKn.get(knot1.holeName());

                it2 = (new ArrayList<Integer>(
                                knot1.holeNachfolger().keySet())).iterator();
                while (it2.hasNext()) {
                    boolean gebogen = true;
                   
                    knot2 = g.holeKnoten((Integer) it2.next());
                    koord2 = (Vektor2D) this.gesetzteKn.get(knot2.holeName());
                    Condition cond
                        = knot1.getInfo().getTransZuZustand(
                                knot2.holeName()).get(0).getCond();
                    double staerke = SonstMeth.condStrength(cond,
                                                   Konstanten.STAERKE_ERST,
                                                   Konstanten.STAERKE_ZWEIT);
                   
                    if (koord1.distanz(koord2) < 140
                            && !koord1.equals(koord2)) {
                        gebogen = false;
                    }
                   
                    darstellung.hinzuPfeil(
                            (int) koord1.x,
                            (int) koord1.y,
                            (int) koord2.x,
                            (int) koord2.y,
                            staerke,
                            gebogen);
                }
            }

            // Kantenbeschriftungen
            it1 = knotenListe.iterator();
            while (it1.hasNext()) {
                int kantNum = 1;
                knot1 = (Knoten) it1.next();
                koord1 = this.gesetzteKn.get(knot1.holeName());

                it3 = ((ZInfo) knot1.getInfo()).getBeds().iterator();
                while (it3.hasNext()) {
                    Polygon p = new Polygon();
                    bed = it3.next();
                    folgeZustand = bed.getFolgezustand();
                    bedingung = bed.getCond().toString();
                    knot2 = g.holeKnoten(new Integer(folgeZustand));
                    koord2 = this.gesetzteKn.get(knot2.holeName());

                    p.addPoint((int) koord1.x, (int) koord1.y);
                    p.addPoint((int) koord2.x, (int) koord2.y);
View Full Code Here

Examples of fr.irit.halterego.rrl_ggp.util.Transition

                List<Element> states = root.getChildren("state");
                SerializableState state = getState(states.get(0));
                SerializableAction action = actions.get(step);
                if(action != null)
                {
                    transitions.add(new Transition(state,action));
                }
               
                step++;
            }
        }
View Full Code Here

Examples of gwt.mosaic.client.effects.Transition

  @UiHandler(value = { "button1", "button2", "button3", "button4" })
  public void onClickEvent(ClickEvent e) {
    final Widget w = (Widget) e.getSource();

    Transition transition = new Transition(new Quadratic(),
        Type.EASE_IN_OUT) {

      int initialWidth = w.getElement().getClientWidth()
          - WidgetHelper.getBoxModel(w).getPaddingWidthContribution();

      @Override
      protected void onUpdate(double progress) {
        WidgetHelper.setPreferredWidth(w,
            (int) ((1.0 - progress) * initialWidth) + "px", true);
      }

      @Override
      protected void onComplete() {
        w.setVisible(false);
        WidgetHelper.setPreferredWidth(w, null);
        WidgetHelper.invalidate(w, true);
      }
    };

    transition.run(250);
  }
View Full Code Here

Examples of javafx.animation.Transition

        if (animate) {
            // lets animate the thumb transition
            final double startX = thumb.getLayoutX();
            final double startY = thumb.getLayoutY();
            Transition transition = new Transition() {
                {
                    setCycleDuration(Duration.millis(200));
                }

                @Override protected void interpolate(double frac) {
                    if (!Double.isNaN(startX)) {
                        thumb.setLayoutX(startX + frac * (endX - startX));
                    }
                    if (!Double.isNaN(startY)) {
                        thumb.setLayoutY(startY + frac * (endY - startY));
                    }
                }
            };
            transition.play();
        } else {
            thumb.setLayoutX(endX);
            thumb.setLayoutY(endY);
        }
    }
View Full Code Here

Examples of jsx.style.property.Transition

     * </p>
     *
     * @return
     */
    protected static final Transition transit() {
        return new Transition();
    }
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.