1 / 17

High Level Architecture Module 1 Basic Concepts

High Level Architecture Module 1 Basic Concepts. Roy Crosbie John Zenor. California State University, Chico. High Level Architecture Module 1 Basic Concepts. Lesson 4 Basic Concepts of HLA Simulations. Continuous Continuously advances time and system state.

Mia_John
Download Presentation

High Level Architecture Module 1 Basic Concepts

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. High Level Architecture Module 1Basic Concepts Roy CrosbieJohn Zenor California State University, Chico

  2. High Level Architecture Module 1Basic Concepts Lesson 4Basic Concepts of HLA Simulations California State University, Chico

  3. Continuous Continuously advances time and system state. Time advances in increments small enough to ensure accuracy. State variables updated at each time step. Discrete System state changes only when events occur. Time advances from event to event. State variables updated as each event occurs. Continuous vs. DiscreteSimulations California State University, Chico

  4. Simulation Time Steps Continuous Dt Dt Dt Dt Dt time Discrete time Event1 Event2 Event3 California State University, Chico

  5. Simulation Objects Object (Aircraft) Attribute 1(speed) Attribute 2(position) Attribute 3(altitude) California State University, Chico

  6. Simulation Structure Federation Simulation Programs (Federates) Simulation Programs (Federates) Sim. for Objectsof Class1 Sim. for Objectsof Class2 Sim. for Objectsof Class1 Sim. for Objectsof Class3 California State University, Chico

  7. HLA Messages -- Updates Updates • Send/Receive new values of attributes at end of each time-step. • Send: Update Attribute Values • Recv: Reflect Attribute Values† • Controlling unnecessary message traffic: • Update: • Enable/Disable Attribute Relevance Advisory Switch • Turn Updates On/Off for Object Instance† • Reflect: • Enable/Disable Attribute Scope Advisory Switch • Attribute In/Out of Scope† California State University, Chico

  8. HLA Messages -- Interactions Interactions • Send/Receive Parameters describing the event when an event occurs. • Send: Send Interaction • Recv: Receive Interaction† • Controlling unnecessary message traffic: • Enable / Disable Interaction Relevance Advisory Switch • Turn Interactions On/Off† California State University, Chico

  9. Objects Publish/Subscribe Publish Object Class Subscribe Object Class Object Registration Register Object Instance† Discover Object Instance† Controlling Instance Registration: Enable/Disable Class Relevance Advisory Switch Start/Stop Registration for Object Class Interactions Publish/Subscribe Publish Interaction Class Subscribe Interaction Class Object and Interaction Registration California State University, Chico

  10. Message Order Two types of Message Ordering • TSO (Time Stamped Order ) • Messages delivered to federate in order of time stamp • RTI guarantees that no messages will be received from past • RO (Receive Order) • Messages delivered to federate in order received California State University, Chico

  11. Regulating and Constrained Federates (1) • To receive TSO messages in Time Stamped Order, federate must declare itself Time Constrained. • To send TSO messages, federate must declare itself to be Time Regulating . • By default, federates are neither time constrained nor time regulating. • To become time constrained, use RTI service Enable Time Constrained. • To become time regulating, use RTI service Enable Time Regulation. California State University, Chico

  12. Time-Constrained Federates Time Constrained Federates subscribe to time stamped (TSO) data, with messages delivered in order of time-stamps. Federate’s current logical time. GALT -- Other federates will not send messages before this time. Federate may only advance time within this interval t=0 California State University, Chico

  13. Time-Regulating Federates Time Regulating Federates publish time stamped (TSO) data, with messages delivered in order of time-stamps. Federate’s current logical time. Federate’s effective logical time. Lookahead Federate may not publish messages within this interval t=0 California State University, Chico

  14. Requesting Time Advancement • Continuous Simulations To request an advance in time, use the RTI service: Request Time Advance. RTI will notify when it’s ok to advance time by calling: Time Advance Grant † • Discrete event simulations The RTI service: Next Event Request (t1), requests time advancement to time of next event, or to t1, whichever occurs first. RTI will notify when to advance time by calling: Time Advance Grant †, and will specify the amount of the granted time advance. California State University, Chico

  15. Federates That Are Both Time Regulating and Time Constrained Federate’s current logical time. Federate’s effective logical time. Federate may only advance time within this interval Constrained: LBTS - Other federates will not send messages before this time. Regulating: Lookahead Federate will not publish messages within this interval (regulates other federates) t=0 California State University, Chico

  16. Time Regulating and Time Constrained • If a Federate sends and receives TSO data, in TSO order, it must be both time regulating and time constrained. • Time constrained: RTI prevents this federate from advancing time until it has received all messages that may be sent by other federates up to the requested time. • Time regulating: RTI prohibits other federates from advancing time until this federate has sent all the data that it is going to send before the requested time. California State University, Chico

  17. When Are Messages Received ? Messages are only received when in a time-advancing state. • A Federate is put into a time-advancing state by: • Time Advance Request OR • Next Event Request • To enable receipt of RO messages at other times: • Enable Asynchronous Delivery (Prevents excessive delay for urgent events) California State University, Chico

More Related