《《模拟时间原理》PPT课件.ppt》由会员分享,可在线阅读,更多相关《《模拟时间原理》PPT课件.ppt(24页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、HLA-Time Management 陳昱豪OutlinelBasic Concepts of HLA SimulationslTime Management 簡介lHLA 模擬時間原理Basic Concepts of HLA SimulationslHLA 簡介lHLA 元件與服務lFederate的規則TM方面lContinuous vs.Discrete SimulationslSimulation Time StepslTime steps&PseudocodeHLA 簡介簡介lHLA(High Level Architecture)是一個整合介面,用來結合各種不同的電腦模擬單位成
2、為一個整體模擬環境。lHLA也可以擴充於原本的模擬架構。l三個重要名詞定義:Federation:由各個模擬單位所組合而成的模擬系統。Federate:各個獨立的模擬單位。Federation execution:federation的執行期間HLA 元件與服務元件與服務lFederation RuleslInterface SpecificationlObject Model Template(OMT)lHLA定義六種型態的服務群組Federate的的規則規則TM方面方面l規則 10:模擬時間管理(Time Management)Federates 必須能夠處理其所模擬的當地時間(local
3、 time),使得此時間可以與Federation內其他federate的時間相互協調進行資料的交換:u一個Federation的所有模擬系統(federates)必須能夠處理其所模擬的當地時間,彷彿它們是在使用同一個模擬時間系統內。u一個模擬系統的內部可以依其需要來管理模擬時間,只要它能與Federation內的其它模擬系統達到一致便可以。Continuous vs.DiscreteSimulationsSimulation Time StepsTime steps&PseudocodeTime Management 簡介簡介lTime Management目的lTime Managemen
4、t 是用來協調Federates之間的Logical timelTime Management的另一個觀點lTime Management設法適合滿足單一 Federation所使用的各種技術Time Management目的目的l協調模擬時間來完成演習進行:控制演習邏輯時間的進行以及協調邏輯時間與真實時間的關係。將事件的發生依時間關係來傳遞。支援演習模擬當中的事件因果關係。支援federates之間不同的訊息排序方式與網路傳送需求。Time Management 是用來協調是用來協調Federates之間的之間的Logical timel最基本問題是確保下面兩者情況之一的成立:沒有一個fed
5、erate會收到它的過去時間所發生的事件(保守的方式)。當一個federate收到它的過去時間所發生的事件使得現在的狀態變成不正確,但是因為federate的推演已經超過該時間點使得它必須倒推回到(roll back)該時間點(樂觀的方式)。Time Management的另一個觀點的另一個觀點l另一種方式就是完全忽略時間的管理(也就是DIS類型的“即時性”模擬系統所使用的方式),而將收到該事件的時間視為該事件的發生時間-Federate時間是由它的host wall clock所產生。此法不會保證事件的因果關係會被遵守。如果網路傳輸延遲時間能保證限制於某定量時間內,此方法尚可被人類感官所接受
6、。lHLA介面規格將Time management特徵化為由每一個federate來自行設定兩個布耳變數(Boolean switches):Time-regulatingTime-constrainedTime Management設法適合滿足單一設法適合滿足單一 Federation所使用的各種技術所使用的各種技術HLA 模擬時間原理模擬時間原理lTime in Distributed SimulationslSimulations Supported by the HLAlThe Need for Time ManagementlTime StampslLogical TimelLogi
7、cal View of TM ServiceslTime Management MechanismsTime in Distributed SimulationslPhysical timeTime in the physical system,that is,the system being modeled by the simulationlSimulation time The simulators representation of physical timelWallclock time Time when the simulator is executedSimulations S
8、upported by the HLAlScaled real-time simulations(Time-Step)Have a linear relation T=S*W where W is a duration in wallclock time,T the corresponding duration in simulation time,and S is a scale factorIf S=1,we have a real-time simulation lAs-fast-as-possible simulations(Event-driven)When one attempts
9、 to complete the simulation as quickly as possible,so execution is not paced to have a direct relationship to wallclock timeThe Need for Time ManagementlA simulator may incorrectly reproduce temporal aspects of the real world system being modeledlRepeated executions of the simulation with the same i
10、nitial state and external inputs might give entirely different resultsTime StampslTemporal anomalies are eliminated by assigning a time stamp(in simulation time)to each event and ensuring that events are delivered to the federate in time-stamp order(TSO)lThe time management services ensure a federat
11、e will not receive an event in its past,i.e.,an event with time stamp less than its current federate timeLogical TimelFederate time is the current simulation time of a federatelLogical time is how federate time is called for federates that can send or receive TSO messages to distinguish these federa
12、tes from those deriving federate time directly from wallclock timelDuring the execution of a federation,different federates may have different logical time valuesLogical View of TM ServicesTime Management MechanismslEvent-drivenThe federate processes events in time-stamp order lTime-steppedEach time
13、 advance of the federate is in fixed time steplParallel discrete-event simulationFederates on multiprocessor systems are synchronized using a conservative or an optimistic protocollWallclock-time drivenFederate time is derived directly from w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