|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HighLevelGroup
Defines the data operations that are available for a high-level group. For a group it is possible to define the members that are associated to the group.
Method Summary | |
---|---|
boolean |
addResource(HighLevelResource resource)
Adds the given resource to the list of resources that belong to this group, or organizational unit. |
boolean |
equals(java.lang.Object obj)
Compares the specified object with this HighLevelGroup for equality. |
boolean |
equalsName(java.lang.Object obj)
Compares the specified object with this HighLevelGroup for equality only on the name of a HighLevelGroup. |
java.lang.String |
getName()
Retrives the name of this group or organizational unit. |
java.util.Set<HighLevelResource> |
getResources()
Retrieves all the resources that are associated to this group. |
int |
hashCode()
Returns the hascode for a HighLevelGroup object. |
boolean |
removeResource(HighLevelResource resource)
Removes the given resource from the list of resources that belong to this group. |
void |
setName(java.lang.String name)
Sets the name of this group or organization unit. |
void |
writeDistributionToDot(java.lang.String boxId,
java.lang.String nodeId,
java.lang.String addText,
java.io.Writer bw)
Writes the highlevel group to dot. |
Method Detail |
---|
java.lang.String getName()
void setName(java.lang.String name)
name
- String the name of this group or organizational unit.boolean addResource(HighLevelResource resource)
resource
- the resource to be addedboolean removeResource(HighLevelResource resource)
resource
- Resource the resource that has to be removed from this group
True
if there has been a resource with the same name in this
group and that is has been removed correctly. False
otherwise (method call had no effect)java.util.Set<HighLevelResource> getResources()
boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
o
- Object object to be compared for equality with this HighLevelGroup.
true
if both HighLevelGroups have the same name and the same
set of resources.boolean equalsName(java.lang.Object obj)
o
- Object object to be compared for equality on the name with this HighLevelGroup.
int hashCode()
hashCode
in class java.lang.Object
void writeDistributionToDot(java.lang.String boxId, java.lang.String nodeId, java.lang.String addText, java.io.Writer bw) throws java.io.IOException
boxId
- the identifier of the box (in the DOT file) in which the relevant information of the highlevel group
will be written.nodeId
- the identifier of the node (in the DOT file) to which the box that will be created has to be connected.
""
has to be provided if the box that will be created does not need to be connected to another node in the DOT file.addText
- additional text that needs to be filled in at the beginning of the boxbw
- Writer the BufferedWriter used to stream the data to the file
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |