|
||||||||||
| 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.LoopCounter
public class LoopCounter
The Class LoopCounter defines the control flow of the ForTask.
| Constructor Summary | |
|---|---|
LoopCounter(java.lang.String name,
java.lang.Integer from,
java.lang.Integer to)
Instantiates a new loop counter. |
|
LoopCounter(java.lang.String name,
java.lang.Integer from,
java.lang.Integer to,
java.lang.Integer step)
Instantiates a new loop counter. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getFrom()
Gets the from of the counter. |
AbstractPort |
getFromPort()
Returns the from-port if it exist, otherwise returns null. |
java.lang.String |
getStep()
Gets the step of the counter. |
AbstractPort |
getStepPort()
Returns the step-port if it exist, otherwise null. |
java.lang.String |
getTo()
Gets the to of the counter. |
AbstractPort |
getToPort()
Returns the to-port if it exist, otherwise null. |
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. |
| 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 LoopCounter(java.lang.String name,
java.lang.Integer from,
java.lang.Integer to,
java.lang.Integer step)
t.setLoopCounter(new LoopCounter("name", 1, null, null))
is
t.getPort("name/to") t.getPort("name/step")
can be used to access the attributes via ports.
name - the name of the counterfrom - the starting pointto - the end pointstep - the step
public LoopCounter(java.lang.String name,
java.lang.Integer from,
java.lang.Integer to)
t.setLoopCounter(new LoopCounter("name", 1, null))
is
t.getPort("name/to")
can be used to access the attribute via ports.
name - the name of the counterfrom - the starting pointto - the end point| Method Detail |
|---|
public java.lang.String getFrom()
public java.lang.String getTo()
public java.lang.String getStep()
public AbstractPort getFromPort()
public AbstractPort getToPort()
public AbstractPort getStepPort()
public boolean isInputPort()
AbstractPort
isInputPort in class AbstractPortpublic boolean isOutputPort()
AbstractPort
isOutputPort in class AbstractPortpublic 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 | |||||||||