com.jstatcom.engine.gauss
Class LIBSet

java.lang.Object
  extended by com.jstatcom.engine.gauss.LIBSet

public final class LIBSet
extends java.lang.Object

This class stores information to create the GAUSS lcg files from the source files.

Author:
Markus Kraetzig

Nested Class Summary
static class LIBSet.SRCLibPair
          Innter class that stores a libraryname - sourcefile mapping.
 
Field Summary
 java.lang.String LIBS
           
static javolution.xml.XmlFormat<LIBSet> LIBSet_XML
          XML format field for (de)serialization.
 
Constructor Summary
LIBSet(java.lang.String libraries)
          Creates an empty LIBSet.
 
Method Summary
 void addSRCLibMapping(java.lang.String libName, java.lang.String fileName)
          Adds a sourcefile - libraryname mapping to the list.
 java.util.Iterator iterator()
          Gets a list iterator for libname - sourcefile pairs.
static void main(java.lang.String[] args)
          Generates GAUSS lcg libraries from source files according to the settings for GaussEngine.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIBS

public final java.lang.String LIBS

LIBSet_XML

public static final javolution.xml.XmlFormat<LIBSet> LIBSet_XML
XML format field for (de)serialization.

Constructor Detail

LIBSet

public LIBSet(java.lang.String libraries)
Creates an empty LIBSet.

Parameters:
libraries - comma separated libraries to load before calling compile
Method Detail

main

public static void main(java.lang.String[] args)
Generates GAUSS lcg libraries from source files according to the settings for GaussEngine.

Parameters:
args - this is ignored

addSRCLibMapping

public void addSRCLibMapping(java.lang.String libName,
                             java.lang.String fileName)
Adds a sourcefile - libraryname mapping to the list.

Parameters:
libName - the library that should reference fileName
fileName - the src file to add
Throws:
java.lang.RuntimeException - if the sourcefile does not exist or if libName is empty
java.lang.IllegalArgumentException - if (fileName == null || libName == null)

iterator

public java.util.Iterator iterator()
Gets a list iterator for libname - sourcefile pairs. The order from the XML representation is preserved.

The pairs are stored as instances of LIBSet.SRCLibPair.

Returns:
an iterator