<<

Contents

Search

>>

 

Generator

 

Hyperlinks:

Generator Settings

2-Tier-Model

Html Program

Applet

Trace Information

Language File

 

 

 

The generator creates a java program from the program description, which can be compiled and executed immediately.

 

The following function keys (Icons) are available:

 

F2: Select program: You can choose from all existing programs of the current working directory.

F3: Scroll forward: next program

F4: Scroll backward: previous program

F5: Compiler Messages: The compiler messages can be edited in the editor.

F6: Program Output: The program output can be edited in the editor.

F7: Select program (history): A program from all lately used programs can be chosen.

F8: Start generation: The generation of the program starts.

F9: Compile program: The Java compiler starts.

F10: Start program: The compiled Java program starts.

F12: Settings in the program generator

 

Program name: The name of the program that shall be generated must be specified. The name of a main program or a subprogram can be given. With the button 'F2 = Select' a program name can be selected.

 

Program Type:

Java: A standard java program is generated (<Program name>.java). The program can be started by the command procedure run_<program name>.bat (Windows) resp. run_<program name>.sh (Unix/Linux).

 

Java 2-Tier: 2 programs are generated in the 2-Tier model: <Program name>_Client.java and <Program name>_2T.java.

<Program name>_Client.java is the client program.

<Program name>_2T.java is the server program. For execution Ebus-2T Server is needed. The client program can be started by the command procedure

run_<program name>_client.bat  <server address> <client address>  (Windows)

 

resp.

 

 run_<program name>_client.sh  <server address> <client address>  (Unix/Linux).

 

<server address> is the name or  IP address of the computer on which Ebus-2T-Server is running.

<client address> is the name or  IP address of the client computer. This parameter is optional, usually it has only to be specified if access to Ebus-2T-Server is done over internet.

 

Java 2-Tier Applet: 2 programs are generated in the 2-Tier model: <Program name>_Applet.java and <Program name>_2T_Applet.java.

<Program name>_Applet.java is the client program (Applet), it is started by a html file.

<Program name>_2T_Applet.java is the server program. For execution Ebus-2T Server is needed.

 

HTML: A Html program is generated (see Html Program). The Html program is started in the browser by entering <Program Name>.

 

Main Program/ Subprogram: Displays whether the program is generated as main program or subprogram. When a program is called that had been generated as subprogram before, the settings can be changed if the program shall be generated as main program now.

 

Subprogram of: When a subprogram is generated, the respective main program is displayed here.

 

Generate All subprograms: If this checkbox is set, all subprograms of Program Name are generated as well. If a program contains subprograms, the whole program is generated, if the name of the main program is given as Program Name and the checkbox Generate All Subprograms is set.

 

Start Compiler after generation: If this checkbox is set, the Java compiler is started automatically after the program generation; the compiler creates an executable program (<Program name>.jar) from the generated java programs. With Program Type Java 2-tier and Program Type Java 2-tier Applet two executable program are generated. The Java Compiler will only be started if no error occurs with the generation. If errors occur during the compilation, the error messages will be displayed in a window. The commands for the compilation and the output of the Java compiler are displayed in the box "Compile". All image files, which are specified in the commands ON … MACRO, LOAD_PICTURE and #ADD_IMAGE, are included into the jar file.

 

Start Program after compilation: If this checkbox is set, the program will be started immediately after successful compilation. The outputs of the program are displayed in the box 'Start program'.

 

Generate Trace Info: If this checkbox is set, tracing information is generated and the program run can be traced at runtime.

 

Generate checking of arrays: If this checkbox is set all array indices will be checked whether they are in the valid range. If not, a message window appears with the invalid index and its calling location in the macro. The program can then be closed.

 

Create Language File: If this checkbox is set, the file <Program name>.properties is generated, in which all texts of the program are kept. With this file the program can be translated into other languages.

 

Button 'F8 = Start Generating': Generation is started. This button is a default push button, thus the program can also be started with RETURN. The names of the programs are displayed in the field left to the button. Generation can be aborted by ESC.

 

Button 'F9 = Compile Program': The Java Compiler is started. The commands for the compilation and the output of the Java compiler are displayed in the field left to the button. If errors occur during the compilation, the error messages are displayed in a window. With F5 the messages of the Java compiler can be edited in the editor.

 

Button 'F5 = Compiler Messages': A window is displayed in which the messages from the java compiler can be edited. The editor is closed with ESC.

 

Button 'F10 = Start Program': The program is started. The output of the program (standard output) is displayed in the field left to the button.

 

Button 'F6 = Program output': A window is displayed in which the program output can be edited. The editor is closed with ESC.

 

Button 'Cancel': The mask is closed.