org.shiwa.fgi.iwir
Class OutputPort

java.lang.Object
  extended by org.shiwa.fgi.iwir.AbstractPort
      extended by org.shiwa.fgi.iwir.AbstractDataPort
          extended by org.shiwa.fgi.iwir.OutputPort

public class OutputPort
extends AbstractDataPort

The Class OutputPort serves as identifier for the data flow.


Constructor Summary
OutputPort(java.lang.String name, DataType type)
          Instantiates a new output port.
OutputPort(java.lang.String name, java.lang.String type)
          Instantiates a new output port.
 
Method Summary
 boolean isInputPort()
          Checks if the port is an instance of ONE OF the input ports.
 boolean isOutputPort()
          Checks if the port is an instance of ONE OF the output ports.
 
Methods inherited from class org.shiwa.fgi.iwir.AbstractPort
addConstraint, addProperty, equals, getAllSuccessors, getConstraints, getMyTask, getName, getPredecessors, getProperties, getSuccessors, getType, getUniqueId, hashCode, removeProperty, setType, setType, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OutputPort

public OutputPort(java.lang.String name,
                  DataType type)
Instantiates a new output port.

Parameters:
name - the name
type - the type

OutputPort

public OutputPort(java.lang.String name,
                  java.lang.String type)
           throws java.lang.IllegalArgumentException
Instantiates a new output port.

Parameters:
name - the name
type - the type
Throws:
java.lang.IllegalArgumentException - if the type is not valid
Method Detail

isInputPort

public boolean isInputPort()
Description copied from class: AbstractPort
Checks if the port is an instance of ONE OF the input ports.

Specified by:
isInputPort in class AbstractPort
Returns:
true, if is input port

isOutputPort

public boolean isOutputPort()
Description copied from class: AbstractPort
Checks if the port is an instance of ONE OF the output ports.

Specified by:
isOutputPort in class AbstractPort
Returns:
true, if is output port