Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.pqt.autorib.util
Class NameGroupManager  view NameGroupManager download NameGroupManager.java

java.lang.Object
  extended byorg.pqt.autorib.util.NameGroupManager

public class NameGroupManager
extends java.lang.Object

This class manages a list of name groups. Name groups are a way for Autorib to recognise that although two primitives have different names (set by Attribute "identifier" "name" in the RIB) they should be treated for the purposes of numbering as the same, and will be allocated the same number

Version:

Field Summary
private  java.util.Vector groups
           
 
Constructor Summary
NameGroupManager()
          Creates new NameGroupManager
 
Method Summary
 void addGroup(java.lang.String s)
          Add a group to the list of groups
 void addGroup(java.util.Vector v)
          Add a group to the list
 int getGroupNumber(java.lang.String s)
          Check to see if the given name is a member of any of the groups, and if so return the appropriate group number
 int getMaxGroupNumber()
          Get the number of different groups that exist, plus one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groups

private java.util.Vector groups
Constructor Detail

NameGroupManager

public NameGroupManager()
Creates new NameGroupManager

Method Detail

addGroup

public void addGroup(java.lang.String s)
Add a group to the list of groups


addGroup

public void addGroup(java.util.Vector v)
Add a group to the list


getMaxGroupNumber

public int getMaxGroupNumber()
Get the number of different groups that exist, plus one. Plus one because group Number 0 is not used.


getGroupNumber

public int getGroupNumber(java.lang.String s)
Check to see if the given name is a member of any of the groups, and if so return the appropriate group number