You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bliznjan edited this page May 11, 2015
·
1 revision
Simulation consists of two packages: DynaCASE-Simulation and DynaCASE-SimulationGUI.
DynaCASE-Simulation contains simulators - classes for simulating model.
DynaCASE-SimulationGUI contains GUI for using simulators.
Simulators can be used on pure model without any controllers, view or GUI.
##Simulators
There is root class DCSimulator. DCSimulator has subclass DCModelSimulator. DCModelSimulator has subclasses DCDiagramSimulator and DCElementSimulator. DCElementSimulator has subclass DCEdgeSimulator. DCModelSimulator and its subclasses are there to copy structure of model and handle these model objects.
DCDiagramSimulator subclasses simulate subclasses of DCDiagram.
DCElementSimulator subclasses simulate subclasses of DCNamedElement.
DCEdgeSimulator subclasses simulate subclasses of DCEdge.
There is another subclass of DCSimulator -- DCToken. It has role of inteligent active object traveling through diagram if needed.
DCDiagramSimulator instance contains elements (and/or edges), and DCElementSimulator instance contains tokens (if tokens are used).
##Simulation GUI
DCSimulationGUI instance is connecting simulators (by pointing to instance of DCDiagramSimulator) with controllers and GUI. It is itself ComposableModel which opens itself into window automatically. It also adds button to main DynaCASE menu and optionally button into element context menus.