planet.generic.commonapi.GML
Class GMLEdgeImpl
java.lang.Object
planet.generic.commonapi.GML.GMLEdgeImpl
- All Implemented Interfaces:
- java.io.Serializable, GMLEdge
public class GMLEdgeImpl
- extends java.lang.Object
- implements GMLEdge
This wrapper class is used to store an edge of a directed or undirected
graph according to GML file format.
- Author:
- Marc Sānchez
- See Also:
- GML,
Serialized Form
Constructor Summary |
GMLEdgeImpl(Id source,
Id target,
boolean isDirected)
|
GMLEdgeImpl(Id source,
Id target,
boolean isDirected,
java.lang.String fill)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
source
protected Id source
target
protected Id target
isDirected
protected boolean isDirected
fill
protected java.lang.String fill
GMLEdgeImpl
public GMLEdgeImpl(Id source,
Id target,
boolean isDirected)
GMLEdgeImpl
public GMLEdgeImpl(Id source,
Id target,
boolean isDirected,
java.lang.String fill)
getFill
public java.lang.String getFill()
- Specified by:
getFill
in interface GMLEdge
- Returns:
- Returns the fill color of the edge.
setFill
public void setFill(java.lang.String fill)
- Specified by:
setFill
in interface GMLEdge
- Parameters:
fill
- The fill color of the edge to set.
getSource
public Id getSource()
- Specified by:
getSource
in interface GMLEdge
- Returns:
- Returns the source.
setSource
public void setSource(Id source)
- Specified by:
setSource
in interface GMLEdge
- Parameters:
source
- The source to set.
getTarget
public Id getTarget()
- Specified by:
getTarget
in interface GMLEdge
- Returns:
- Returns the target.
setTarget
public void setTarget(Id target)
- Specified by:
setTarget
in interface GMLEdge
- Parameters:
target
- The target to set.
isDirected
public boolean isDirected()
- Specified by:
isDirected
in interface GMLEdge
- Returns:
- Returns the isDirected.
setDirected
public void setDirected(boolean isDirected)
- Specified by:
setDirected
in interface GMLEdge
- Parameters:
isDirected
- The isDirected to set.
equals
public boolean equals(java.lang.Object o)
- Object.equals(Object o) implementation for GMLEdgeImpl.
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Object.hashCode(Object o) implementation for GMLEdgeImpl.
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Object.toString() implementation for GMLEdgeImpl.
- Overrides:
toString
in class java.lang.Object