public class TreeSumID extends Algorithm
FAIL_BYZAN, FAIL_CLEAN, FAIL_NONE
Constructor and Description |
---|
TreeSumID() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
algorithm()
This method should be overridden by any implementing child class.
|
display, display, doMainLoop, fail, fail, getDefaultPort, getFailType, getID, getLinkBandwidth, getLinkDelay, getLinks, getMemory, getNeighborDownLink, getNeighbors, getNeighborsLink, getPort, getSourceLinks, getSources, getStatus, getTick, hasLink, hasNeighbor, isRoot, pause, print, receive, receive, run, send, send, send, sendLink, sendLink, terminate, unpause
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public java.lang.Object algorithm()
Algorithm
Algorithm.doMainLoop()
returns false. If the algorithm is finished it
can break or return out of this loop immediately with out checking
Algorithm.doMainLoop()
. All calls to Algorithm.send(dans.algorithm.Message)
and Algorithm.receive()
should be contained in such a loop. A value maybe
returned and will be displayed next to the node in the front-end when the
algorithm terminates. Otherwise null can be returned. See the description
of the Algorithm
class for more details.
This method should not be called directly, just overridden by a child class.