campus.syslog
Class CatalogBuildingMapping
java.lang.Object
|
+--campus.syslog.CatalogBuildingMapping
- public class CatalogBuildingMapping
- extends java.lang.Object
A mapping object holding Category of building conversion table parsed from
a data file.
- Version:
- $Id: CatalogBuildingMapping.java,v 1.1 2003/08/28 18:30:09 glchen Exp $
- Author:
- Yurong Xu
Constructor Summary |
CatalogBuildingMapping(java.lang.String catalogBuildingFilename)
Constructs the table with specified local data mapping file. |
Method Summary |
int |
getCategory(java.lang.String aPName)
function to convert building name to category of the building. |
static void |
main(java.lang.String[] args)
just for test. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
catalogBuildingTable
private java.util.Hashtable catalogBuildingTable
i
private int i
VERBOSE
private boolean VERBOSE
convertor
private BuildingNameConvertor convertor
CatalogBuildingMapping
public CatalogBuildingMapping(java.lang.String catalogBuildingFilename)
- Constructs the table with specified local data mapping file.
this class is specifially design for Prof. Kotz 's Categories.awk's category of building
getCategory
public int getCategory(java.lang.String aPName)
- function to convert building name to category of the building.
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- just for test.
java.lang.Exception