|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.shiwa.fgi.iwir.AbstractPort
org.shiwa.fgi.iwir.AbstractDataPort
org.shiwa.fgi.iwir.LoopPort
public class LoopPort
The Class LoopPort is used to express a cyclic data flow. LoopPort has an extra field value. The value can be set and used to evaluate conditions.
| Constructor Summary | |
|---|---|
LoopPort(java.lang.String name,
DataType type)
Instantiates a new loop port. |
|
LoopPort(java.lang.String name,
java.lang.String type)
Instantiates a new loop port. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
AbstractDataPort |
getInitSource()
Gets the initial source of the loop port. |
AbstractDataPort |
getLoopSource()
Gets the loop source of the loop port. |
java.lang.String |
getValue()
Gets the value in string representation. |
int |
hashCode()
|
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. |
void |
setValue(boolean b)
Sets the boolean value for the port. |
void |
setValue(double d)
Sets the double value for the port. |
void |
setValue(int i)
Sets the integer value for the port. |
void |
setValue(java.lang.String s)
Sets the string value for the port. |
| Methods inherited from class org.shiwa.fgi.iwir.AbstractPort |
|---|
addConstraint, addProperty, getAllSuccessors, getConstraints, getMyTask, getName, getPredecessors, getProperties, getSuccessors, getType, getUniqueId, removeProperty, setType, setType, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LoopPort(java.lang.String name,
DataType type)
name - the name of the loop porttype - the type of the loop port
public LoopPort(java.lang.String name,
java.lang.String type)
throws java.lang.IllegalArgumentException
name - the nametype - the type
java.lang.IllegalArgumentException - if the type is not valid| Method Detail |
|---|
public void setValue(java.lang.String s)
s - the new valuepublic void setValue(double d)
d - the double valuepublic void setValue(int i)
i - the integer valuepublic void setValue(boolean b)
b - the boolean valuepublic java.lang.String getValue()
public boolean isInputPort()
AbstractPort
isInputPort in class AbstractPortpublic boolean isOutputPort()
AbstractPort
isOutputPort in class AbstractPort
public AbstractDataPort getInitSource()
throws NotWellFormedException
NotWellFormedException - if the data flow is invalid
public AbstractDataPort getLoopSource()
throws NotWellFormedException
NotWellFormedException - if the data flow is invalidpublic int hashCode()
hashCode in class AbstractPortpublic boolean equals(java.lang.Object obj)
equals in class AbstractPort
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||