Examples of Clock


Examples of avrora.sim.clock.Clock

    protected final PinWireProbe probe;

    protected PinWire(Simulator s, int colorNum, String pinName) {

        sim = s;
        Clock clk = sim.getClock();
        state = new FiniteStateMachine(clk, startMode, modeName, 0);
        wireOutput = new WireOutput();
        wireInput = new WireInput();

        acceptsInput = false;
View Full Code Here

Examples of com.bimbr.util.Clock

        return  recorders.get(sourceId);
    }

    private static Recorder recorder(String sourceId, Config config) {
        final HttpInvoker invoker = new HttpInvoker(config.getHost(), config.getPort());
        return new AsyncHttpRecorder(sourceId, invoker, 1000, new Clock());       
    }
View Full Code Here

Examples of com.bluesoft.util.metrics.core.Clock

    assertSame( mm.getChild( "child2" ), child2 );
  }

  @Test
  public void testMetering() throws Exception {
    Clock clock = createMock( Clock.class );
    expect( clock.getUnit() ).andStubReturn( TimeUnit.MILLISECONDS );
    expect( clock.getTime() ).andReturn( 0L ).once();
    expect( clock.getTime() ).andReturn( 10L ).once();
    expect( clock.getTime() ).andReturn( 100L ).once();
    expect( clock.getTime() ).andReturn( 1000L ).times( 2 );
    expect( clock.getTime() ).andReturn( 2000L ).times( 2 );
    expect( clock.getTime() ).andReturn( 4000L ).times( 2 );
    expect( clock.getTime() ).andReturn( 5000L ).times( 2 );
    expect( clock.getTime() ).andReturn( 6000L ).times( 2 );
    expect( clock.getTime() ).andReturn( 6500L ).times( 3 );

    replay( clock );
    BasicMeteringMetric mm = new BasicMeteringMetric( "foo" );
    mm.setClock( clock );
View Full Code Here

Examples of com.bulletphysics.linearmath.Clock

      frequencyOfThoughts = params.getParValueInt("frequencyOfThoughts");   
   
      whichStepToThinkAt = (int) ((1./frequencyOfThoughts) / (1/60.));
     
      // Clock to ensure frame-rate independent motion.
      clock = new Clock();
     
      // Drop the agent and let it relax to avoid jitter.
      env.stepPhysicalSimulationBy10Seconds();
      // When agent is relaxed, start measuring the fitness.
      agent.setFitnessRelevantStartingPosition();
View Full Code Here

Examples of com.bulletphysics.linearmath.Clock

   * @param appendixId The appendix's id to which this actuator is attached.
   */
  public EvolvableBoxAgent3DActuatorServo (int appendixId) {
    super();
    this.appendixId = appendixId;
    this.clock = new Clock();
  }
View Full Code Here

Examples of com.bulletphysics.linearmath.Clock

    VideoPlugin3D.setCameraToFollowAgentPosition(agent);
    // Print info.
    System.out.println("\n\nNow simulating an agent with the genome:");
    System.out.println(genome.toString());
    // Clock to ensure frame-rate independent motion.
    clock = new Clock();
  }
View Full Code Here

Examples of com.bulletphysics.linearmath.Clock

        broadphase, solver, collisionConfiguration)
   
    collisionShapes = new ObjectArrayList<CollisionShape>();
       
    // Define clock.
    clock = new Clock();
    clock.reset();
  }
View Full Code Here

Examples of com.bulletphysics.linearmath.Clock

        broadphase, solver, collisionConfiguration)
   
    collisionShapes = new ObjectArrayList<CollisionShape>();
       
    // Define clock.
    clock = new Clock();
    clock.reset();
  }
View Full Code Here

Examples of com.codahale.metrics.Clock

  @Override
  protected void configure() {
    // NOTE: AdminServletModule (metrics-guice integration) generates invalid links, so wire up servlets ourselves

    final Clock clock = Clock.defaultClock();
    bind(Clock.class).toInstance(clock);

    final JsonFactory jsonFactory = new JsonFactory(new ObjectMapper());
    bind(JsonFactory.class).toInstance(jsonFactory);
View Full Code Here

Examples of com.google.api.client.util.Clock

    IdTokenVerifier.Builder builder =
        new IdTokenVerifier.Builder().setIssuer(ISSUER).setAudience(TRUSTED_CLIENT_IDS);
    assertEquals(Clock.SYSTEM, builder.getClock());
    assertEquals(ISSUER, builder.getIssuer());
    assertTrue(TRUSTED_CLIENT_IDS.equals(builder.getAudience()));
    Clock clock = new MyClock();
    builder.setClock(clock);
    assertEquals(clock, builder.getClock());
    IdTokenVerifier verifier = builder.build();
    assertEquals(clock, verifier.getClock());
    assertEquals(ISSUER, verifier.getIssuer());
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.