Classes to describe the virtual-lab view and to set-up the virtual-lab
VLabModels package includes the PartialView and the VirtualLab classes. These two classes are required to describe the virtual-lab view and to set-up the virtual-lab, respectively.
Name | Description |
---|---|
![]() |
Class containing instances of the model and view description |
![]() |
Super-class of the model describing the virtual-lab view |
Class containing instances of the model and view description
The class describing the complete virtual-lab has to contain an instance of VirtualLab class. The virtual-lab designer has to set the name of the model and the view classes.
VirtualLab class has the following parameters:Extends from src.VLabModel.VirtualLab (Class describing the complete virtual-lab).
Name | Description |
---|---|
Tcom | Communication interval |
fileName | Name of the view file |
sourceCodePath | Path where the C-functions, dll library with the view components and delayrun.exe are located |
compilation | The C++ GUI must be compiled using Visual C++ 64 bits |
launchView | 0/1 not/yes launch the view |
numberGUI | Number of GUI running simultaneously |
ipAddress | IP of the simulation server |
serverPort | Server Port number |
replaceable model ViewI | Class describing the virtual-lab view |
replaceable model ModelI | Class describing the virtual-lab model |
Super-class of the model describing the virtual-lab view
PartialView class has to be the super-class of the model describing the virtual-lab view. The communication interval (i.e., time interval between to consecutive model-view communications) is a parameter of this class (Tcom), that can be set by the virtual-lab developer. PartialView class contains a pre-defined component: the root element for the view description.
Extends from src.VLabModel.PartialView (Partial model required as base class for the view description model).
Name | Description |
---|---|
Tcom | Communication interval |
serverPort | Server Port number |
launchView | 0/1 not/yes launch the view |
ipAddress | ip Address |
sourceCodePath | Path where the C-functions, Library.dll and pRun.exe are located |
numberGUI | Number of GUIs |
fileName | Cpp file name |
compilation | |
Initialization | |
refreshView | True only when the model-view communication is established |