Package cdc.graphs.impl.tests
Class TestGraphHeavyEdge
- java.lang.Object
-
- cdc.graphs.impl.BasicGraphEdge<TestGraphHeavyNode>
-
- cdc.graphs.impl.tests.TestGraphHeavyEdge
-
- All Implemented Interfaces:
GraphEdge<TestGraphHeavyNode>,TestEdge<TestGraphHeavyNode>
public class TestGraphHeavyEdge extends BasicGraphEdge<TestGraphHeavyNode> implements TestEdge<TestGraphHeavyNode>
Implementation of graph edge for tests.- Author:
- Damien Carbonne
-
-
Constructor Summary
Constructors Constructor Description TestGraphHeavyEdge(String name, TestGraphHeavyNode source, TestGraphHeavyNode target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)StringgetLabel()StringgetName()inthashCode()voidsetLabel(String label)Sets the edge label.StringtoString()-
Methods inherited from class cdc.graphs.impl.BasicGraphEdge
getSource, getTarget
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cdc.graphs.impl.tests.TestEdge
getDefinitionHashCode, hasSameDefinition
-
-
-
-
Constructor Detail
-
TestGraphHeavyEdge
public TestGraphHeavyEdge(String name, TestGraphHeavyNode source, TestGraphHeavyNode target)
-
-
Method Detail
-
getName
public final String getName()
- Specified by:
getNamein interfaceTestEdge<TestGraphHeavyNode>- Returns:
- The edge name (identifier-like).
-
getLabel
public String getLabel()
- Specified by:
getLabelin interfaceTestEdge<TestGraphHeavyNode>- Returns:
- The edge label.
-
setLabel
public void setLabel(String label)
Description copied from interface:TestEdgeSets the edge label.- Specified by:
setLabelin interfaceTestEdge<TestGraphHeavyNode>- Parameters:
label- The label.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBasicGraphEdge<TestGraphHeavyNode>
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classBasicGraphEdge<TestGraphHeavyNode>
-
toString
public String toString()
- Overrides:
toStringin classBasicGraphEdge<TestGraphHeavyNode>
-
-