de.dfki.lt.sdl
Class Sdl

java.lang.Object
  extended by de.dfki.lt.sdl.Sdl

public class Sdl
extends java.lang.Object

the purpose of this class is merely to perform a compilation of a system description into a Java class definition; a system descriptions must meet the following EBNF: ::= [ ] [ ] [ ] ::= "=" ::= a fully qualified Java class name ::= | "(" ")" | | "(" "|" { }^+ ")" | "(" "*" ")" ::= the newline character ::= "Mediator" "=" ::= a fully qualified Java class name ::= "Threaded" "=" { "yes" | "no"} ::= "Debug" "=" { "yes" | "no"} ::= { }^+ ::= "=" [ ] ::= a symbol, consisting of only lowercase letters ::= "(" { }^+ ")" ::= a Java string

Since:
JDK 1.4
See Also:
IMediator, Mediators, IModule, Modules

Field Summary
static java.lang.String defaultMediator
          the default mediator class, located in this package de.dfki.lt.sdl
static boolean verbose
          set Sdl.verbose = true for test purposes
 
Constructor Summary
Sdl()
           
 
Method Summary
static void compile(java.lang.String sysDescrFile)
          given a new system description stored in file sysDescrFile, compile() generates a new Java class definition whose location is specified in the file; note that since this is a class method and relies on static fields, I make it a synchronized method!!
static java.lang.String generateArrayLiteral(java.lang.String varName)
          generates an array literal of strings, represented as a string; the array elements are the init args for a certain module associated with varName
static void main(java.lang.String[] args)
          sets Sdl.verbose to true and calls the static Sdl.compile() method on first argument args[0]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultMediator

public static final java.lang.String defaultMediator
the default mediator class, located in this package de.dfki.lt.sdl

See Also:
Constant Field Values

verbose

public static boolean verbose
set Sdl.verbose = true for test purposes

Constructor Detail

Sdl

public Sdl()
Method Detail

compile

public static void compile(java.lang.String sysDescrFile)
given a new system description stored in file sysDescrFile, compile() generates a new Java class definition whose location is specified in the file; note that since this is a class method and relies on static fields, I make it a synchronized method!!


generateArrayLiteral

public static java.lang.String generateArrayLiteral(java.lang.String varName)
generates an array literal of strings, represented as a string; the array elements are the init args for a certain module associated with varName


main

public static void main(java.lang.String[] args)
sets Sdl.verbose to true and calls the static Sdl.compile() method on first argument args[0]