java.lang.Object
org.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:
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
groups
private java.util.Vector groups
NameGroupManager
public NameGroupManager()
- Creates new NameGroupManager
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