《模拟分层耦合模型在快速模式ppt课件》由会员分享,可在线阅读,更多相关《模拟分层耦合模型在快速模式ppt课件(9页珍藏版)》请在金锄头文库上搜索。
1、Simulate coupled model in real time mode- centralized wayRTCentralCoord CoupledSimulator1 Atoimc1CoupledSimulator3 Atoimc3CoupledSimulator2 Atoimc2simulators.tellAll(initialize“)simulators.AskAll(“nextTN)myThread.sleep( nextTN currentTime)simulators.tellAll(computeInputOutput“)simulators.tellAll(sen
2、dMessages)simulators.tellAll(DeltFunc“)putMessageputMessageputMessageSequence Diagram of InitializationRTcoordinatorTime synchronizationAtomicModelAtoimc3RTSimulatorsideMessagesideMessage RTSimulatorRTSimulatorAtomicModelAtomicModelsideMessageFlat Decentralized Distributed Real-Time Simulation with
3、ActivitiesReal WorldDEVS ActivityoutputFromActivitySimulate hierarchical coupled model in fast modeCoordinator CoupledCoordinator CoupledSimulator4 Atomic4CoupledSimulator3 Atomic3simulators.tellAll(initialize“)simulators.AskAll(“nextTN)simulators.tellAll(computeInputOutput“)simulators.tellAll(sendM
4、essages)simulators.tellAll(DeltFunc“)putMessageputMessageputMessageCoupledSimulator1 CoupledSimulator2 Atomic1Atomic2putMessageputMyMessageCoupled1sendDownMessageSimulate hierarchical coupled model in real time mode- Centralized wayRTCentraCoord CoupledCoordinator CoupledSimulator4 Atomic4CoupledSim
5、ulator3 Atomic3putMessageputMessageputMessagesimulators.tellAll(initialize“)simulators.AskAll(“nextTN)myThread.sleep( nextTN currentTime)simulators.tellAll(computeInputOutput“)simulators.tellAll(sendMessages)simulators.tellAll(DeltFunc“)CoupledSimulator1 CoupledSimulator2 Atomic1Atomic2putMessageput
6、MyMessageCoupled1sendDownMessageSimulate hierarchical coupled model in real time mode- decentralized wayRTCoordinatorRTCoupledCoordinator CoupledRTSimulator4 Atomic4CoupledRTSimulator3 Atomic3putMessageputMessageputMessageCoupledRTSimulator1 CoupledRTSimulator2 Atomic1Atomic2putMessageputMyMessageCo
7、upled1sendDownMessagesimulators.tellAll(initialize“)simulators.tellAll(simulate“)simulators.tellAll(stopSimulate)Relationship between models and simulatorscoordinator coupledCoordinator1 coupledSimulator4 Atomic4coupledSimulator3 Atomic3coupledSimulator1 coupledSimulator2 Atomic1Atomic2Coupled1Coupl
8、edDistributed SimulationRTCoordinatorServerSimulatorProxy1SimulatorProxy3SimulatorProxy2coupledRTSimulator1coupledRTSimulator2RTCoordinatorClient1RTCoupledSimulatorClient2RTCoupledSimulatorClient3Atomic4Atomic3Coupled1Atomic1Atomic2CoupledDistributed SimulationCoordinatorServerSimulatorProxy1SimulatorProxy3SimulatorProxy2coupledSimulator1coupledSimulator2CoordinatorClient1CoupledSimulatorClient2CoupledSimulatorClient3Atomic4Atomic3Coupled1Atomic1Atomic2Coupled