Examples of reset()


Examples of appeng.api.storage.data.IAEFluidStack.reset()

  @Override
  public IAEFluidStack empty()
  {
    IAEFluidStack dup = copy();
    dup.reset();
    return dup;
  }

  @Override
  public boolean fuzzyComparison(Object st, FuzzyMode mode)
View Full Code Here

Examples of appeng.api.storage.data.IAEItemStack.reset()

          for (IAEItemStack out : plan)
          {
            IAEItemStack m = null;

            IAEItemStack o = out.copy();
            o.reset();
            o.setStackSize( out.getStackSize() );

            IAEItemStack p = out.copy();
            p.reset();
            p.setStackSize( out.getCountRequestable() );
View Full Code Here

Examples of barsuift.simLife.message.PublisherTestHelper.reset()

        date.addMillis(1);
        assertEquals(1, publisherHelper.nbUpdated());
        assertEquals(1, publisherHelper.getUpdateObjects().size());
        assertEquals(null, publisherHelper.getUpdateObjects().get(0));

        publisherHelper.reset();
        date.addMillis(1);
        assertEquals(1, publisherHelper.nbUpdated());
        assertEquals(1, publisherHelper.getUpdateObjects().size());
        assertEquals(null, publisherHelper.getUpdateObjects().get(0));
View Full Code Here

Examples of beaver.comp.io.SrcReader.reset()

    }
    catch (Exception e)
    {
      // Error(s) in source. Try to build anyway and compiler will print erorr reports.
    }
    src.reset();
    Log log = new Log();
    compile(src, options, log);
    log.report(grammar_file.getName(), src);
  }
 
View Full Code Here

Examples of brickhouse.udf.collect.CollectMaxUDAF.MapCollectMaxUDAFEvaluator.MapAggBuffer.reset()

            lastValue--;
    }
   
    Assert.assertEquals( CollectMaxUDAF.DEFAULT_MAX_VALUES , valueMap.size() );

    buffer.reset();
    for(int i=0; i<1000; i++) {
      int rand = (int) (Math.random()*10000.00);
      key.set(" Key # " + i);
      val.set( rand);
        buffer.addValue(key, val)
View Full Code Here

Examples of ca.eandb.jmist.framework.BoundingBoxBuilder2.reset()

        for (int tri = 0; tri < f.decomp.length; tri += 3) {
          Point2 a = T.times(texCoords.get(f.texIndices[f.decomp[tri]]));
          Point2 b = T.times(texCoords.get(f.texIndices[f.decomp[tri + 1]]));
          Point2 c = T.times(texCoords.get(f.texIndices[f.decomp[tri + 2]]));

          builder.reset();
          builder.add(a);
          builder.add(b);
          builder.add(c);

          Box2 bound = builder.getBoundingBox();
View Full Code Here

Examples of ca.eandb.jmist.framework.random.RepeatableRandom.reset()

    }

    private Path mutateImagePoint(Path path, double width) {
      RepeatableRandom seq = seqX.get().cloneSequence();
      seqY.set(seq);
      seq.reset();

      seq.mutate(width);
      Point2 p      = RandomUtil.canonical2(seq);
      seq.mark();
View Full Code Here

Examples of ca.nengo.model.Node.reset()

   */
  public void reset(boolean randomize) {
    Iterator<String> it = myNodeMap.keySet().iterator();
    while (it.hasNext()) {
      Node n = myNodeMap.get(it.next());
      n.reset(randomize);
    }
  }

  /**
   * @param use Use GPU?
View Full Code Here

Examples of ca.nengo.model.impl.NetworkImpl.reset()

   
    net.getSimulator().run(0.0f, 1.0f, 0.001f);
   
    float[][] results1 = p.getData().getValues();
   
    net.reset(false);
   
    net.getSimulator().run(0.0f, 1.0f, 0.001f);
   
    float[][] results2 = p.getData().getValues();
   
View Full Code Here

Examples of ca.nengo.model.nef.NEFNode.reset()

        throw new StructuralException(
          "To find decoders using this method, all Nodes must support RATE simulation mode");
      }

      for (int i = 0; i < evalSignals.length; i++) {
        node.reset(false);
        float[][] vals = evalSignals[i].getValues();
        float[] times = evalSignals[i].getTimes();
        float dt = times[1] - times[0]; //note: we assume dt is the same across the signal
       
        result[i] = new float[times.length];
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.