|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.analysis.plot.OpenGraph
uchicago.src.sim.analysis.OpenSequenceGraph
uchicago.src.sim.analysis.NetSequenceGraph
public class NetSequenceGraph
A graph that captures a series of points (sequences) specialized for network statistics. This is specialized for network stats in that it allows you to add the plotting of such stats on the fly. It also contains methods to easily add such sequences, density, component count, etc. via code. Note that we are currently working on the robustness of these statistics. They should be used only as guides. The actual statistical analysis of your network should be done using established tools.
| Field Summary |
|---|
| Fields inherited from class uchicago.src.sim.analysis.OpenSequenceGraph |
|---|
SHOW_ALL, SHOW_FIRST, SHOW_LAST |
| Fields inherited from class uchicago.src.sim.analysis.plot.OpenGraph |
|---|
CIRCLE, CROSS, DIAMOND, fileName, FILLED_CIRCLE, FILLED_DIAMOND, FILLED_SQUARE, FILLED_TRIANGLE, frame, HISTOGRAM, inNormalState, location, model, movieMaker, plot, PLUS_SIGN, SEQUENCE, SQUARE, title, TRIANGLE, xIncr, xMax, xMin, yIncr, yMax, yMin |
| Fields inherited from interface uchicago.src.sim.gui.MediaProducer |
|---|
MPEG, QUICK_TIME |
| Constructor Summary | |
|---|---|
NetSequenceGraph(java.lang.String title,
SimModel model,
java.util.List nodeList)
Creates a NetSequencePlot with the specified title for the specified model. |
|
NetSequenceGraph(java.lang.String title,
SimModel model,
java.lang.String fileName,
int fileFormat,
java.util.List nodeList)
Creates a NetSequencePlot with the specified title, model, file name and file format. |
|
| Method Summary | |
|---|---|
void |
display()
Displays this graph. |
void |
plotAvgPathLength(java.lang.String legend)
Plots the average path length of the network. |
void |
plotAvgPathLength(java.lang.String legend,
java.awt.Color color)
Plots the average path length of the network. |
void |
plotAvgPathLength(java.lang.String legend,
java.awt.Color color,
int markStyle)
Plots the average path length of the network using the specified parameters. |
void |
plotAvgPathLength(java.lang.String legend,
int markStyle)
Plots the average path length of the network. |
void |
plotClusterCoefficient(java.lang.String legend)
Plots the cluster coefficient of the network. |
void |
plotClusterCoefficient(java.lang.String legend,
java.awt.Color color)
Plots the cluster coefficient of the network. |
void |
plotClusterCoefficient(java.lang.String legend,
java.awt.Color color,
int markStyle)
Plots the cluster coefficient of the network using the specified parameters. |
void |
plotClusterCoefficient(java.lang.String legend,
int markStyle)
Plots the cluster coefficient of the network. |
void |
plotComponentCount(java.lang.String legend)
Plots the component size of the network. |
void |
plotComponentCount(java.lang.String legend,
java.awt.Color color)
Plots the component size of the network. |
void |
plotComponentCount(java.lang.String legend,
java.awt.Color color,
int markStyle)
Plots the component size of the network using the specified parameters. |
void |
plotComponentCount(java.lang.String legend,
int markStyle)
Plots the component size of the network. |
void |
plotDensity(java.lang.String legend)
Plots the density of the network. |
void |
plotDensity(java.lang.String legend,
java.awt.Color color)
Plots the density of the network. |
void |
plotDensity(java.lang.String legend,
java.awt.Color color,
int markStyle)
Plots the density of the network using the specified parameters. |
void |
plotDensity(java.lang.String legend,
int markStyle)
Plots the density of the network. |
void |
plotDiameter(java.lang.String legend)
Plots the diameter of the network. |
void |
plotDiameter(java.lang.String legend,
java.awt.Color color)
Plots the diameter of the network. |
void |
plotDiameter(java.lang.String legend,
java.awt.Color color,
int markStyle)
Plots the diameter of the network using the specified parameters. |
void |
plotDiameter(java.lang.String legend,
int markStyle)
Plots the diameter of the network. |
void |
plotSymmetry(java.lang.String legend)
Plots the symmetry of the network. |
void |
plotSymmetry(java.lang.String legend,
java.awt.Color color)
Plots the symmetry of the network. |
void |
plotSymmetry(java.lang.String legend,
java.awt.Color color,
int markStyle)
Plots the symmetry of the network using the specified parameters. |
void |
plotSymmetry(java.lang.String legend,
int markStyle)
Plots the symmetry of the network. |
| Methods inherited from class uchicago.src.sim.analysis.OpenSequenceGraph |
|---|
addSequence, addSequence, addSequence, addSequence, createSequence, createSequence, createSequence, createSequence, getXAutoExpand, getXViewPolicy, getYAutoExpand, getYViewPolicy, record, setXAutoExpand, setXRange, setXViewPolicy, setYAutoExpand, setYRange, setYViewPolicy, updateGraph, writeToFile |
| Methods inherited from class uchicago.src.sim.analysis.plot.OpenGraph |
|---|
addMovieFrame, closeMovie, createBinDataSource, createListBinDataSource, createSequence, dispose, getAxisTitles, getSize, getTitle, getXIncrement, getXRange, getYIncrement, getYRange, setAxisTitles, setBars, setLocation, setMovieName, setSize, setSnapshotFileName, setXIncrement, setXTick, setYIncrement, step, takeSnapshot, updateXTick, zoom |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetSequenceGraph(java.lang.String title,
SimModel model,
java.util.List nodeList)
title - the title for this graph.model - the model associated with this graph
public NetSequenceGraph(java.lang.String title,
SimModel model,
java.lang.String fileName,
int fileFormat,
java.util.List nodeList)
title - the title of the graph.model - the model associated with this graphfileName - the file name to be used when this graph is dumped to a
filefileFormat - the format to be used for dumping data to the file. At
the moment only PlotModel.CSV (comma delimited) is supported.| Method Detail |
|---|
public void display()
display in class OpenGraphpublic void plotDensity(java.lang.String legend)
legend - the legend to display for the density sequence
public void plotDensity(java.lang.String legend,
java.awt.Color color)
legend - the legend to display for the density sequencecolor - the color of the density sequence plot
public void plotDensity(java.lang.String legend,
int markStyle)
legend - the legend to display for the density sequencemarkStyle - the style (shape etc.) of the point mark to
use. The markStyle is one of the following constants:
FILLED_CIRCLE, CROSS, SQUARE, FILLED_TRIANGLE, DIAMOND, CIRCLE,
PLUS_SIGN, FILLED_SQUARE, TRIANGLE, FILLED_DIAMOND.
public void plotDensity(java.lang.String legend,
java.awt.Color color,
int markStyle)
legend - the legend to display for the density sequencecolor - the color of the sequence plotmarkStyle - the style (shape etc.) of the point mark to
use. The markStyle is one of the following constants:
FILLED_CIRCLE, CROSS, SQUARE, FILLED_TRIANGLE, DIAMOND, CIRCLE,
PLUS_SIGN, FILLED_SQUARE, TRIANGLE, FILLED_DIAMOND.public void plotComponentCount(java.lang.String legend)
legend - the legend to display for the component sequence
public void plotComponentCount(java.lang.String legend,
java.awt.Color color)
legend - the legend to display for the component sequencecolor - the color of the component sequence plot
public void plotComponentCount(java.lang.String legend,
int markStyle)
legend - the legend to display for the component sequencemarkStyle - the style (shape etc.) of the point mark to
use. The markStyle is one of the following constants:
FILLED_CIRCLE, CROSS, SQUARE, FILLED_TRIANGLE, DIAMOND, CIRCLE,
PLUS_SIGN, FILLED_SQUARE, TRIANGLE, FILLED_DIAMOND.
public void plotComponentCount(java.lang.String legend,
java.awt.Color color,
int markStyle)
legend - the legend to display for the component sequencecolor - the color of the sequence plotmarkStyle - the style (shape etc.) of the point mark to
use. The markStyle is one of the following constants:
FILLED_CIRCLE, CROSS, SQUARE, FILLED_TRIANGLE, DIAMOND, CIRCLE,
PLUS_SIGN, FILLED_SQUARE, TRIANGLE, FILLED_DIAMOND.public void plotClusterCoefficient(java.lang.String legend)
legend - the legend to display for the cluster coefficient
sequence
public void plotClusterCoefficient(java.lang.String legend,
java.awt.Color color)
legend - the legend to display for the cluster coefficient
sequencecolor - the color of the cluster coefficient sequence plot
public void plotClusterCoefficient(java.lang.String legend,
int markStyle)
legend - the legend to display for the cluster coefficient
sequencemarkStyle - the style (shape etc.) of the point mark to
use. The markStyle is one of the following constants:
FILLED_CIRCLE, CROSS, SQUARE, FILLED_TRIANGLE, DIAMOND, CIRCLE,
PLUS_SIGN, FILLED_SQUARE, TRIANGLE, FILLED_DIAMOND.
public void plotClusterCoefficient(java.lang.String legend,
java.awt.Color color,
int markStyle)
legend - the legend to display for the cluster coefficient
sequencecolor - the color of the sequence plotmarkStyle - the style (shape etc.) of the point mark to
use. The markStyle is one of the following constants:
FILLED_CIRCLE, CROSS, SQUARE, FILLED_TRIANGLE, DIAMOND, CIRCLE,
PLUS_SIGN, FILLED_SQUARE, TRIANGLE, FILLED_DIAMOND.public void plotDiameter(java.lang.String legend)
legend - the legend to display for the diameter sequence
public void plotDiameter(java.lang.String legend,
java.awt.Color color)
legend - the legend to display for the diameter sequencecolor - the color of the diameter sequence plot
public void plotDiameter(java.lang.String legend,
int markStyle)
legend - the legend to display for the diameter sequencemarkStyle - the style (shape etc.) of the point mark to
use. The markStyle is one of the following constants:
FILLED_CIRCLE, CROSS, SQUARE, FILLED_TRIANGLE, DIAMOND, CIRCLE,
PLUS_SIGN, FILLED_SQUARE, TRIANGLE, FILLED_DIAMOND.
public void plotDiameter(java.lang.String legend,
java.awt.Color color,
int markStyle)
legend - the legend to display for the diameter sequencecolor - the color of the sequence plotmarkStyle - the style (shape etc.) of the point mark to
use. The markStyle is one of the following constants:
FILLED_CIRCLE, CROSS, SQUARE, FILLED_TRIANGLE, DIAMOND, CIRCLE,
PLUS_SIGN, FILLED_SQUARE, TRIANGLE, FILLED_DIAMOND.public void plotAvgPathLength(java.lang.String legend)
legend - the legend to display for the average path length
sequence
public void plotAvgPathLength(java.lang.String legend,
java.awt.Color color)
legend - the legend to display for the average path length sequencecolor - the color of the average path length sequence plot
public void plotAvgPathLength(java.lang.String legend,
int markStyle)
legend - the legend to display for the average path length
sequencemarkStyle - the style (shape etc.) of the point mark to
use. The markStyle is one of the following constants:
FILLED_CIRCLE, CROSS, SQUARE, FILLED_TRIANGLE, DIAMOND, CIRCLE,
PLUS_SIGN, FILLED_SQUARE, TRIANGLE, FILLED_DIAMOND.
public void plotAvgPathLength(java.lang.String legend,
java.awt.Color color,
int markStyle)
legend - the legend to display for the average path length sequencecolor - the color of the sequence plotmarkStyle - the style (shape etc.) of the point mark to
use. The markStyle is one of the following constants:
FILLED_CIRCLE, CROSS, SQUARE, FILLED_TRIANGLE, DIAMOND, CIRCLE,
PLUS_SIGN, FILLED_SQUARE, TRIANGLE, FILLED_DIAMOND.public void plotSymmetry(java.lang.String legend)
legend - the legend to display for the symmetry sequence
public void plotSymmetry(java.lang.String legend,
java.awt.Color color)
legend - the legend to display for the symmetry sequencecolor - the color of the symmetry sequence plot
public void plotSymmetry(java.lang.String legend,
int markStyle)
legend - the legend to display for the symmetry sequencemarkStyle - the style (shape etc.) of the point mark to
use. The markStyle is one of the following constants:
FILLED_CIRCLE, CROSS, SQUARE, FILLED_TRIANGLE, DIAMOND, CIRCLE,
PLUS_SIGN, FILLED_SQUARE, TRIANGLE, FILLED_DIAMOND.
public void plotSymmetry(java.lang.String legend,
java.awt.Color color,
int markStyle)
legend - the legend to display for the symmetry sequencecolor - the color of the sequence plotmarkStyle - the style (shape etc.) of the point mark to
use. The markStyle is one of the following constants:
FILLED_CIRCLE, CROSS, SQUARE, FILLED_TRIANGLE, DIAMOND, CIRCLE,
PLUS_SIGN, FILLED_SQUARE, TRIANGLE, FILLED_DIAMOND.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||