Examples of step()


Examples of com.drakulo.games.ais.core.delayed.ResearchAction.step()

  private static void researchProcess(Colony c) {
    ResearchAction research = c.getResearch();
    // If the research is null, that's because the player didn't started a
    // research. In that case, there is nothing to do.
    if (research != null) {
      research.step();
      if (research.isDone()) {
        // The research is done.
        research.getTechnology().setOwned(true);
        c.setResearch(null);
      }
View Full Code Here

Examples of com.greentea.relaxation.algorithms.art2m.Art2mAlgorithm.step()

      for (int i = 0; i < 30; ++i)
      {
         for (int j = 0; j < 30; ++j)
         {
            algorithm.step(DataUtils.asList(i, j));

            System.out.print(" " +
                    algorithm.getNetwork().getLayers().getLast().getMinActivationNeuronIndex());
         }
         System.out.println();
View Full Code Here

Examples of com.mycila.testing.core.api.Execution.step()

    static void unsetCurrentExecution() {
        if (LOGGER.canDebug()) {
            Execution execution = CURRENT_EXECUTION.get();
            if (execution != null) {
                LOGGER.debug("Removing Execution Context %s#%s for test %s#%s", execution.step(), execution.method().getName(), execution.context().introspector().testClass().getName(), execution.context().introspector().instance().hashCode());
            }
        }
        CURRENT_EXECUTION.remove();
    }
View Full Code Here

Examples of com.nr.ode.Stochsim.step()

    sinit[3]=0.0;
    Stochsim stoch = new Stochsim(sinit);

    for (k=0;k<NVAR;k++) smax[k]=-1;
    for (i=0;i<M;i++) {
      t=stoch.step();
      for (k=0;k<NVAR;k++)
        if (stoch.s[k] > smax[k]) smax[k]=stoch.s[k];
      if (i % 10 == 0) {
        j=i/10;
        tsav[j]=t;
View Full Code Here

Examples of com.nr.ran.MCintegrate.step()

      @Override
      public double[] xmap(final double[] x){
        return null;
      }
    };
    mymc.step(1000000);
    mymc.calcanswers();
//    for (i=0;i<4;i++)
//      System.out.printf(mymc.ff[i] << "  %f\n", mymc.fferr[i]);

    localflag = abs(mymc.ff[0]-SQR(PI)*R1*SQR(R2)) > 2.0*mymc.fferr[0];
 
View Full Code Here

Examples of dk.brics.automaton.RunAutomaton.step()

      if(repCode != null) {
        //System.out.println("Trying: " + type + "\t" + rep + "\t" + repCode + "\tat\t" + state);
        int newState = state;
        for(int i=0;i<repCode.length();i++) {
          char c = repCode.charAt(i);
          newState = runAut.step(newState, c);
          //System.out.println("\t" + newState);
          if(newState == -1) break;
        }
        if(newState == -1) continue;
        //System.out.println("Added: " + type + "\t" + cell.getValue());
View Full Code Here

Examples of dk.brics.automaton.State.step()

     */
    private LinkedList<State> getPath(State start, CharSequence string) {
      LinkedList<State> path = new LinkedList<State>();
      State state = start;
      for (int i=0; i<string.length(); i++) {
        state = state.step(string.charAt(i));
        if (state == null)
          return null;
        path.add(state);
      }
      return path;
View Full Code Here

Examples of edu.uci.ics.jung.algorithms.util.IterativeContext.step()

  public void step() {
    for(Layout<V,E> layout : layouts.keySet()) {
      if(layout instanceof IterativeContext) {
        IterativeContext context = (IterativeContext)layout;
        if(context.done() == false) {
          context.step();
        }
      }
    }
    if(delegate instanceof IterativeContext) {
      IterativeContext context = (IterativeContext)delegate;
View Full Code Here

Examples of fr.irit.halterego.jocular.Experiment.step()

                        {
                            exp.start();
                        }
                        else
                        {
                            exp.step();
                        }
                    }
                }
                catch(Exception e)
                {
View Full Code Here

Examples of games.stendhal.client.gui.ProgressBar.step()

 

        try {
          client.connect(server, finalPort);
          // for each major connection milestone call step()
          progressBar.step();
        } catch (final Exception ex) {
          // if something goes horribly just cancel the progress bar
          progressBar.cancel();
          setEnabled(true);
          JOptionPane.showMessageDialog(
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.