All Packages Class Hierarchy This Package Previous Next Index
Class codegen.CodeGen
java.lang.Object
|
+----codegen.CodeGen
- public class CodeGen
- extends Object
This class provides a simple interface to other parts
of codegen.
If an error occures, we will throw a CodeGenException.
- Status
Most of the code is implemented. Non-determinism is not handled
correctly yet.
- To Do
- Need to fix code for non-determinism.
- Known Bugs
- No Bugs nown. But see Prerequisites.
swtech25
- Prerequisites:
- We expect the Statechart to be a complete, executable and
correct state chart. We will not announce an error, but instead create
incorrect code (as far as it is possible to talk about incorrect code).
- All identifiers should not contain ".". We expect all identifiers
to be valid Java identifiers. It is wise to use no underscores "_"
in your state chart, because this may lead to name clashes, which
will make the compiler barf.
- Assertions:
- Changes:
- The interface was changed to cope with the composition of two
statecharts. We will allow two filenames for the automata and
one path name, where codegen will store its result.
- Version:
- $Id: CodeGen.java,v 1.18 1999/02/17 13:15:02 swtech25 Exp $
- Author:
- Marcel Kyas, Walter Loeser, Andre Paetzold.
-
CodeGen(Statechart)
- This simple constructor will generate code for a statechart
s using default options.
-
CodeGen(Statechart, CodeGenOpt)
- This constructor will cause codegen to produce code for
statechart s with options o.
-
CodeGen(Statechart, Statechart)
- This constructor will generate code for statecharts s1
and s2 with the default options.
-
CodeGen(Statechart, Statechart, CodeGenOpt)
- This constructor will generate code for statecharts s1
and s2 with options o.
CodeGen
public CodeGen(Statechart s,
CodeGenOpt o) throws CodeGenException
- This constructor will cause codegen to produce code for
statechart s with options o.
- Throws: CodeGenException
- if code generation fails.
CodeGen
public CodeGen(Statechart s1,
Statechart s2) throws CodeGenException
- This constructor will generate code for statecharts s1
and s2 with the default options. In this scenario s1 and
s2 will be composed into a single, closed system.
- Throws: CodeGenException
- if code generation fails.
CodeGen
public CodeGen(Statechart s) throws CodeGenException
- This simple constructor will generate code for a statechart
s using default options.
- Throws: CodeGenException
- if code generation fails.
CodeGen
public CodeGen(Statechart s1,
Statechart s2,
CodeGenOpt o) throws CodeGenException
- This constructor will generate code for statecharts s1
and s2 with options o. In this scenario s1 and
s2 will be composed into a single, closed system.
- Throws: CodeGenException
- if code generation fails.
All Packages Class Hierarchy This Package Previous Next Index