All Packages Class Hierarchy This Package Previous Next Index
Class wrapper.ComponentB
java.lang.Object
|
+----wrapper.ComponentB
- public class ComponentB
- extends Object
-
ComponentB(Node, String, int, String)
- Constructor.
-
displayGroups()
- Display all the groups this Component has.
-
getDescription()
- Get the description of this Component.
-
getGroupList()
- Get the group list of this ComponentB.
-
getID()
- Get the ID of this Component.
-
getName()
- Get the name of this Component.
-
getNode()
- Get the host Node.
-
refresh()
- Update the group list of this ComponentB.
-
toString()
- Get this Group in String format.
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.
getNode
public Node getNode()
- Get the host Node.
- Returns:
- the Node which contains this ComponentB.
getName
public String getName()
- Get the name of this Component.
- Returns:
- a String as this Component's name.
getID
public int getID()
- Get the ID of this Component.
Return an int as this ComponentB's ID.
getDescription
public String getDescription()
- Get the description of this Component.
- Returns:
- a String as this Component's description.
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.
refresh
public void refresh() throws DmiError
- Update the group list of this ComponentB.
- Throws: DmiError
- if cannot get the updated Components list.
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
displayGroups
public void displayGroups()
- Display all the groups this Component has.
All Packages Class Hierarchy This Package Previous Next Index