diva.pod.lwgraph
Interface LWPort

All Known Implementing Classes:
BasicLWPort

public interface LWPort

The interface to be implemented for ports that are used used with the light-weight component network.

Version:
$Revision: 1.2 $
Author:
John Reekie

Method Summary
 int getPortId()
          Return the integer id of this port.
 void setPortId(int id)
          Set the integer id of this port.
 

Method Detail

getPortId

int getPortId()
Return the integer id of this port. Although not strictly necessary, it is recommended that the default value returned by this method be -1, in order to catch errors in graph usage.


setPortId

void setPortId(int id)
Set the integer id of this port. Clients can throw an exception if the id has previsouly been set, in the reasonable assumption that indicates a programming error.



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