The Ebus-J is based on a model with
which any program can be specified.
Commercial programs have the
following characteristics:
·
Every
program function is linked to one or several masks.
· The masks contain data fields for data input and output.
·
After
data is put into an input field, the program conducts checks, calculations or
other work steps.
·
Every
mask is a subfunction of a whole program; every whole program can be part of a program
complex.
The program model of the Ebus-J
realises these features in the following way:
·
A
program consists of any number of masks and reports.
· Every program can call another program at any position. Every program can be called by other programs.
·
Within
a mask an individual program part can operate before input or output of a data
field.
· With an input field an additional individual program part can operate after the input.
· Within a report an individual program part can operate before the output of a data field.
· Every data field of a mask (mask field) can be tightly linked to a field of an Index File or an auxiliary variable.
The program model in Ebus-J is
realised by the following parts:
Index File administration
Macro administration
Program administration
Program generator
In the Index File administration the used Index Files (databases) are
specified and administered.
In the Macro administration the
macros are recorded and administered. (A macro is a program part
that is written in the programming language of the Ebus-J.)
In the Program administration the
single programs are recorded and administered. Every program can contain any
number of masks and reports.
A so-called Macro before can
be assigned to every mask field. When the generated program is running and the
mask field is called for data input or output, the respective Macro before
is executed before the display of the mask field. With every mask field where
the user can put in data a so-called Macro after can be executed
additionally. The Macro after is always executed after data input unless
the user has pushed a key to immediately leave the mask or return to the
previous mask field.
Every mask field can be linked to an
Index File field (Index File variable) or an auxiliary variable. The input in a
mask field then causes an assignment to the respective Index File or auxiliary
variable. Also, the value of the linked variable is displayed automatically
when the mask is painted or a mask field is called. When a new data set of an
Index File is read, the new values of the Index File variable are immediately
displayed in the respective mask fields.
A report can be divided into one or
several blocks that specify the structure of the output lists. Analogous to the
masks every block contains report fields that are linked to an Index File or an
auxiliary variable and in this way specify the output data.
With every program an initialisation
can be conducted with the help of Init Macros (Init Macro before Index Open,
Init Macro after Index Open).
The program generator
generates a Java program from the program recorded by the Ebus-J. Sourcecode is
generated in the programming language Java. By compilation an immediately operating
program <program name>.jar is created.