diva.pod.lwgraph
Class BasicLWPort

java.lang.Object
  extended by diva.pod.lwgraph.BasicLWPort
All Implemented Interfaces:
LWPort, PropertyContainer

public class BasicLWPort
extends Object
implements LWPort, PropertyContainer

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

Version:
$Revision: 1.2 $
Author:
John Reekie

Constructor Summary
BasicLWPort()
          Create a new port
 
Method Summary
 int getPortId()
          Return the integer id of this port
 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 setPortId(int id)
          Set the integer id of this port.
 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

BasicLWPort

public BasicLWPort()
Create a new port

Method Detail

getPortId

public int getPortId()
Return the integer id of this port

Specified by:
getPortId in interface LWPort

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

setPortId

public void setPortId(int id)
Set the integer id of this port.

Specified by:
setPortId in interface LWPort

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.