GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor:...

30
GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine

Transcript of GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor:...

Page 1: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

GUI For A Virtual Pipeline Simulation Testbed

By,Revathi Manni Ranganathan

Major Professor:Dr.Virgil Wallentine

Page 2: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Agenda

Pipeline Editor – Introduction

Previous Work by Oyenan

New Requirements

Design and implementation

User Feedback

Demo

Page 3: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Pipeline Editor- An introduction

Tool to create and manipulate virtual pipeline

systems.

Window to the Simulators

Cut, Copy, Paste, drag and drop

Store / Retrieve pipeline system in .vps format

Visualize the results

Page 4: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Pipeline Editor

Developed using Java Swing, JGraph, Oracle 8i

Can be started on a remote machine

Requirements – Java Web Start, Web browser,

JDBC driver

Connects to the Simulator on the remote server

Page 5: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

JGraph

Graph drawing component purely in Java Swing

Based on Model-View-Controller framework

Graph Theory + Swing Architecture = JGraph

Provides cut, copy, paste, drag & drop, zoom

Page 6: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Pipeline Editor – A snapshot

Page 7: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Earlier Work by Oyenan

Basic Version of the GUI

Editor built on top of JGraph

Modeling of pipeline components – pipes,

compressors

Job Control Optimizer

Result Visualization

Page 8: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

New Requirements

Connector – generic type

Modification of Pipe

Compression Units

Connection to the Parallel Simulator

Connection to the Sequential Simulator

Page 9: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Connector

Generic Type Component

Multiple incoming and outgoing branches

Number decided by the user at run time

Replaces 2-way & 3-way Split, 2-way & 3way

Combine

Page 10: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Pipes

Should support visualization of the leftmost and

rightmost nodes

Implemented by class MyEdge – extension of

JGraph’s Edge

Required modification in DataCell

Page 11: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Pipe – Snap Shot

Page 12: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Compression Units

Generic Type Component

Comprises of a Driver and Compressor

Four Basic types – Reciprocating Engine – Reciprocating

Compressor Gas Turbine – Centrifugal Compressor Reciprocating Engine – Centrifugal

Compressor Gas Turbine – Reciprocating Compressor

Page 13: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Compression Unit - Design

Different models under each type

Properties can be grouped meaningfully –

Simulation Data, Operational Data, Manufacturer’s

Data

Type and model name can be chosen at run time.

New models can be created and stored in the

database

Page 14: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Compression Units-Snap Shot

Page 15: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Database Design

Page 16: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Adaptations

Customized UserObject for each component

Customized method to draw property panel

Provision to group properties meaningfully

Page 17: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

GUI- Parallel Simulator

Connection is through sockets

Two separate threads are used to avoid GUI

freezing

SimulatorClient – send user commands

SimulatorDataClient – get data and status

Page 18: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

GUI-Parallel Simulator

Page 19: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

GUI to Parallel Simulator-Snap Shot

Page 20: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

GUI-Sequential Simulator

Communication is through text files in ASCII

format

Input text file contains graph data

Output text file contains simulation data

Option to set global parameters available for

input text file.

Page 21: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

GUI-Sequential Simulator

GraphParser – Input text file generator

Covert .vps to .txt

Page 22: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Sequential Simulator - GUI

The Sequential Simulator generates output in

standard text format.

The text file is parsed by the GUI to create a

live simulation effect

Simulation is the same as replay

Page 23: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Sequential Simulator - GUI

Page 24: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

GUI to Simulators - Supported Features

Simulate (Only in Parallel version)

Replay

Stop

Pause / Resume

Step / Skip Forward

Step / Skip Backward

Page 25: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Class Diagram

Page 26: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

User Feedback “The GUI application fully implements these features

and let users construct a natural gas pipeline system via drag-and-drop. The interface is very friendly. It can send requests to the server (simulator) and display the results back from the server in real-time. In the future, more components may be supported. The display of the results may be improved. In a word, the GUI is excellent.”

- Liubo Chen, Programmer – Parallel Simulator

“The GUI for the VPST is a very useful tool for the user to create any pipeline network and run the simulation process. The GUI in its present form contains all the basic components that a Pipeline network comprises off.

- Ravi Kiran Addanki, Programmer – Sequential Simulator

Page 27: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Conclusion

The new requirements have been satisfied

The basic software has been adapted to meet

the complex demands

The tool is fully functional with minimum

system requirements

Page 28: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Pipeline Editor in Action -A Demo

Page 29: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

References

www.jgraph.org Oyenan Wallemitien’s documentation on the

Pipeline Editor www.java.sun.com

Page 30: GUI For A Virtual Pipeline Simulation Testbed By, Revathi Manni Ranganathan Major Professor: Dr.Virgil Wallentine.

Acknowledgements

Dr. Virg Wallentine

Dr. Dan Andresen

Dr. Prakash Krishnaswamy