Examples of reset()


Examples of eu.stratosphere.pact.runtime.test.util.RandomIntPairGenerator.reset()

    }
    while (sorter.write(record) && num < 3354624);
//    System.out.println("WRITE TIME " + (System.currentTimeMillis() - startTime));
   
    // re-read the records
    generator.reset();
    IntPair readTarget = new IntPair();
   
//    startTime = System.currentTimeMillis();
    int i = 0;
    while (i < num) {
View Full Code Here

Examples of eu.stratosphere.pact.runtime.test.util.TestData.Generator.reset()

     
      final Collector<Record> collector = new DiscardingOutputCollector<Record>();
 
      // reset the generators
      generator1.reset();
      generator2.reset();
      input1.reset();
      input2.reset();
 
      // compare with iterator values
      MergeMatchIterator<Record, Record, Record> iterator =
View Full Code Here

Examples of experiments.TestMaximization.reset()

        + obj.numValueCalls + " grad=" + obj.numGradientCalls + "): ");
    for (double element : obj.params) {
      log.warn(element + " ");
    }
    //System.out.println();
    obj.reset();
    ConjugateGradient cg = new ConjugateGradient(obj.params.length);
    cg.maximize(obj);
    log.warn("Conjugate gradient found params (val="
        + obj.numValueCalls + " grad=" + obj.numGradientCalls + "): ");
    for (double element : obj.params) {
View Full Code Here

Examples of fig.basic.StopWatch.reset()

        break;
      }
      if (question.equals(""))
        continue;
     
      watch.reset();
      watch.start();
      List<Document> docs = searcher.searchDocs(question);
      watch.stop();
      for (Document doc : docs) {
        LogInfo.log(
View Full Code Here

Examples of flanagan.analysis.ErrorProp.reset()

           ErrorProp prismRI = new ErrorProp(super.prismRefractiveIndex, 0.0D);
           ErrorProp airRI = new ErrorProp(RefractiveIndex.air(super.wavelength), 0.0D);
           ErrorProp phi = new ErrorProp();
           ErrorProp angle = new ErrorProp();
           for(int i=0; i<this.numberOfTEmeasurementsPrism; i++){
                angle.reset(this.anglesRadTE[i], this.errorsRadTE[i]);
                phi = (angle.over(prismRI)).times(airRI);
                phi = ErrorProp.asin(phi);
                phi = alpha.plus(phi);
                phi = prismRI.times(ErrorProp.sin(phi));
                this.effectiveRefractiveIndicesTE[i] = phi.getValue();
View Full Code Here

Examples of flanagan.complex.Complex.reset()

  // and the wavelength (wavl).  For a pure material with a given absorption coefficient set concn
  // to unity and extCoeff to the value of the absorption coefficient.
  // The units of the concentration, the absorption coefficient and the wavelength should match.
  public static Complex absToComplex(double riReal, double extCoeff, double concn, double wavl){
      Complex ri = new Complex();
      ri.reset(riReal, extCoeff*concn*wavl/(4.0D*Math.PI));
      return ri;
  }

  // Returns the absorption coefficient ( units - reciprocal metres) that corresponds
  // to the imaginary part of a complex refractive index (riImag) at a wavelength wavl (metres)
View Full Code Here

Examples of flex.messaging.io.TypeMarshallingContext.reset()

     * such as a new header or a new body.
     */
    public void reset()
    {
        TypeMarshallingContext marshallingContext = TypeMarshallingContext.getTypeMarshallingContext();
        marshallingContext.reset();
    }

    /**
     * Returns an existing array with a length of at least the specified
     * capacity.  This method is for optimization only.  Do not use the array
View Full Code Here

Examples of fr.eolya.crawler.queue.ISourceItemsQueue.reset()

    ISourceItemsQueue sourceQueue = QueueFactory.getSourceItemsQueueInstance(type, src.getId(), con, dbName, dbCollName);
    if (sourceQueue==null) return null;
   
    if (src.isReset() || src.isClear())
      sourceQueue.reset();

    if (src.isClear()) return sourceQueue;

    // TODO : v4 - Utile ???
    if (sourceQueue.getQueueSize()>0 && !src.isRescan() && !src.isRescanFromCache())
View Full Code Here

Examples of fr.esrf.tangoatk.widget.util.chart.JLDataView.reset()

                JLDataView dvy = getY1Axis().getDataView(0);
                // Test if the image is prefectly squared
                if (values.length > 1 && (values[0].length == values[1].length))
                {
                    int length = values[0].length;
                    dvy.reset();
                    int index=0;
                    for (int i = 0; i < length; i++)
                    {
                        for (int j = 0; j < values[i].length; j++)
                        {
View Full Code Here

Examples of fr.soleil.util.ScalarAttributeListenerImpl.reset()

        assertTrue(listenerTest.isLaterNotified("readStringValueChange", 5000L));
        assertTrue(value.equals(listenerTest.getNotification("readStringValueChange")));

        // v�rifier que le remove du listener est correctement trait�
        widget.removeScalarAttributeListener(listenerTest);
        listenerTest.reset();

        devProx.write_attribute(new DeviceAttribute(attName, value + value));

        assertFalse(listenerTest.isLaterNotified("readStringValueChange", 5000L));
    }
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.