public class Link extends NetworkObject
Modifier and Type | Field and Description |
---|---|
static int |
EVENT_MESSAGE_SENT |
static int |
EVENT_MESSAGE_TRANSFERRED |
static int |
EVENT_SOURCE_UPDATE |
static int |
EVENT_TARGET_UPDATE |
EVENT_ID_UPDATE, EVENT_SETTINGS_UPDATE, EVENT_STATS_UPDATE, EVENT_STATUS_UPDATE, settings, settingsLock, stats, statsLock, status, STATUS_ERROR, STATUS_FAILED, STATUS_NOTSTARTED, STATUS_PAUSED, STATUS_RUNNING, STATUS_TERMINATED, STATUS_WAITING, statusLock
Constructor and Description |
---|
Link(java.lang.String id) |
Link(java.lang.String id,
Link l) |
Link(java.lang.String id,
Processor source,
Processor target) |
Modifier and Type | Method and Description |
---|---|
void |
destory() |
MessageOutQueue |
getQueue() |
char |
getShortType() |
Processor |
getSource() |
Processor |
getTarget() |
java.lang.String |
getType() |
boolean |
isComplete() |
boolean |
send(BackEndMessage bm) |
void |
setDefaultSettings(NetworkState ns) |
void |
setDefaultStats(NetworkState ns) |
void |
setQueue(MessageOutQueue queue) |
void |
setSource(Processor p) |
void |
setSource(Processor p,
java.lang.Object caller) |
void |
setTarget(Processor p) |
void |
setTarget(Processor p,
java.lang.Object caller) |
void |
transfer() |
addListener, addListener, copyFrom, doSpeedChange, dumpSettings, dumpStats, getID, getSetting, getStat, getStatus, incrementSetting, incrementSetting, incrementSetting, incrementSetting, incrementStat, incrementStat, incrementStat, incrementStat, notifyListeners, removeListener, resetForLoad, setID, setID, setSetting, setSetting, setStat, setStat, setStatus, setStatus, toLogID, toString
public static final int EVENT_TARGET_UPDATE
public static final int EVENT_SOURCE_UPDATE
public static final int EVENT_MESSAGE_SENT
public static final int EVENT_MESSAGE_TRANSFERRED
public Link(java.lang.String id)
public Link(java.lang.String id, Link l)
public Processor getSource()
public Processor getTarget()
public boolean isComplete()
public void setSource(Processor p)
public void setTarget(Processor p)
public void setSource(Processor p, java.lang.Object caller)
public void setTarget(Processor p, java.lang.Object caller)
public void setDefaultSettings(NetworkState ns)
setDefaultSettings
in class NetworkObject
public void setDefaultStats(NetworkState ns)
setDefaultStats
in class NetworkObject
public java.lang.String getType()
getType
in class NetworkObject
public void setQueue(MessageOutQueue queue)
public boolean send(BackEndMessage bm)
public void transfer()
public MessageOutQueue getQueue()
public char getShortType()
getShortType
in class NetworkObject
public void destory()
destory
in class NetworkObject