System Object GPSS is intended for 32 bytes Windows (Windows XP, Windows 2000, Windows ME and Windows 95). It is necessary to unpack archive for installing system. You can create a shortcut for the application Converter.exe.  Then you can run this application and press F1.

Then you should read the first part of a Help file attentively. After that you can open any file with model (item File/Open) and to run it (item Run). After several experiments with existing models, you can try to create the new models.

For creation of model you should choose the necessary object from the list and specify its name. It is possible to use the name by default. Then it is necessary to insert this object by item “Edit/Insert Object”. It needs to be repeated for each object.

Some objects can be inserted later when they will be necessary.

It is possible to delete unnecessary objects by placing the cursor on the line with its description, and by executing item “Edit/Delete Object”.

Then it is necessary to write a code of model into procedure ModelTxt.

Then model must be saved.

Run of model is made by item “Run”.

If the model not runs it is necessary to find and to correct the mistakes witch is found out by the compiler.

This version is trial, and therefore the quantity of blocks in model is no more then 300.

Job with Object GPSS system

Preparation of model is conducted by the converter which is the shell of system. It is traditional enough for WINDOWS applications.

The main menu contains the following submenus.

File Edit Run Help.

Submenu File

This submenu contains the following items.

New

It creates new model.

Open

It opens earlier created model or any other text file in TXT or RTF format.

Save

It saves the new version of model in a file on a disk.

Save As

It saves model in a file on a disk, having changed a name and, probably, a folder in format TXT or RTF. Files it is better to save in RTF - a format.

Quit

It closes the converter.

Submenu Edit

This submenu contains the following items.

Insert Object

It allows to insert the description of the object used in model, and also to insert calls of all procedures which are necessary for correct job of model with this object. The name of object is set in a corresponding field, or formed automatically, and the type of object gets out of the dropping out list, parameters if they are stipulated, are set in a field of parameters. 

Delete Object

It allows to remove the description of the object used in model, and also to remove calls of all procedures which have been inserted for correct job of model with this object. For removal - it is necessary to place the cursor on a line of the description of object, or on the line with the generated call for object.

Find

It allows searching substring. Searching is case insensitive.

Replace

It allows to replace found substring by new substring and to continue search.

Replace One Name

It replaces in model name set in a field of search, with a name set in a field of replacement. The name for searching should not contain separators.

Replace Names

It works similarly, but pair’s names should be set in a file OldNewNames.txt in consistently pairs lines.

Font Selected

It calls of dialogue for change of a font of the selected part of model.

Include

Union

They are used for the models containing names of files for inclusion and connection; look the help.

Reopen

It reads anew a file of the current model from a disk.

Submenu Run

It is executes converting the text of model in a set of procedures of model, that is creates file Model.pas and Const.Pas, and also creates model as EXE - a file and run it if, certainly, there were no mistakes of compilation. Otherwise it is necessary to correct these mistakes and to repeat item Run. This item saves the current model in a file and places the text generated by the compiler, with possible error messages, in a corresponding field of the converter. It allows finding and correcting formal mistakes easily.

Submenu Help

It shows a Help file. On a file it is possible to move, clicking a mousy on dark blue hyperlinks at pressed key Ctrl or to execute searching by button Find.

 The hyperlink begins with a symbol | and follows up to a blank, and the point of transition - begins with a symbol ` and too should come to an end a blank. In the text of model also it is possible to execute transitions on hyperlinks. But here hyperlinks and points of transition should be in comments.

Pressing blue button - allocates comments with dark blue color, and the text of the model - green. The black button makes the text black.

The additional right field contains names of all variables of model, and also the full list of all patterns of procedures and functions of system of modeling.

If names of variables do not corresponds to model it is necessary to close and open this field. Then all of them will appear. In this field also it is possible to move on hyperlinks. 

If the button above a field specifies to the left, and you hold pressed key Ctrl at click on a pattern of procedure or function it is transferred to a corresponding position of model. So it is possible to collect model in such a manner that all its "writing" will be shown to its assembly from parts and to inserting of the numerical data in the necessary elements of model.

If this button specifies upwards, and you hold pressed key Ctrl patterns are transferred to the top part of the field. That is, it is possible to collect in the beginning all necessary patterns for model above, and then to insert them in the necessary places. It is possible simply to use a clipboard.

To the advanced users and developers of models.

           In all examples there is a procedure of a kind: initrand (10). If it is in Initial model then every time will execute the same run, therefore it is better to deleteit. Then the model each time will execute new run.

Any block Generate should be inserted, as object. If necessary, it can be moved in model, but it is impossible to copy!!

             Mean, that while the model is active, it is possible to copy Exe - module of your model from folder Modeling. And take at the same time a file with the same name, but expansion .Txt. Then you can use your model in general without the initial text and the shell.

             Developing models, try not specified in model concrete numbers, except for, it is possible numbers of parameters of system or the transaction.

It is better to prepare data for model in a text file and to read them.

 For opening a file with the initial data it is better to use dialogue of opening which is present in system as procedure GetFileName.

If you want to use parts of model as procedures then to objects, such as, devices, lists of the user, the table and so on, it is better to address in procedures indirectly, saves values <ObjName. N> in parameters of the active transaction. Then in the procedure you may to address to them through functions GetFacility GetUser GetTable and so on.

To transition to procedure and return from it apply block Transfer.

             Each object of system has the set of parameters, same by opportunities and designations, as a set of parameters of the transaction.

             Basically, it is better to use variables or arrays (probably dynamic), instead of sets of parameters, however then in section Report it is necessary to show their values by procedures of writing in the report, or it is used operators Writeln of Pascal language, specifying the name of the file used for the report. (FileRep)  

You can close a hide some part of the text of model from the end user, using in the text of model flags  ! – and   ! +.

It is possible to create also the personal report. It is possible to forbid selectively formation of the report on separate objects.

It is possible to close display of unnecessary pages of model, for example, page of adjustment of the report.

On all arising questions - write letters to me. In a subject of the letter by all means specify Object GPSS.

Professor Anatoly G. Korolove.

 

My address ObjectGPSS@Mail.Ru

In a subject of the letter by all means specify Object GPSS.

 

Return

 

Hosted by uCoz