All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class wrapper.ComponentB

java.lang.Object
   |
   +----wrapper.ComponentB

public class ComponentB
extends Object

Constructor Index

 o ComponentB(Node, String, int, String)
Constructor.

Method Index

 o displayGroups()
Display all the groups this Component has.
 o getDescription()
Get the description of this Component.
 o getGroupList()
Get the group list of this ComponentB.
 o getID()
Get the ID of this Component.
 o getName()
Get the name of this Component.
 o getNode()
Get the host Node.
 o refresh()
Update the group list of this ComponentB.
 o toString()
Get this Group in String format.

Constructors

 o ComponentB
 public ComponentB(Node node,
                   String name,
                   int id,
                   String description)
Constructor.

Parameters:
node - The Node this ComponentB belongs.
name - The name of this ComponentB.
id - The ID of this ComponentB.
decscription - the description of this ComponentB.

Methods

 o getNode
 public Node getNode()
Get the host Node.

Returns:
the Node which contains this ComponentB.
 o getName
 public String getName()
Get the name of this Component.

Returns:
a String as this Component's name.
 o getID
 public int getID()
Get the ID of this Component. Return an int as this ComponentB's ID.

 o getDescription
 public String getDescription()
Get the description of this Component.

Returns:
a String as this Component's description.
 o getGroupList
 public Group[] getGroupList() throws DmiError
Get the group list of this ComponentB.

Returns:
an array of Group of this ComponentB.
Throws: DmiError
on problem with diable getting the list.
 o refresh
 public void refresh() throws DmiError
Update the group list of this ComponentB.

Throws: DmiError
if cannot get the updated Components list.
 o toString
 public String toString()
Get this Group in String format.

Returns:
id, name and description of this Component in a String.
Overrides:
toString in class Object
 o displayGroups
 public void displayGroups()
Display all the groups this Component has.


All Packages  Class Hierarchy  This Package  Previous  Next  Index