|
||||||||||
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.InputPort
public class InputPort
The Class InputPort servers as an identifier for the data flow. InputPort has an extra field value. The value can be set and used to evaluate conditions.
Constructor Summary | |
---|---|
InputPort(java.lang.String name,
DataType type)
Instantiates a new input port. |
|
InputPort(java.lang.String name,
java.lang.String type)
Instantiates a new input port. |
Method Summary | |
---|---|
java.lang.String |
getValue()
Gets the value in string representation. |
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, 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 |
---|
public InputPort(java.lang.String name, DataType type)
name
- the name of the input porttype
- the type of the input portpublic InputPort(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 validMethod 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 AbstractPort
public boolean isOutputPort()
AbstractPort
isOutputPort
in class AbstractPort
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |