|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A port interface is either a provided or a required interface for one or more ports.
A provided interface is the set of behavioral features that the owning xholon provides to its environment through a specific port. In practical terms, on a non-conjugated port, these are the signals that are allowed in incoming messages received at the port. On a conjugated port, these are the signals that are allowed in outoing messages.
A required interface is the set of services that the owning xholon expects from its environment through a specific port. In practical terms, on a non-conjugated port, these are the signals that are allowed in outgoing messages sent from the port. On a conjugated port, these are the signals that are allowed in incoming messages.
Field Summary | |
static int |
SIGNAL_ID_NOT_FOUND
|
static java.lang.String |
SIGNAL_NAME_NOT_FOUND
|
Method Summary | |
int[] |
getInterface()
Get the provided or required interface of this port. |
java.lang.String[] |
getInterfaceNames()
Get the names of the signals in the provided or required interface of this port. |
int |
getSignalId(java.lang.String name)
Get the ID of an interface signal, given its name. |
java.lang.String |
getSignalName(int id)
Get the name of an interface signal, given its ID. |
int |
getSize()
Get number of signals in this provided or required interface. |
void |
setInterface(int[] nterface)
Set the provided or required interface of this port. |
void |
setInterfaceNames(java.lang.String[] nterfaceNames)
Set the names of the signals in the provided or required interface of this port. |
Field Detail |
public static final int SIGNAL_ID_NOT_FOUND
public static final java.lang.String SIGNAL_NAME_NOT_FOUND
Method Detail |
public int[] getInterface()
public void setInterface(int[] nterface)
nterface
- An array of zero or more signal IDs.public java.lang.String[] getInterfaceNames()
public void setInterfaceNames(java.lang.String[] nterfaceNames)
nterfaceNames
- An array of zero or more signal names.
These should be in the same order as the corresponding signal IDs used in setInterface().public java.lang.String getSignalName(int id)
id
- A signal ID.
public int getSignalId(java.lang.String name)
name
- The name of a signal.
public int getSize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |