Examples of step()


Examples of org.apache.lucene.util.automaton.CharacterRunAutomaton.step()

  private boolean checkCondition(int condition, char c1[], int c1off, int c1len, char c2[], int c2off, int c2len) {
    if (condition != 0) {
      CharacterRunAutomaton pattern = dictionary.patterns.get(condition);
      int state = pattern.getInitialState();
      for (int i = c1off; i < c1off + c1len; i++) {
        state = pattern.step(state, c1[i]);
        if (state == -1) {
          return false;
        }
      }
      for (int i = c2off; i < c2off + c2len; i++) {
View Full Code Here

Examples of org.apache.ws.commons.om.impl.llom.OMNavigator.step()

        while (!navigator.isCompleted()) {
            if (navigator.isNavigable()) {
                node = navigator.next();
            } else {
                builder.next();
                navigator.step();
                node = navigator.next();
            }
            assertNotNull(node);

        }
View Full Code Here

Examples of org.ethereum.vm.VM.step()

        VM vm = new VM();
        Program program = new Program(codeB, pi);

        try {
            while(!program.isStopped())
                vm.step(program);
        } catch (RuntimeException e) {
            program.setRuntimeFailure(e);
        }

        System.out.println();
View Full Code Here

Examples of org.openpixi.pixi.physics.Simulation.step()

    // Create non-distributed simulation
    Simulation simulation = new Simulation(settings);

    for (int i = 0; i < settings.getIterations(); ++i) {
      simulation.step();
      runRunnables(stepRuns);
      runRunnables(collectRuns);

      ResultsComparator comparator = new ResultsComparator(i);
      compareResults(master, simulation, comparator);
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.CompositeOperation.step()

        CompositeOperation cop = delegate.updateGenerateOperationFromProperties(conf, new Address());

        Assert.assertEquals(cop.numberOfSteps(), 2);

        for (int i = 0; i < cop.numberOfSteps(); i++) {
            Operation step = cop.step(0);
            Assert.assertEquals(step.getOperation(), "write-attribute");
            Map<String, Object> stepProps = step.getAdditionalProperties();
            Assert.assertEquals(stepProps.size(), 2);

            if (stepProps.get("name").equals("needed")) {
View Full Code Here

Examples of org.rythmengine.internal.IContext.step()

                    patterns.put(s, p);
                }
                Matcher m = p.matcher(remain());
                if (m.matches()) {
                    s = m.group(1);
                    ctx.step(s.length());
                    ctx.enterDirectiveComment();
                    return Token.EMPTY_TOKEN;
                }
                // try <!-- }
                s = "(" + sCommentStart + "\\s*)\\}.*";
 
View Full Code Here

Examples of org.terasology.engine.modes.loadProcesses.LoadPrefabs.step()

        LoadPrefabs prefabLoadStep = new LoadPrefabs();

        boolean complete = false;
        prefabLoadStep.begin();
        while (!complete) {
            complete = prefabLoadStep.step();
        }
    }

    @Override
    public void close() throws Exception {
View Full Code Here

Examples of org.uscxml.Interpreter.step()

    // semantic xml parse error -> throws
    try {
      String xml = "<invalid />";
      Interpreter interpreter = Interpreter.fromXML(xml);
      if (interpreter.getState() != InterpreterState.USCXML_INSTANTIATED) throw new RuntimeException("");
      interpreter.step();
      throw new RuntimeException("");
    } catch (InterpreterException e) {
      System.err.println(e);
    }
View Full Code Here

Examples of r.data.internal.IntImpl.RIntSequence.step()

                            double avalue = ((ScalarDoubleImpl) a).getDouble();
                            int[] ba = bview.a.getContent();
                            RIntSequence bbs = (RIntSequence) bview.b;
                            int bbfrom = bbs.from();
                            int bbto = bbs.to();
                            int bbstep = bbs.step();
                            ValueArithmetic barith = bview.arit;

                            double res = 0;
                            int bbb = bbfrom;
                            boolean overflown = false;
View Full Code Here

Examples of se.sics.mspsim.core.MSP430.step()

          return;
        }

        try {
          while (count++ < max) {
            cpu.step(mspMote.getCPU().cycles+1);
            pc = cpu.readRegister(MSP430Core.PC);
            instruction = cpu.memory[pc] + (cpu.memory[pc + 1] << 8);
            if ((instruction & 0xff80) == MSP430.CALL) {
              depth++;
            } else if (instruction == MSP430.RETURN) {
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.