All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class uhr.core.structure.PartReaderStd

java.lang.Object
   |
   +----uhr.core.structure.PartReaderStd

public class PartReaderStd
extends Object
implements PartReader, NodeUser
This class allows reading parts from a cell. It acts as a cell Fascade. (More methods will be added)


Constructor Index

 o PartReaderStd()

Method Index

 o enumeratePartNames()
Returns an Enumeration of the part names in the cell, in order.
 o findPart(String)
Finds and returns the named part.
 o getPart(String)
Returns the named part in the cell.
 o getPartCount()
Returns the number of parts in the cell.
 o listTree(boolean, boolean)
Returns a String representing nodes in the the System Tree.
 o replicate()
Returns a copy of itself without mission state.
 o setMyNode(Node)
Sets the node the part is in.

Constructors

 o PartReaderStd
 public PartReaderStd()

Methods

 o setMyNode
 public void setMyNode(Node node)
Sets the node the part is in.

 o replicate
 public Object replicate()
Returns a copy of itself without mission state.

Returns:
the replication.
 o findPart
 public Object findPart(String partName)
Finds and returns the named part. See full documentation.

Parameters:
partName - the name of the part to find.
Returns:
the part found.
 o getPart
 public Object getPart(String partName)
Returns the named part in the cell. See full documentation.

Parameters:
partName - the name of the part to retrieve.
Returns:
the part in the cell with that name.
 o enumeratePartNames
 public Enumeration enumeratePartNames()
Returns an Enumeration of the part names in the cell, in order.

Returns:
the part names in the cell.
 o getPartCount
 public int getPartCount()
Returns the number of parts in the cell.

Returns:
the number of parts in the cell.
 o listTree
 public String listTree(boolean startAtRoot,
                        boolean includeHidden)
Returns a String representing nodes in the the System Tree. Format is one line per node with indentation. This is for developement use.

Parameters:
startAtRoot - true to start at the root or false to start at the cell this PartReader is in.
includeHidden - true to include hidden nodes or false to not include them.
Returns:
a String representing the System Tree.

All Packages  Class Hierarchy  This Package  Previous  Next  Index