Package hla.rti

Examples of hla.rti.LogicalTime


  /**
   * This method will attempt to enable the various time related properties
   * for the federate
   */
  private void enableTimePolicy() throws RTIexception {
    LogicalTime currentTime = convertTime(foAmbassador.getFederateTime());
    LogicalTimeInterval lookahead = convertInterval(foAmbassador
        .getFederateLookahead());

    // //////////////////////////
    // enable time regulation //
View Full Code Here


    attributes.add(longitudeHandle, longitudeValue);
    byte[] statusValule = EncodingHelpers.encodeString(flyingObject
        .getStatus().toString());
    attributes.add(statusHandle, statusValule);

    LogicalTime time = convertTime(foAmbassador.getFederateTime()
        + foAmbassador.getFederateLookahead());

    rtiAmbassador.updateAttributeValues(objectHandle, attributes,
        "Parachute: ".getBytes(), time);
  }
View Full Code Here

   */
  private void advanceTime() throws RTIexception {
    // request the advance
    foAmbassador.setAdvancing(true);

    LogicalTime newTime = convertTime(foAmbassador.getFederateTime()
        + timestep);
    rtiAmbassador.timeAdvanceRequest(newTime);

    // wait for the time advance to be granted. ticking will tell the
    // LRC to start delivering callbacks to the federate
View Full Code Here

     */ 
    private void advanceTime() throws RTIexception
        // request the advance 
        earthAmbassador.setAdvancing(true);
       
        LogicalTime newTime = convertTime(earthAmbassador.getFederateTime() + 1.0)
        rtiAmbassador.timeAdvanceRequest(newTime)
         
        // wait for the time advance to be granted. ticking will tell the 
        // LRC to start delivering callbacks to the federate 
        while(earthAmbassador.isAdvancing()) { 
View Full Code Here

TOP

Related Classes of hla.rti.LogicalTime

Copyright © 2018 www.massapicom. 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.