org.shiwa.fgi.iwir
Class UnionPort

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

public class UnionPort
extends AbstractDataPort

The Class UnionPort is used to collect and access data produced in different iteration executions.


Constructor Summary
UnionPort(java.lang.String name, DataType type)
          Instantiates a new union port.
UnionPort(java.lang.String name, java.lang.String type)
          Instantiates a new union 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

UnionPort

public UnionPort(java.lang.String name,
                 DataType type)
Instantiates a new union port.

Parameters:
name - the name
type - the type

UnionPort

public UnionPort(java.lang.String name,
                 java.lang.String type)
          throws java.lang.IllegalArgumentException
Instantiates a new union 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