Skip to main content
Package: com.phoenix_int.aserver Class Hierarchy
Declaration
A utility class for holding sub-variables. Internally used to manage groups of variables within the PHXSimpleSelfManager class. To create your own groups, use the PHXSimpleSelfManager.addVariable function. See Also:

Constructor Summary

Method Summary

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

PHXGroup

Parameters:
  • name - the name of the group
Throws:
  • PHXInvalidNameException

Method Detail

getName

retrieves the name of the group Returns:
  • the name of the group

addGroup

adds a child group to the group Parameters:
  • group- the child group
Throws:
  • PHXNameAlreadyInUseException
  • PHXInvalidNameException

getGroup

retrieves a child group. Parameters:
  • childName- the name of the child group
Returns:
  • the child group
Throws:
  • PHXNoSuchObjectException - thrown if the child group is not found

getGroup2

retrieves a child group. Does not throw an exception on failure. Parameters:
  • childName- the name of the child group
Returns:
  • the child group. Returns null on failure

makeGroup

creates a child group. If the group already exists, it is retrieved Parameters:
  • childName- the name of the child group
Returns:
  • the child group
Throws:
  • PHXNameAlreadyInUseException
  • PHXInvalidNameException

removeGroup

remove a child group. If the group doesn’t exist, it just returns Parameters:
  • childName- the name of the child group
Throws:
  • java.lang.Exception

getNumGroups

retrieves the number of subgroups in the group. Returns:
  • the number of subgroups

getGroups

retrieves the Enumeration of subgroups in the group. Returns:

getGroups2

retrieves all the subgroups in the group Returns:
  • an Iterator of all the PHXGroup objects.

addVariable

stores a variable in the group. Parameters:
  • varInfo- the variable info structure
Throws:

getVariableInfo

retrieves a variable from the group. Parameters:
  • varName- the name of the variable to get
Returns:
  • the variable info structure
Throws:

getVariableInfo2

retrieves a variable from the group. Does not throw an Exception on failure. Parameters:
  • varName- the name of the variable to get
Returns:
  • the variable info structure, or null if not found

contains

checks to see if a variable exists in this group Parameters:
  • varInfo- the variable to check, must be an exact match (not just name)
Returns:
  • true if the variable is in this group

contains

Checks to see if a variable exists in this group. Parameters:
  • varName- the name of the variable to check.
Returns:
  • true if the variable is in this group.

getNumVariables

retrieves the number of variables in the group. Returns:
  • the number of variables

getVariables

retrieves the Enumeration of variables in the group. Returns:

getVariables2

retrieves all of the variables in the group. Returns:

removeAllVariables

removes all variables from the group

removeAllGroups

remove all groups from the group

removeVariable

removes a variable Parameters:
  • varInfo- the variable structure to remove

toString

Converts this to a string Overrides:
  • toString in class java.lang.Object
Returns:
  • the string “Group: ” with the name of the group appended.