Web-based Simulation

43 slides
0.52 MB
649 views

Similar Presentations

Presentation Transcript

1

Web-based SimulationCourse: 60-520 Instructor: Dr. A.K. Aggarwal By Sheng Bai

2

AgendaIntroduction Client-based Server-based Distributed Summary Reference

3

What’s SimulationBuilding a software Based on an algorithmic logic Simulate some phenomenon With some purpose Observing systems Finding analytical solutions Predicting system behaviors

4

Types of simulationStochastic or deterministic Continuous or discrete Local or distributed

5

Web-based SimulationA driver of software technologies A rapidly emerging area WEBSIM; Winter Simulation Conference Sessions; WSC Modeling Methodology Track; Java

6

ClassificationClient-based Server-based Distributed

7

Client-based Browser & Server Structure Download logic to client side Running and analyzing on client’s side No communications during the simulation Implementation: simjava

8

simjavaA discrete event simulation package A Java port of a C++ library, HASE++ HASE++ is based on Jade’s SIM++

9

A collection of entities: Sim_entity Entities are connected by ports: Sim_port Communication via using event objects: Sim_event Central controller: Sim_system

10

Process Sim_system.initialize()Source Sim_entitySink Sim_entitySim_system.add()Sim_system.add()Sim_system.link_ports ("Sender", "out", "Receiver", "in"); Sim_system.run() outinSim_portSim_port

11

Animation Package: simanim; Class: Anim_applet; Method: Anim_applet.anim_init(); Driven by trace output of simulation S traces P traces

12

Demonstration

13

Analyzing simulation resultsPackage: simdiag Java Beans: TimingDiagram TraceSaver TraceLoader GraphDiagram

14

TimingDiagramStat timing window in anim_init() Attach to a trace saver A TraceEventObject Trace line A command: TRACE; LAYOUT; RUN; PAUSE; STOP; DISPLAY

15

Example trace File$types State IDLE BUSY SEND RECV $bars p[0] State p[1] State $events u:p[0] at 1.234: P IDLE u:p[1] at 4.567: P BUSY ...

16

TimingDiagram

17

GraphDiagram

18

GraphDiagram

19

Problems Take time to download Unsteady performance Can’t run sophisticate simulations

20

Server sideRMI (Remote Method Invocation) Distributed simjava EJB (Enterprise JavaBeans) JSIM

21

RMI Architecture

22

Process User Machine Web Browser Server RMI Runtime Sim_systemSourceSinkClient AppletSim_systemRISim_system.add()Sim_system.add()Sim_system.link_ports ("Sender", "out", "Receiver", "in") java.rmi.Remoteimplements Sim_systemRI

23

EJBsIndependence form messaging middleware, transaction support, naming & directory services… Delegates difficult tasks to EJB server Simplify application development

24

Client-Server Interaction

25

JSIM Architecture

26

Simulation process

Browse More Presentations

Last Updated: 8th March 2018

Recommended PPTs