DeepComparepublic class LoggedNetworkTopology extends java.lang.Object implements DeepCompare
LoggedNetworkTopology represents a tree that in turn represents a
hierarchy of hosts. The current version requires the tree to have all leaves
at the same level.
All of the public methods are simply accessors for the instance variables we
want to write out in the JSON files.| Constructor | Description |
|---|---|
LoggedNetworkTopology() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
deepCompare(DeepCompare comparand,
TreePath loc) |
|
java.util.List<LoggedNetworkTopology> |
getChildren() |
|
NodeName |
getName() |
|
void |
setUnknownAttribute(java.lang.String attributeName,
java.lang.Object ignored) |
public void setUnknownAttribute(java.lang.String attributeName,
java.lang.Object ignored)
public NodeName getName()
public java.util.List<LoggedNetworkTopology> getChildren()
public void deepCompare(DeepCompare comparand, TreePath loc) throws DeepInequalityException
deepCompare in interface DeepComparecomparand - the other comparand that's being compared to meloc - the path that got to me. In the root, myLocation is null. To
process the scalar foo field of the root we will make a
recursive call with a TreePath whose fieldName is
"bar" and whose index is -1 and whose
parent is null. To process the plural bar field
of the root we will make a recursive call with a TreePath
whose fieldName is "foo" and whose index is -1 and
whose parent is also null.DeepInequalityExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.