net.sourceforge.unit
Class UnitList

java.lang.Object
  extended by net.sourceforge.unit.UnitList

public class UnitList
extends java.lang.Object

This class makes a list of units and their definitions. It is used to help create the library and documentation. It creates the file UnitInit.java, which is a non-public class in the library used to initialize the unit table. Edit this file to create a new unit in the package.

Version:
$Name: $, $Revision: 1.5 $
Author:
Fred Gylys-Colwell

Constructor Summary
UnitList()
           
 
Method Summary
 void addUnit(java.lang.String name, java.lang.String symbol, java.lang.String number, java.lang.String def, java.lang.String offset, java.lang.String comment)
          Add a unit to the list.
 void addUnit(java.lang.String name, java.lang.String symbol, java.lang.String number, java.lang.String def, java.lang.String offset, java.lang.String comment, java.lang.String latex)
          Add a unit to the list.
 void fillList()
           
 void finish()
           
 void init()
           
static void main(java.lang.String[] arg)
           
 void startGroup(java.lang.String title)
          Start a new group of units.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitList

public UnitList()
         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

main

public static void main(java.lang.String[] arg)
                 throws java.io.IOException
Throws:
java.io.IOException

fillList

public void fillList()
              throws java.io.IOException
Throws:
java.io.IOException

startGroup

public void startGroup(java.lang.String title)
                throws java.io.IOException
Start a new group of units.

Throws:
java.io.IOException

addUnit

public void addUnit(java.lang.String name,
                    java.lang.String symbol,
                    java.lang.String number,
                    java.lang.String def,
                    java.lang.String offset,
                    java.lang.String comment)
             throws java.io.IOException
Add a unit to the list.

Throws:
java.io.IOException

addUnit

public void addUnit(java.lang.String name,
                    java.lang.String symbol,
                    java.lang.String number,
                    java.lang.String def,
                    java.lang.String offset,
                    java.lang.String comment,
                    java.lang.String latex)
             throws java.io.IOException
Add a unit to the list.

Throws:
java.io.IOException

init

public void init()
          throws java.io.IOException
Throws:
java.io.IOException

finish

public void finish()
            throws java.io.IOException
Throws:
java.io.IOException