public class DefaultTopologyCluster extends java.lang.Object implements TopologyCluster
| Constructor and Description |
|---|
DefaultTopologyCluster(ClusterId id,
int deviceCount,
int linkCount,
TopologyVertex root)
Creates a new topology cluster descriptor with the specified attributes.
|
| Modifier and Type | Method and Description |
|---|---|
int |
deviceCount()
Returns the number of devices in the cluster.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
ClusterId |
id()
Returns the cluster id.
|
int |
linkCount()
Returns the number of infrastructure links in the cluster.
|
TopologyVertex |
root()
Returns the cluster root vertex.
|
java.lang.String |
toString() |
public DefaultTopologyCluster(ClusterId id, int deviceCount, int linkCount, TopologyVertex root)
id - cluster iddeviceCount - number of devices in the clusterlinkCount - number of links in the clusterroot - cluster root nodepublic ClusterId id()
TopologyClusterid in interface TopologyClusterpublic int deviceCount()
TopologyClusterdeviceCount in interface TopologyClusterpublic int linkCount()
TopologyClusterlinkCount in interface TopologyClusterpublic TopologyVertex root()
TopologyClusterroot in interface TopologyClusterpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object