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()
TopologyCluster
id
in interface TopologyCluster
public int deviceCount()
TopologyCluster
deviceCount
in interface TopologyCluster
public int linkCount()
TopologyCluster
linkCount
in interface TopologyCluster
public TopologyVertex root()
TopologyCluster
root
in interface TopologyCluster
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object