|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WobPort
This interface represents Wob ports.
| Field Summary | |
|---|---|
static int |
IN
getDirection() equals this constant if this is an in-port. |
static int |
OUT
getDirection() equals this constant if this is an out-port. |
| Method Summary | |
|---|---|
void |
delete()
Removes the port from the Wob. |
int |
getDirection()
Returns the direction of this port. |
java.lang.String |
getId()
Returns the ID of this port. |
int |
getPortNumber()
Returns the port number of this port. |
boolean |
isConnected()
Returns true if one or more wires are connected to this port or exports of this port, otherwise false. |
void |
setNamePatternArguments(java.lang.Object[] arguments)
If you specify "arguments" by calling this method, then the port name will be formatted using java.text.MessageFormat before it is presented to the user. |
void |
setPortNumber(int portNumber)
Sets the port number of this port |
| Field Detail |
|---|
static final int IN
static final int OUT
| Method Detail |
|---|
int getDirection()
int getPortNumber()
void setPortNumber(int portNumber)
portNumber - a port numberjava.lang.String getId()
boolean isConnected()
void delete()
void setNamePatternArguments(java.lang.Object[] arguments)
If you specify "arguments" by calling this method, then the port name will be formatted using java.text.MessageFormat before it is presented to the user. The corresponding port name (specified in config.xml) is assumed to be a pattern compatible with MessageFormat.
Example: If the port name is "Event occuring after {0}" and this method is called with the String array {"3 seconds"}, then the users will see the port name "Event occuring after 3 seconds".
arguments - an array of objects to be formatted and substituted.MessageFormat.format(String, Object[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||