Package cdc.graphs.impl.tests
Interface TestNode
-
- All Known Implementing Classes:
TestGraphHeavyNode,TestGraphLightNode
public interface TestNodeInterface of node used for tests.- Author:
- Damien Carbonne
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intgetDefinitionHashCode()StringgetLabel()StringgetName()default booleanhasSameDefinition(TestNode node)voidsetLabel(String label)Sets the node label.
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- The node name (identifier-like).
-
getLabel
String getLabel()
- Returns:
- The node label.
-
setLabel
void setLabel(String label)
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
default boolean hasSameDefinition(TestNode node)
- Parameters:
node- The other node.- Returns:
trueif this node andnodehave the same definition. Local attributes are used.
-
-