diva.pod.lwgraph
Class BasicLWEdge

java.lang.Object
  extended by diva.pod.lwgraph.BasicLWEdge
All Implemented Interfaces:
LWEdge, PropertyContainer

public class BasicLWEdge
extends Object
implements LWEdge, PropertyContainer

A basic implementation of the light-weight edge interface. This class implements an edge that contains a set of attributes.

Version:
$Revision: 1.2 $
Author:
John Reekie

Constructor Summary
BasicLWEdge()
          Create a new edge
 
Method Summary
 int getEdgeId()
          Return the integer id of this edge
 Object getProperty(String key)
          Return the property corresponding to the given key, or null if no such property exists.
 Iterator propertyNames()
          Return an iteration of the names of the properties
 void setEdgeId(int id)
          Set the integer id of this edge.
 void setProperty(String key, Object value)
          Set the property corresponding to the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicLWEdge

public BasicLWEdge()
Create a new edge

Method Detail

getEdgeId

public int getEdgeId()
Return the integer id of this edge

Specified by:
getEdgeId in interface LWEdge

getProperty

public Object getProperty(String key)
Return the property corresponding to the given key, or null if no such property exists.

Specified by:
getProperty in interface PropertyContainer

setEdgeId

public void setEdgeId(int id)
Set the integer id of this edge.

Specified by:
setEdgeId in interface LWEdge

propertyNames

public Iterator propertyNames()
Return an iteration of the names of the properties

Specified by:
propertyNames in interface PropertyContainer

setProperty

public void setProperty(String key,
                        Object value)
Set the property corresponding to the given key.

Specified by:
setProperty in interface PropertyContainer


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.