campus.syslog
Class APMapping

java.lang.Object
  |
  +--campus.syslog.APMapping

public class APMapping
extends java.lang.Object

A mapping object holding Category of building conversion table parsed from a data file.

Version:
$Id: APMapping.java,v 1.1 2003/08/28 18:30:07 glchen Exp $
Author:
Yurong Xu

Field Summary
private  java.util.Hashtable aPConfigurationTable
           
private  java.util.Hashtable aPConfigurationTableByaPName
           
private  java.util.Hashtable aPConfigurationTableBymACAddress
           
private  java.util.Hashtable aPLocationTable
           
private  int i
           
private  boolean VERBOSE
           
 
Constructor Summary
APMapping(java.lang.String aPLocationFilename, java.lang.String aPConfigurationFilename)
          Constructs the table with specified local data mapping files.
 
Method Summary
 java.lang.String getAPBuildingByMACAddress(java.lang.String mACAddress)
          Return a building name for AP given the MAC address of AP.
 APConfiguration getAPConfigurationByMACAddress(java.lang.String mACAddress)
          Return a AP configuration given MAC address of AP.
 int getAPFloorByMACAddress(java.lang.String mACAddress)
          Return a AP's floor # given MAC address of AP.
 APLocation getAPLocationByAPName(java.lang.String aPName)
          Return a AP Location clasee given the name of AP.
 APLocation getAPLocationByMACAddress(java.lang.String mACAddress)
          Return a AP Location clasee given MAC address of AP.
 java.lang.String getAPNameByMACAddress(java.lang.String mACAddress)
          Return a AP name given MAC address of AP.
 java.lang.String getMACAddressByAPName(java.lang.String aPName)
          Return a MAC address of AP given the name of AP.
static void main(java.lang.String[] args)
          Standalone test, with mapping table constructed .
 boolean unknownAP(java.lang.String macAP)
          return false, if a AP is not in the data file by MAC address of AP.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aPLocationTable

private java.util.Hashtable aPLocationTable

aPConfigurationTable

private java.util.Hashtable aPConfigurationTable

aPConfigurationTableByaPName

private java.util.Hashtable aPConfigurationTableByaPName

aPConfigurationTableBymACAddress

private java.util.Hashtable aPConfigurationTableBymACAddress

i

private int i

VERBOSE

private boolean VERBOSE
Constructor Detail

APMapping

public APMapping(java.lang.String aPLocationFilename,
                 java.lang.String aPConfigurationFilename)
Constructs the table with specified local data mapping files.

Method Detail

getAPNameByMACAddress

public java.lang.String getAPNameByMACAddress(java.lang.String mACAddress)
Return a AP name given MAC address of AP.


getAPConfigurationByMACAddress

public APConfiguration getAPConfigurationByMACAddress(java.lang.String mACAddress)
Return a AP configuration given MAC address of AP.


getMACAddressByAPName

public java.lang.String getMACAddressByAPName(java.lang.String aPName)
Return a MAC address of AP given the name of AP.


getAPLocationByAPName

public APLocation getAPLocationByAPName(java.lang.String aPName)
Return a AP Location clasee given the name of AP.


getAPLocationByMACAddress

public APLocation getAPLocationByMACAddress(java.lang.String mACAddress)
Return a AP Location clasee given MAC address of AP.


getAPBuildingByMACAddress

public java.lang.String getAPBuildingByMACAddress(java.lang.String mACAddress)
Return a building name for AP given the MAC address of AP.


unknownAP

public boolean unknownAP(java.lang.String macAP)
return false, if a AP is not in the data file by MAC address of AP.


getAPFloorByMACAddress

public int getAPFloorByMACAddress(java.lang.String mACAddress)
Return a AP's floor # given MAC address of AP.


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Standalone test, with mapping table constructed .

java.lang.Exception