|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.bonn.cs.iv.bonnmotion.App
edu.bonn.cs.iv.bonnmotion.apps.Statistics
public class Statistics
Application that calculates various statistics for movement scenarios.
Field Summary | |
---|---|
protected int |
flags
|
protected java.lang.String |
name
|
protected static boolean |
printTime
|
protected double[] |
radius
|
protected static double |
secG
|
protected static double |
secM
|
protected static double |
secN
|
protected static double |
secP
|
protected static double |
secS
|
protected static double |
secU
|
static int |
STATS_MINCUT
|
static int |
STATS_NODEDEG
|
static int |
STATS_PARTDEG
|
static int |
STATS_PARTITIONS
|
static int |
STATS_STABILITY
|
static int |
STATS_UNIDIRECTIONAL
|
Constructor Summary | |
---|---|
Statistics(java.lang.String[] args)
|
Method Summary | |
---|---|
void |
go(java.lang.String[] _args)
Main method from where all the magic starts ... |
static void |
main(java.lang.String[] args)
|
static void |
overall(Scenario s,
double[] radius,
java.lang.String basename)
Calculate statistics averaged over the whole simulation time. |
protected boolean |
parseArg(char key,
java.lang.String val)
|
protected static void |
pmerge(int[] idx,
int[] size,
int i,
int j)
Helper function for overall(), merge two partitions. |
static void |
printHelp()
|
static void |
progressive(int nodes,
double duration,
edu.bonn.cs.iv.util.Heap sched,
boolean bidirectional,
int which,
java.lang.String basename)
Calculates statistics' devolution over time. |
static double |
schedule(Scenario s,
edu.bonn.cs.iv.util.Heap sched,
double radius,
boolean calculateMobility)
Put LinkStatusChange-events into a heap. |
Methods inherited from class edu.bonn.cs.iv.bonnmotion.App |
---|
exceptionHandler, openPrintWriter, parse, parseArg, parseDoubleArray, parseIntArray, parseStringArray, stringArrayConcat |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STATS_NODEDEG
public static final int STATS_PARTITIONS
public static final int STATS_MINCUT
public static final int STATS_STABILITY
public static final int STATS_UNIDIRECTIONAL
public static final int STATS_PARTDEG
protected static double secP
protected static double secM
protected static double secN
protected static double secS
protected static double secU
protected static double secG
protected static boolean printTime
protected java.lang.String name
protected double[] radius
protected int flags
Constructor Detail |
---|
public Statistics(java.lang.String[] args) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
Method Detail |
---|
public void go(java.lang.String[] _args) throws java.io.FileNotFoundException, java.io.IOException
App
go
in class App
java.io.FileNotFoundException
java.io.IOException
public static void progressive(int nodes, double duration, edu.bonn.cs.iv.util.Heap sched, boolean bidirectional, int which, java.lang.String basename) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public static double schedule(Scenario s, edu.bonn.cs.iv.util.Heap sched, double radius, boolean calculateMobility)
protected static void pmerge(int[] idx, int[] size, int i, int j)
public static void overall(Scenario s, double[] radius, java.lang.String basename) throws java.io.FileNotFoundException
java.io.FileNotFoundException
protected boolean parseArg(char key, java.lang.String val)
parseArg
in class App
public static void printHelp()
public static void main(java.lang.String[] args) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |