|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectCommLink
public class CommLink
One link (directed edge) in a communication graph. Contains message queue and source and destination addresses Intended to be shared between "to" and "from" graph representations. (both of which are internal to CommGraph)
| Nested Class Summary | |
|---|---|
static interface |
CommLink.IChannelData
Interface for extra pieces of data to tag channel with. |
| Constructor Summary | |
|---|---|
CommLink()
Default constructor, makes this an invalid link |
|
CommLink(CommLink src)
Copy constructor Use of new MsgQueue hides lazy copy. |
|
CommLink(int nFrom,
int nTo)
Constructor Creates new link from nFrom to nTo makes channel a simple queue |
|
CommLink(int nFrom,
int nTo,
IMsgChannel channelNew)
Constructor Creates new link from nFrom to nTo, using channelNew as the new message channel |
|
| Method Summary | |
|---|---|
int |
from()
|
CommLink.IChannelData |
getChannelData()
|
IMsgChannel |
queue()
Accessor for message queue, use to access send and recieve methods. |
void |
setChannelData(CommLink.IChannelData data)
|
int |
to()
|
boolean |
validQ()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommLink()
public CommLink(CommLink src)
src - Link to copy from
public CommLink(int nFrom,
int nTo)
nFrom - from index for new linknTo - to index for new link
public CommLink(int nFrom,
int nTo,
IMsgChannel channelNew)
nFrom - from index for new linknTo - to index for new linkchannelNew - new channel to point to verbatim.| Method Detail |
|---|
public boolean validQ()
public int to()
public int from()
public IMsgChannel queue()
public void setChannelData(CommLink.IChannelData data)
public CommLink.IChannelData getChannelData()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||