planet.generic.commonapi.GML
Class GMLEdgeImpl

java.lang.Object
  extended byplanet.generic.commonapi.GML.GMLEdgeImpl
All Implemented Interfaces:
GMLEdge, java.io.Serializable

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

Field Summary
protected  java.lang.String fill
           
protected  boolean isDirected
           
protected  Id source
           
protected  Id target
           
 
Constructor Summary
GMLEdgeImpl(Id source, Id target, boolean isDirected)
           
GMLEdgeImpl(Id source, Id target, boolean isDirected, java.lang.String fill)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Object.equals(Object o) implementation for GMLEdgeImpl.
 java.lang.String getFill()
           
 Id getSource()
           
 Id getTarget()
           
 int hashCode()
          Object.hashCode(Object o) implementation for GMLEdgeImpl.
 boolean isDirected()
           
 void setDirected(boolean isDirected)
           
 void setFill(java.lang.String fill)
           
 void setSource(Id source)
           
 void setTarget(Id target)
           
 java.lang.String toString()
          Object.toString() implementation for GMLEdgeImpl.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

source

protected Id source

target

protected Id target

isDirected

protected boolean isDirected

fill

protected java.lang.String fill
Constructor Detail

GMLEdgeImpl

public GMLEdgeImpl(Id source,
                   Id target,
                   boolean isDirected)

GMLEdgeImpl

public GMLEdgeImpl(Id source,
                   Id target,
                   boolean isDirected,
                   java.lang.String fill)
Method Detail

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.


hashCode

public int hashCode()
Object.hashCode(Object o) implementation for GMLEdgeImpl.


toString

public java.lang.String toString()
Object.toString() implementation for GMLEdgeImpl.