Package dslabs.framework
Interface Address
- All Superinterfaces:
Comparable<Address>,Serializable
Addresses are opaque objects that uniquely identify
Nodes. While the provided addresses
might provide meaningful information via Object.toString(), you should not use those
Strings (except when printing addresses). Instead, use Object.equals(Object) and
Comparable.compareTo(Object) to compare addresses.-
Method Summary
Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
rootAddress
Returns the root address, representing the rootNodeof some hierarchy.- Returns:
- the root address
-
subAddress
Returns a sub-address for the given address. Used to initialize a sub-node.- Parameters:
address- the address of the parent nodeid- the sub-node's identifier- Returns:
- the sub-address.
-