AG VLSI Design and Architecture

SFB 501 - Project D1: Application System "Buildings"

PSiGene

Example - Step III

[PSiGene]



Step III: Generating the Simulator

This is an easy step ;-). We use two different generators to create our simulator:
  1. MPOK generator
  2. The MPOK generator creates the class structure that is described by our class model. For every objecttype in the class model a separate class is created. Attributes and relations are represented as (object-) attributes along with appropriate access methods.

    The generator is started by a small program that controls the generation parameters (see screen shot). With this tool, the type of generator (C++, C++ with additions for a Building Control system, or Smalltalk) can be chosen, an additional documentation generator can be started, and individual options can be set for each generator. In the case of the smalltalk generator these are:

    After pushing the generate button, the first part of the ADT code is generated. A special file, Install.st, is also generated and can be used to file in the complete abstract data type and generate the final code.
  3. PSiGene generator
  4. The next thing to do is to file in additional library code (e.g. our Simulator Kernel Library) and then start the PSiGene generator. A graphical control panel supports the execution of this generator and can be used to control the simulator (see screen shot below).

    The buttons have the following meaning:

    ImageNameDescription
    oFile List Opens a window from which the POC file that should be used can be chosen.
    oReport Views the error report. Click here for a sample report.
    oGenerate Start the generation process. An error report is automatically created.
    oBuild Build the instances for a specified house (see next page).

    After loading the POC file that was generated by PEdit in the previous step, the pattern generator is started simply by pressing the Build button. The error report can be checked to see if everything was OK. After the generation process, our building simulator is (nearly) ready to run.


Previous Step Next Step Up Table of Contents PSiGene