|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--viceroy.MessagePath
Represents a path that a message passes over its lifetime
| Field Summary | |
private java.util.List |
path
Holds the actual path. |
| Constructor Summary | |
MessagePath()
Creates a new empty path |
|
MessagePath(MessageStatistics first)
Creates a new path, with the given element as the first one |
|
| Method Summary | |
void |
addPointToPath(MessageStatistics stats)
Adds the given point to the path, making it the last point added |
MessageStatistics |
getLastInPath()
Gets the last element in the path. |
java.util.List |
getPath()
Returns a view of the path elements. |
java.lang.String |
toString()
toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.util.List path
| Constructor Detail |
public MessagePath()
public MessagePath(MessageStatistics first)
first - the first element in path| Method Detail |
public void addPointToPath(MessageStatistics stats)
throws java.lang.IllegalArgumentException
stats - the given point to add
java.lang.IllegalArgumentExceptionpublic java.util.List getPath()
public MessageStatistics getLastInPath()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||