Examples of currentTime()


Examples of com.jitcaforwin.extended.impl.internal.factories.trackbuffering.Clock.currentTime()

  @Test
  public void testTrackBuffer(){
    IITTrackCollection collectionMock = EasyMock.createMock(IITTrackCollection.class);
    Clock clockMock = EasyMock.createMock(Clock.class);
   
    EasyMock.expect(clockMock.currentTime()).andReturn(System.currentTimeMillis()).anyTimes();
    EasyMock.replay(collectionMock);
    EasyMock.replay(clockMock);
   
    TrackBuffering buffer = new TrackBuffering(clockMock);
    buffer.put("Test-Collection", collectionMock);
View Full Code Here

Examples of com.jitcaforwin.extended.impl.internal.factories.trackbuffering.Clock.currentTime()

  @Test
  public void testTrackBufferCleanup(){
    IITTrackCollection collectionMock = EasyMock.createMock(IITTrackCollection.class);
    Clock clockMock = EasyMock.createMock(Clock.class);
   
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(1000001l);
    EasyMock.replay(collectionMock);
View Full Code Here

Examples of com.jitcaforwin.extended.impl.internal.factories.trackbuffering.Clock.currentTime()

  public void testTrackBufferCleanup(){
    IITTrackCollection collectionMock = EasyMock.createMock(IITTrackCollection.class);
    Clock clockMock = EasyMock.createMock(Clock.class);
   
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(1000001l);
    EasyMock.replay(collectionMock);
    EasyMock.replay(clockMock);
View Full Code Here

Examples of com.jitcaforwin.extended.impl.internal.factories.trackbuffering.Clock.currentTime()

    IITTrackCollection collectionMock = EasyMock.createMock(IITTrackCollection.class);
    Clock clockMock = EasyMock.createMock(Clock.class);
   
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(1000001l);
    EasyMock.replay(collectionMock);
    EasyMock.replay(clockMock);
   
View Full Code Here

Examples of com.jitcaforwin.extended.impl.internal.factories.trackbuffering.Clock.currentTime()

    Clock clockMock = EasyMock.createMock(Clock.class);
   
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(1000001l);
    EasyMock.replay(collectionMock);
    EasyMock.replay(clockMock);
   
    TrackBuffering buffer = new TrackBuffering(clockMock);
View Full Code Here

Examples of com.jitcaforwin.extended.impl.internal.factories.trackbuffering.Clock.currentTime()

   
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(0l);
    EasyMock.expect(clockMock.currentTime()).andReturn(1000001l);
    EasyMock.replay(collectionMock);
    EasyMock.replay(clockMock);
   
    TrackBuffering buffer = new TrackBuffering(clockMock);
    buffer.put("Test-Collection", collectionMock);
View Full Code Here

Examples of com.opengamma.timeseries.date.localdate.LocalDateDoubleEntryIterator.currentTime()

    while (iter1.hasNext()) {
      final int date = iter1.nextTimeFast();
      final Double value2 = ts2.getValue(date);
      if (value2 == null || Math.abs(value2) < ZERO) {
        if (getMode().equals(CalculationMode.STRICT)) {
          throw new TimeSeriesException("No data in second series for time " + iter1.currentTime());
        }
      } else {
        times[i] = iter1.currentTimeFast();
        returns[i++] = Math.log(iter1.currentValue() / value2);
      }
View Full Code Here

Examples of com.opengamma.timeseries.date.localdate.LocalDateDoubleEntryIterator.currentTime()

    while (iter1.hasNext()) {
      final int date = iter1.nextTimeFast();
      final Double value2 = ts2.getValue(date);
      if (value2 == null || Math.abs(value2) < ZERO) {
        if (getMode().equals(CalculationMode.STRICT)) {
          throw new TimeSeriesException("No data in second series for time " + iter1.currentTime());
        }
      } else {
        times[i] = iter1.currentTimeFast();
        returns[i++] = (iter1.currentValue() / value2 - 1);
      }
View Full Code Here

Examples of com.opengamma.timeseries.date.localdate.LocalDateDoubleEntryIterator.currentTime()

    assertEquals(29, hts.getTimeSeries().size());
    LocalDateDoubleEntryIterator iterator = hts.getTimeSeries().iterator();
    int i = 1;
    while (iterator.hasNext()) {
      iterator.next();
      assertEquals(LocalDate.of(2013, 4, i), iterator.currentTime());
      assertEquals((double)i, iterator.currentValueFast(), 0.001);
      i++;
    }
   
    hts = simulationSource.getHistoricalTimeSeries(generateId(6), null, false, null, false);
View Full Code Here

Examples of com.pointcliki.core.Entity.RenderEvent.currentTime()

    assert fRenderHook == null: "Render hook should be null";
    fRenderHook = new Minion<IEvent>(fRenderPriority) {
      @Override
      public long run(Dispatcher<IEvent> dispatcher, String type, IEvent event) {
        RenderEvent re = (RenderEvent) event;
        RenderRogue.this.run(re.graphics(), re.currentTime());
        return Minion.CONTINUE;
      }     
    };
    fParent.dispatcher().addMinion(Entity.RenderEvent.TYPE, fRenderHook);
  }
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.