Simulate coupled model in real time mode centralized









- Slides: 9

Simulate coupled model in real time mode -- centralized way simulators. tell. All("initialize“) RTCentral. Coord simulators. Ask. All(“next. TN”) my. Thread. sleep( next. TN – current. Time) simulators. tell. All("compute. Input. Output“) simulators. tell. All("send. Messages") simulators. tell. All("Delt. Func“) put. Message Coupled. Simulator 1 put. Message. Coupled. Simulator 2 Atoimc 1 Atoimc 2 Coupled. Simulator 3 Atoimc 3

Sequence Diagram of Initialization

Flat Decentralized Distributed Real-Time Simulation with Activities RTcoordinator Time synchronization side. Message RTSimulator Atomic Model RTSimulator Atomic Atoimc 3 Model Real World DEVS Activity output. From Activity

Simulate hierarchical coupled model in fast mode simulators. tell. All("initialize“) Coordinator simulators. Ask. All(“next. TN”) simulators. tell. All("compute. Input. Output“) simulators. tell. All("send. Messages") simulators. tell. All("Delt. Func“) put. Message Coupled. Coordinatorput. Message. Coupled. Simulator 3 Coupled 1 send. Down. Message put. My. Message Atomic 3 put. Message Coupled. Simulator 1 Atomic 1 Coupled. Simulator 2 Atomic 2 Coupled. Simulator 4 Atomic 4

Simulate hierarchical coupled model in real time mode -- Centralized way RTCentra. Coord simulators. tell. All("initialize“) simulators. Ask. All(“next. TN”) my. Thread. sleep( next. TN – current. Time) simulators. tell. All("compute. Input. Output“) simulators. tell. All("send. Messages") simulators. tell. All("Delt. Func“) put. Message Coupled. Coordinatorput. Message. Coupled. Simulator 3 Coupled 1 send. Down. Message put. My. Message Atomic 3 put. Message Coupled. Simulator 1 Atomic 1 Coupled. Simulator 2 Atomic 2 Coupled. Simulator 4 Atomic 4

Simulate hierarchical coupled model in real time mode -- decentralized way RTCoordinator simulators. tell. All("initialize“) simulators. tell. All("simulate“) simulators. tell. All("stop. Simulate") put. Message RTCoupled. Coordinator Coupled. RTSimulator 3 put. Message Coupled 1 send. Down. Message put. My. Message Atomic 3 put. Message Coupled. RTSimulator 1 Atomic 1 Coupled. RTSimulator 2 Atomic 2 Coupled. RTSimulator 4 Atomic 4

Relationship between models and simulators coordinator Coupled coupled. Coordinator 1 coupled. Simulator 3 Atomic 3 Coupled 1 coupled. Simulator 1 Atomic 1 coupled. Simulator 2 Atomic 2 coupled. Simulator 4 Atomic 4

Distributed Simulation RTCoordinator. Server Coupled Simulator. Proxy 1 Simulator. Proxy 2 Simulator. Proxy 3 RTCoordinator. Client 1 RTCoupled. Simulator. Client 2 RTCoupled. Simulator. Client 3 Coupled 1 Atomic 3 Atomic 4 coupled. RTSimulator 1 coupled. RTSimulator 2 Atomic 1 Atomic 2

Distributed Simulation Coordinator. Server Coupled Simulator. Proxy 1 Simulator. Proxy 2 Simulator. Proxy 3 Coordinator. Client 1 Coupled. Simulator. Client 2 Coupled. Simulator. Client 3 Coupled 1 Atomic 3 Atomic 4 coupled. Simulator 1 coupled. Simulator 2 Atomic 1 Atomic 2