New version page

Module 1 Basic Concepts

This preview shows page 1-2-19-20 out of 20 pages.

View Full Document
View Full Document

End of preview. Want to read all 20 pages?

Upload your study docs or become a GradeBuddy member to access this document.

View Full Document
Unformatted text preview:

High Level Architecture Module 1 Basic ConceptsSlide 2Types of Simulation ModelsTime-Stepped Example: HelloWorldTime Management SchemesLogical Time RestrictionsTime-Constrained FederateSynchronization of Logical Time to Real TimeSending and Receiving EventsRegulating and Constrained FederatesLate Arriving FederateRequirements for TSO DeliveryReceiving EventsTime Regulation and Constraint FunctionsSlide 15Slide 16Slide 17Slide 18Federation RulesSlide 20High Level Architecture Module 1Basic ConceptsCalifornia State University, ChicoRoy CrosbieJohn Zenor01/14/19 California State University, Chico 2High Level Architecture Module 1Management of TimePart 601/14/19 California State University, Chico 3Types of Simulation Models•Types of Simulation Models–Continuous Models–Discrete Models•Types of Simulation Implementations–Event Driven Implementations–Time-Stepped Implementations–Real-Time Implementations–Scaled Real-Time Implementations–Non Real-Time Implementations01/14/19 California State University, Chico 4Time-Stepped Example: HelloWorld•Continuous Model of a Discrete Process•Time-Stepped Implementation•Non Real-Time–No correlation with wall clock time•Uses Events to Communicate Existence of Countries•Original Model Built Assuming That Each Federate Starts at Time 001/14/19 California State University, Chico 5Time Management Schemes•No Time Management–Each Federate Advances Time at Its Own Pace•Conservative Synchronization–Federates Advance Time Only When Guaranteed That No Past Data Will Be Received•Optimistic Synchronization–Free to Advance Logical Time, May Have Roll-back•Activity Scan–Advance Time by Mutual Agreement With Other Federates01/14/19 California State University, Chico 6Logical Time Restrictions •Initial Value•Value Not Tied to Any System of Units•Well Ordered•Always Greater Than (or equal to) Initial Time•Time is Effectively Discrete•Has Special Value of Positive Infinity that is Greater Than Any Other Value01/14/19 California State University, Chico 7Time-Constrained Federate•TSO Events Delivered in Time-Stamp Order–Irrespective of Order in Which Originating Events are Sent•No Event Delivered With Time-Stamp Less Than Current Logical Time for Federate01/14/19 California State University, Chico 8Synchronization of Logical Time to Real TimeCurrent Logical TimeCurrent Logical TimeUpdate Calculations CompleteUpdate Calculations Completed and SentWait Until End of Time StepSend Update,Request Time Advance Time Advance GrantedAll Data Received For This Time StepTime Advance GrantedUpdate Received From Time Managing FederateCase 2: Time Advance Delayed Until Update Received from Time Managing FederateCase 1: Update Delayed Until Clock Advances to End of Time Step01/14/19 California State University, Chico 9Sending and Receiving Events•Sending Events–Update Attribute Values–Send Interaction–Delete Object Instance•Receiving Events–Reflect Attribute Values†–Reflect Interaction†–Remove Object Instance††01/14/19 California State University, Chico 10Regulating and Constrained Federates regulatingregulating and constrainedregulating and constrainedconstrainedregulating and constraineddefault0515253545551020304050Lower Bound Time Stamp(LBTS)LookaheadFederate #1Federate #2Federate #3Federate #4Federate #5Federate #6LATE ARRIVING - NOT YET JOINEDWithin LBTSBeyondLBTSTaken from the Hands-On Practicum01/14/19 California State University, Chico 11Late Arriving Federateregulatingregulating and constrainedregulating and constrainedconstrainedregulating and constraineddefault0515 25 35 45 5510 20 30 40 50Federate #1Federate #2Federate #3Federate #4Federate #5Federate #6Assigned TimeTaken from the Hands-On Practicum01/14/19 California State University, Chico 12Requirements for TSO Delivery•Sender Must be Time Regulating•Receiver Must be Time Constrained•Message Must be Designated TSO01/14/19 California State University, Chico 13Receiving EventsF I F O R e c e i v e Q u e u eP r i o r i t y T i m e - S t a m p Q u e u eP e r F e d e r a t e Q u e u e sR e c e i v e o r d e r e d e v e n t s a r e q u e u e d a s t h e y a r r i v e ( i . e . , o n a f i r s t - c o m e - f i r s t - s e r v e b a s i s ) . T h e F I F O q u e u e w i l l b e d r a i n e d i f t h e f e d e r a t e p r o v i d e s s u f f i c i e n t t i m e t o l i b R T I .T i m e - s t a m p o r d e r e d e v e n t s a r e q u e u e d b a s e d o n t h e a s s o c i a t e d t i m e v a l u e . T h e q u e u e w i l l b e d r a i n e d u p t o a n d i n c l u d i n g m e s s a g e s a t t h e c u r r e n t f e d e r a t e t i m e i f t h e f e d e r a t e p r o v i d e s s u f f i c i e n t t i m e t o l i b R T I .Taken from the Hands-On Practicum01/14/19 California State University, Chico 14Time Regulation and Constraint FunctionsenableTimeRegulation() enableTimeConstrained()timeRegulationEnabled†() timeConstrainedEnabled†()disableTimeRegulation() disableTimeConstrained()queryFederateTime()queryLookahead()queryLBTS() modifyLookahead()queryMinNextTimeEvent()01/14/19 California State University, Chico 15Federation ManagementLife CycleRTIcreateFederationExecution()joinFederationExecution()resignFederationExecution()destroyFederationExecution()joinFederationExecution()resignFederationExecution()Taken from the Hands-On Practicum01/14/19 California State University, Chico 16Federation ManagementSynchronizationRTIregisterFederationSynchronizationPoint()synchronizationPointAchieved()federationSynchronized()announceSynchronizationPoint()synchronizationPointRegistrationSucceeded()announceSynchronizationPoint()synchronizationPointAchieved()federationSynchronized()Taken from the Hands-On Practicum01/14/19 California State University, Chico 17Federation ManagementSaveRTIrequestFederationSave()federateSaveBegun()federationSaved()initiateFederateSave()federateSaveComplete()initiateFederateSave()federateSaveBegun()federateSaveComplete()federationSaved()Taken from the Hands-On Practicum01/14/19 California State University, Chico 18Federation ManagementRestoreRTIrequestFederationRestore()federateRestoreComplete()requestFederationRestoreSucceeded()federationRestoreBegun()initiateFederateRestore()federationRestored()federationRestoreBegun()initiateFederateRestore()federateRestoreComplete()federationRestored()Taken from the


Loading Unlocking...
Login

Join to view Module 1 Basic Concepts and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Module 1 Basic Concepts and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?