vsTASKER 7 User Manual
×
Menu
Index

Models

 
Entities need Models to be able to physically interact, like a car needs an engine, or a bicycle needs a dynamic law not to fall.
All this and so much more can be provided by Models.
 
vsTASKER provides some predefined Models for general topics like dynamics, sensors and weapons.
User can easily add their own and expand without limit the built in Model list.
 
Once a Model is defined and included into a database, it can be attached to any entity like an engine can be installed into a car to make it run.
Changing one Model with another one can thus be done with one mouse click. Code will be automatically generated, reducing the programming effort making the process user friendly.
Refer to the Developer Guide to learn more on built-in models. The Tutorial will also explain how to create your own.
 
 
DataModel: simple data structure.
Component: a DataModel with a runtime user code and reactive to events.
Matlab: a special component for handling Matlab™ function.
Simulink: a special component for handling Simulink™ model.
GL-Studio: a special component for handling GL-Studio™ graphic object.
 
 
Models are gathered in various Containers.
A container is merely a folder that isolate its content from other containers.
Nevertheless, each model generates a class with its name. So, even if inside a container, two models cannot have the same name.
Also, a model name cannot be a C++ keyword.
For now, a container cannot embed another container.
 
 
 
From Model View
Add Container: create a new empty container.
 
Select All:  select all containers (for moving or deletion).
 
 
From inside a Container
Go Back: close the actual container and return to the Model view.
 
Add Component: Import Components from the library. Go here for more info on the importer.
 
Import: list all Components defined in the /shared/models directory.
 
Add Data-Model: create a new empty Data-Model.
 
Import: list all Data-Models defined in the /shared/models directory.
 
Add Text: create a text block for comments.
 
Show Inherit: if checked, all Model inheritance links (to models belonging to the same Container) will be shown with a green arrow.
 
Show Use-Of: if checked, all Model usage links (to models belonging to the same Container) will be shown with a dashed arrow.
 
Select All: select all models of the current Container.
 
 
create a new empty Data-Model.
 
create a new empty Component.
 
create a Matlab™ function model.
 
create a Simulink™ handler model.
 
create a GL-Studio™ wrapper model.
 
create a text block for comments.