Package cdc.graphs.impl.tests
Interface TestNode
- All Known Implementing Classes:
TestGraphHeavyNode,TestGraphLightNode
public interface TestNode
Interface of node used for tests.
- Author:
- Damien Carbonne
-
Method Summary
Modifier and TypeMethodDescriptiondefault intgetLabel()getName()default booleanhasSameDefinition(TestNode node) voidSets the node label.
-
Method Details
-
getName
String getName()- Returns:
- The node name (identifier-like).
-
getLabel
String getLabel()- Returns:
- The node label.
-
setLabel
Sets the node label.- Parameters:
label- The label.
-
getDefinitionHashCode
default int getDefinitionHashCode()- Returns:
- A hash code based on definition of this node. Local attributes are used.
-
hasSameDefinition
- Parameters:
node- The other node.- Returns:
trueif this node andnodehave the same definition. Local attributes are used.
-