vsTASKER 7 User Manual
×
Menu
Index

Scenario

 
This defines the Scenario Class that inherits from Vt_Scenario vsTASKER base class included into the vstasker.lib library.
 
The Vt_Scenario expects the Scenario class to exist and this one is code generated by vsTASKER.
Scenario class embeds all user definition that will be used in the database.
 
The Scenario class is also part of the Scenario Template.
This class will be instanciated for each scenario of the database.
 
Another solution than using this class would be to create either Components or DataModels and attach them to the Scenario Player.
It is faster and more convenient to directly add members and methods to the Scenario class and the choice to use one way or the other is let to the programmer.
 
Using this class is lower lever than using a Model (Component or a DataModel) but simpler. The main drawback is that members (variables) will not be dynamically modifiable by the user like using a Model.