JNodeOS v1.2.0 API

edu.utah.janos.nodeos
Class InfoHook

java.lang.Object
  |
  +--edu.utah.janos.nodeos.InfoHook

public class InfoHook
extends java.lang.Object

A little class used for exporting information about state, data, etc...

XXX ideally, most of this status stuff should be external to the nodeos core package.

Author:
Janos Ministry of Development

Field Summary
protected  java.util.Hashtable children
          An InfoHook can have a set of children, allowing the user to narrow their choices based on a certain child.
 
Constructor Summary
InfoHook(java.lang.String name)
          Constructor that sets the hook's name
 
Method Summary
 void addChild(InfoHook ih)
          Add a child InfoHook to this hook
 InfoHook findChild(java.lang.String name)
          Find a child with the given name.
 java.lang.String[] getChildList()
          Return a string array listing the names of the children
 java.lang.String[] getInfo()
          This returns an array of strings that report whatever information is interesting...
 java.lang.String getName()
          Get the name for this hook
 void remChild(java.lang.String name)
          Remove a child InfoHook
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

protected java.util.Hashtable children
An InfoHook can have a set of children, allowing the user to narrow their choices based on a certain child.
Constructor Detail

InfoHook

public InfoHook(java.lang.String name)
Constructor that sets the hook's name
Method Detail

getName

public final java.lang.String getName()
Get the name for this hook

findChild

public final InfoHook findChild(java.lang.String name)
Find a child with the given name. The name can be fully qualified to search through a tree of InfoHooks.

addChild

public final void addChild(InfoHook ih)
Add a child InfoHook to this hook

remChild

public final void remChild(java.lang.String name)
Remove a child InfoHook

getChildList

public java.lang.String[] getChildList()
Return a string array listing the names of the children

getInfo

public java.lang.String[] getInfo()
This returns an array of strings that report whatever information is interesting...

JNodeOS v1.2.0 API

This documentation is Copyright (C) 1998-2002 The University of Utah. All Rights Reserved. See the file LICENSE for distribution terms.
Documentation, software, and mailing list archives for Janos can be found at the Janos Project web site: http://www.cs.utah.edu/flux/janos/
Generated on Mar 17, 2002