Examples of reset()


Examples of org.syrup.WorkSpace.reset()

        {

            // The first argument is the command.
            if (args[0].equals("reset"))
            {
                sp.reset();
            }
            else if (args[0].equals("in1"))
            {
                sp.set_in_1(read(i));
            }
View Full Code Here

Examples of org.teavm.classlib.java.io.TByteArrayOutputStream.reset()

        TStringBuilder result = new TStringBuilder();
        TByteArrayOutputStream out = new TByteArrayOutputStream();
        for (int i = 0; i < s.length();) {
            char c = s.charAt(i);
            if (c == '%') {
                out.reset();
                do {
                    if (i + 2 >= s.length()) {
                        throw new TIllegalArgumentException();
                    }
                    int d1 = TCharacter.digit(s.charAt(i + 1), 16);
View Full Code Here

Examples of org.teiid.internal.core.index.GammaCompressedIndexBlock.reset()

        entry.reset(word);
        entry.addRef(1);
        indexBlock.addEntry(entry);
       
        //reading entries
        indexBlock.reset();
        indexBlock.nextEntry(entry);
        indexBlock.nextEntry(entry);
    }
}
View Full Code Here

Examples of org.teiid.internal.core.index.IndexBlock.reset()

        entry.reset(word);
        entry.addRef(1);
        indexBlock.addEntry(entry);
       
        //reading entries
        indexBlock.reset();
        indexBlock.nextEntry(entry);
        indexBlock.nextEntry(entry);
    }
}
View Full Code Here

Examples of org.teiid.internal.core.index.WordEntry.reset()

    public void testAddAndRetrieveEntry() {
        IndexBlock indexBlock = new GammaCompressedIndexBlock(IIndexConstants.BLOCK_SIZE);
        WordEntry entry = new WordEntry();
        //adding entries - 256 chars
        char[] word = "12345678 abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn".toCharArray();//$NON-NLS-1$
        entry.reset(word);
        entry.addRef(1);
        indexBlock.addEntry(entry);
       
        word = "12345678 abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn abceabcdefghijklmn q".toCharArray();//$NON-NLS-1$
        entry.reset(word);
View Full Code Here

Examples of org.teiid.query.processor.BatchIterator.reset()

    BufferManager bm = BufferManagerFactory.getStandaloneBufferManager();
    bi.setBuffer(bm.createTupleBuffer(Arrays.asList(new ElementSymbol("x")), "test", TupleSourceType.PROCESSOR), true)//$NON-NLS-1$
    bi.mark();
    bi.nextTuple();
    bi.nextTuple();
    bi.reset();
    bi.nextTuple();
  }
 
  @Test public void testReset1() throws Exception {
    BatchIterator bi = new BatchIterator(new FakeRelationalNode(1, new List[] {
View Full Code Here

Examples of org.teiid.query.processor.relational.SortingFilter.reset()

        SortingFilter filter = new SortingFilter(new Count(), mgr, "test", true); //$NON-NLS-1$
        filter.initialize(dataType, dataType);
        ElementSymbol element = new ElementSymbol("val"); //$NON-NLS-1$
        element.setType(dataType);
        filter.setElements(Arrays.asList(element));
        filter.reset();
       
        // Add inputs
        for(int i=0; i<input.length; i++) {
            filter.addInputDirect(input[i], null);   
        }       
View Full Code Here

Examples of org.terasology.input.events.KeyEvent.reset()

                break;
            }
        }

        boolean consumed = event.isConsumed();
        event.reset();
        return consumed;
    }

    private boolean sendMouseEvent(MouseInput button, boolean buttonDown, Vector2i position, float delta) {
        MouseButtonEvent event;
View Full Code Here

Examples of org.terasology.input.events.MouseButtonEvent.reset()

            if (event.isConsumed()) {
                break;
            }
        }
        boolean consumed = event.isConsumed();
        event.reset();
        return consumed;
    }

    private boolean sendMouseWheelEvent(Vector2i pos, int wheelTurns, float delta) {
        MouseWheelEvent mouseWheelEvent = new MouseWheelEvent(pos, wheelTurns, delta);
View Full Code Here

Examples of org.testng.eclipse.ui.TestRunnerViewPart.reset()

          TestRunnerViewPart testRunnerViewPart = findTestRunnerViewPartInActivePage();
          if((testRunnerViewPart != null)
             && testRunnerViewPart.isCreated()
             && launch.equals(testRunnerViewPart.getLastLaunch())) {

            testRunnerViewPart.reset();
          }
        }
      });
  }
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.