org.shiwa.fgi.iwir
Class LoopElement

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

public class LoopElement
extends AbstractDataPort

The Class LoopElement controls the control flow of the ForEachTask.


Constructor Summary
LoopElement(java.lang.String name, DataType type)
          Instantiates a new loop element.
LoopElement(java.lang.String name, java.lang.String type)
          Instantiates a new loop element.
 
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

LoopElement

public LoopElement(java.lang.String name,
                   DataType type)
Instantiates a new loop element.

Parameters:
name - the name of the loop element
type - the type of the loop element

LoopElement

public LoopElement(java.lang.String name,
                   java.lang.String type)
            throws java.lang.IllegalArgumentException
Instantiates a new loop element.

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