Package cdc.graphs.impl.tests
Class TestGraphLightEdge
- java.lang.Object
-
- cdc.graphs.impl.BasicGraphEdge<TestGraphLightNode>
-
- cdc.graphs.impl.tests.TestGraphLightEdge
-
- All Implemented Interfaces:
GraphEdge<TestGraphLightNode>,TestEdge<TestGraphLightNode>
public class TestGraphLightEdge extends BasicGraphEdge<TestGraphLightNode> implements TestEdge<TestGraphLightNode>
Implementation of graph light edge for tests.- Author:
- Damien Carbonne
-
-
Constructor Summary
Constructors Constructor Description TestGraphLightEdge(String name, TestGraphLightNode source, TestGraphLightNode 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
-
TestGraphLightEdge
public TestGraphLightEdge(String name, TestGraphLightNode source, TestGraphLightNode target)
-
-
Method Detail
-
getName
public final String getName()
- Specified by:
getNamein interfaceTestEdge<TestGraphLightNode>- Returns:
- The edge name (identifier-like).
-
getLabel
public String getLabel()
- Specified by:
getLabelin interfaceTestEdge<TestGraphLightNode>- Returns:
- The edge label.
-
setLabel
public void setLabel(String label)
Description copied from interface:TestEdgeSets the edge label.- Specified by:
setLabelin interfaceTestEdge<TestGraphLightNode>- Parameters:
label- The label.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBasicGraphEdge<TestGraphLightNode>
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classBasicGraphEdge<TestGraphLightNode>
-
toString
public String toString()
- Overrides:
toStringin classBasicGraphEdge<TestGraphLightNode>
-
-