|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javanetworkanalyzer.data.PathLengthData<T>
public abstract class PathLengthData<T extends Number>
Stores information about the shortest path lengths from one node to the other nodes in the network.
| Field Summary | |
|---|---|
protected int |
count
Number of shortest path lengths accumulated in this instance. |
protected static String |
SPL_ERROR
Error message to be given when no shortest path lengths have been accumulated. |
| Constructor Summary | |
|---|---|
PathLengthData()
Initializes a new instance of PathLengthData. |
|
| Method Summary | |
|---|---|
abstract void |
addSPLength(T length)
Accumulates a new shortest path length to this data instance. |
void |
clear()
Clears all path length data information. |
abstract double |
getAverageLength()
Average shortest path length. |
int |
getCount()
Gets the number of shortest path lengths. |
abstract T |
getMaxLength()
Longest among the shortest path lengths added to this data instance. |
abstract T |
getTotalLength()
Gets the total length of shortest paths. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int count
protected static final String SPL_ERROR
| Constructor Detail |
|---|
public PathLengthData()
PathLengthData.
| Method Detail |
|---|
public void clear()
public int getCount()
public abstract void addSPLength(T length)
length - Length of a new shortest path to be accumulated.public abstract T getMaxLength()
public abstract T getTotalLength()
public abstract double getAverageLength()
IllegalStateException - If no SPLs were accumulated in this
instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||