|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kwebs.Statistics
public class Statistics
Class for holding measured statistical data about a layout process. The measurement is a shared process between server and client since parts of the layout process can only measured at one of each side. This class provides higher order methods for accessing the statistical data which is derived from the underlying measurements.
Field Summary | |
---|---|
static IProperty<String> |
STATISTICS
The statistics property. |
static String |
STATISTICS_ID
Identifier for the statistics property. |
Constructor Summary | |
---|---|
Statistics()
|
Method Summary | |
---|---|
void |
fromString(String string)
Parses statistical data from a string representation. |
int |
getBytes()
Returns the length of the serial notation of the model of which the layout has been calculated. |
int |
getEdges()
Returns the number of edges of the model which the layout has been calculated for. |
int |
getElementCount()
The number of elements in the model which the layout was calculated for. |
int |
getLabels()
Returns the number of labels of the model which the layout has been calculated for. |
double |
getLayoutPart()
Returns the percentual part of the layout process responsible solely for the layout process. |
double |
getLayoutSpeed()
Returns the speed of the layout process in graph elements per second. |
double |
getLocalSupplementalPart()
Returns the percentual part of the layout process responsible for local supplementary operations. |
double |
getNetworkPart()
Returns the percentual part of the layout process responsible for network transfer. |
int |
getNodes()
Returns the number of nodes of the model which the layout has been calculated for. |
int |
getPorts()
Returns the number of ports of the model which the layout has been calculated for. |
double |
getRemoteSupplementalPart()
Returns the percentual part of the layout process responsible for remote supplementary operations. |
double |
getSupplementalPart()
Returns the percentual part of the layout process responsible for local and remote supplementary operations. |
double |
getTimeLayout()
Returns the time the layout took solely in nanoseconds. |
double |
getTimeLocalSupplemental()
Returns the time the local supplementary operations took in nanoseconds. |
double |
getTimeNetwork()
Returns the time the network transfer took in nanoseconds. |
double |
getTimeRemoteSupplemental()
Returns the time the remote supplementary operations took in nanoseconds. |
double |
getTimeTotal()
Returns the total time the layout took in nanoseconds. |
double |
getTotalSpeed()
Returns the speed of the layout process in graph elements per second. |
boolean |
isCompression()
Returns whether the serial notation was in compressed form or not. |
void |
setBytes(int bytes)
Sets the length of the serial notation of the model of which the layout has been calculated. |
void |
setCompression(boolean compression)
Sets whether the serial notation was in compressed form or not. |
void |
setEdges(int edges)
Sets the number of edges of the model which the layout has been calculated for. |
void |
setLabels(int labels)
Sets the number of edges of the model which the layout has been calculated for. |
void |
setNodes(int nodes)
Sets the number of edges of the model which the layout has been calculated for. |
void |
setPorts(int ports)
Sets the number of ports of the model which the layout has been calculated for. |
void |
setTimeLayout(double timeLayout)
Sets the total time the layout took solely in nanoseconds. |
void |
setTimeLocalSupplemental(double timeLocalSupplemental)
Sets the time the local supplementary operations took in nanoseconds. |
void |
setTimeNetwork(double timeNetwork)
Sets the time the network transfer took in nanoseconds. |
void |
setTimeRemoteSupplemental(double timeRemoteSupplemental)
Sets the time the remote supplementary operations took in nanoseconds. |
void |
setTimeTotal(double timeTotal)
Sets the total time the layout took in nanoseconds. |
String |
toString()
Returns a string representation of this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String STATISTICS_ID
public static final IProperty<String> STATISTICS
Constructor Detail |
---|
public Statistics()
Method Detail |
---|
public int getBytes()
public void setBytes(int bytes)
bytes
- the length of the serial notation of the model of which the layout has been calculated.public boolean isCompression()
public void setCompression(boolean compression)
compression
- whether the serial notation was in compressed form or notpublic int getEdges()
public void setEdges(int edges)
edges
- the number of edges of the model which the layout has been calculated for.public int getLabels()
public void setLabels(int labels)
labels
- the number of edges of the model which the layout has been calculated forpublic int getNodes()
public void setNodes(int nodes)
nodes
- the number of edges of the model which the layout has been calculated forpublic int getPorts()
public void setPorts(int ports)
ports
- the number of ports of the model which the layout has been calculated forpublic double getTimeTotal()
public void setTimeTotal(double timeTotal)
timeTotal
- the total time the layout took in nanosecondspublic double getTimeLayout()
public void setTimeLayout(double timeLayout)
timeLayout
- the total time the layout took solely in nanosecondspublic double getTimeNetwork()
public void setTimeNetwork(double timeNetwork)
timeNetwork
- the time the network transfer took in nanosecondspublic double getTimeLocalSupplemental()
public void setTimeLocalSupplemental(double timeLocalSupplemental)
timeLocalSupplemental
- the time the local supplementary operations took in nanosecondspublic double getTimeRemoteSupplemental()
public void setTimeRemoteSupplemental(double timeRemoteSupplemental)
timeRemoteSupplemental
- the time the remote supplementary operations took in nanosecondspublic int getElementCount()
public double getTotalSpeed()
public double getLayoutSpeed()
public double getNetworkPart()
public double getLayoutPart()
public double getSupplementalPart()
public double getLocalSupplementalPart()
public double getRemoteSupplementalPart()
public String toString()
toString
in class Object
public void fromString(String string)
string
- string representation from statistical data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |