INRIA & FluxMedia

fr.fluxmedia.transmorpher.graph
Class PortList

java.lang.Object
  extended by fr.fluxmedia.transmorpher.graph.PortList

public class PortList
extends java.lang.Object

Transmorpher graph list of ports/channels

Since:
jdk 1.3 / SAX 2.0
Author:
Jerome.Euzenat@inrialpes.fr

Field Summary
protected static int DEFAULT_SIZE
          Description of the Field
protected  java.util.Vector ports
          Description of the Field
 
Constructor Summary
PortList()
          Constructor for the PortList object
PortList(int i)
          Constructor for the PortList object
 
Method Summary
 void addPort(Port p)
          Adds a feature to the Port attribute of the PortList object
 boolean checkPorts()
          NOT YET IMPLEMENTED *
 void generateJavaCode(Writer file)
          Prints the Java code for the execution of the call
 void generateXML()
          Prints the XML expression of the call NOTE that getChannel().getName() would be cleaner
 java.lang.String[] getNames()
          Gets the names attribute of the PortList object
 Port getPort(int i)
          Gets the port attribute of the PortList object
 int length()
          Returns the length of this PortList
 void removePort(Port p)
          Description of the Method
 void setPort(int i, Port p)
          Sets the port attribute of the PortList object
 java.lang.String[] toStringList()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SIZE

protected static int DEFAULT_SIZE
Description of the Field


ports

protected java.util.Vector ports
Description of the Field

Constructor Detail

PortList

PortList()
Constructor for the PortList object


PortList

PortList(int i)
Constructor for the PortList object

Parameters:
i - Description of the Parameter
Method Detail

length

public int length()
Returns the length of this PortList

Returns:
the length of this Portlist

setPort

public void setPort(int i,
                    Port p)
Sets the port attribute of the PortList object

Parameters:
i - The new port value
p - The new port value

getPort

public Port getPort(int i)
Gets the port attribute of the PortList object

Parameters:
i - the index in this PortList
Returns:
The port value

addPort

public void addPort(Port p)
Adds a feature to the Port attribute of the PortList object

Parameters:
p - The feature to be added to the Port attribute

removePort

public void removePort(Port p)
Description of the Method

Parameters:
p - Description of the Parameter

checkPorts

public boolean checkPorts()
NOT YET IMPLEMENTED *

Returns:
Description of the Return Value

getNames

public java.lang.String[] getNames()
Gets the names attribute of the PortList object

Returns:
The names value

toStringList

public final java.lang.String[] toStringList()
Description of the Method

Returns:
Description of the Return Value

generateXML

public void generateXML()
Prints the XML expression of the call NOTE that getChannel().getName() would be cleaner


generateJavaCode

public void generateJavaCode(Writer file)
Prints the Java code for the execution of the call

Parameters:
file - Description of the Parameter

INRIA & FluxMedia

..no bottom yet...