Guide of DESMO-J 2D Viewer

Version 1.0, February 2011

Content:


Open and Close an Animation

This viewer is java a swing application. There is a version as desktop- and as an applet-application. For both, all animation instructions are stored in a commands-file (CmdsFile). The animated entities are pictured by icons. These icons are stored in a icon directory (IconDir). To run an animation CmdsFile and IconDir must known by viewer. This can be done automaticly by viewer call or manually with settings in viewer menu.
For manually opening an animation, choose
  1. Data->IconDir to select the directory which contains the needed icons, and
  2. Data->Open to read the CmdsFile.
After this, the viewer is ready to run the animation. To close a animation, please use Data->Close.

Run an Animation

With the buttons Start, Pause, Continue and Stop you can run the animation. The same is possible with menu functions (Simulation->StartSimulation->PauseSimulation->Continue and Simulation->Stop). With the speedbar you can specify the simulation speed. The speedvalue is shown in a textfield at right-handside of speedbar. In this field, you can set also this value directly. Alternativly, you can use the menu Simulation->SetSpeed.
To run an animation, we have 3 modes, named TimeFlowMode:

View, Position and Zoom

Each animated object has a position and a view. All objects with the same view are shown in the same viewpane. The coordinates of coursor-position in the actual viewpane are shown at right-handside of statusline. For each viewpane you can set a zoom property. The zoom property is composed of a zoom center point and a zoom factor. The zoom center point is signed as a target on each viewpane. You can shift this point by drag and drop. The zoom factor can be changed by zoombar or in a textfield at right-handside of zoombar. Alternatively, you can use the menu View->Zoom.

Additional Informations

With a click on each entity you can get some additional informations about the history and the attributes of this entity. With a click on a statistical-object (data-collector) you can show its timeseries or histogram.

Help

In Help-Menu there is a :

Menu Overview

The menu has the following structure:
Data Open Load a CmdsFile and open an animation. A IconDir must set before.
Close Close an animation.
IconDir Set an icon directory.
Exit Close the viewer application.
Simulation Start Start the animation.
Pause Pause the animation.
Stop Stop the animation.
SetSpeed Set speedfactor.
TimeFlowMode Set TimeFlowMode.
View Zoom Set zoomfactor of actual view.
Help Help This menue.
About Simulation Project Some information about the actual simulation model.
About Simulation Framework Some information about the DESMO-J simulation framework.