|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.analysis.ChartArchiver
public class ChartArchiver
Saves and loads custom charts via their XML descriptions. The data
required to create such charts is persisted between application instances
via an xml file. The file is stored in $HOME/fully_qualified_model_name_as
_dir/charts.xml. So, for example, if the home directory is /home/nick and the
fully qualified model name is uchicago.src.sim.heatBugs, then the file path
is
/home/nick/.repast/uchicago/src/sim/heatBugs/charts.xml.
The xml itself is human readable, but is liable to change. An example follows:
| Constructor Summary | |
|---|---|
ChartArchiver()
|
|
| Method Summary | |
|---|---|
static java.util.ArrayList |
loadCharts(SimModel model)
Creates chart models from their XML descriptions and returns these models in an ArrayList. |
static void |
saveCharts(java.lang.String fqModelName,
java.util.ArrayList charts)
Saves the list of AbstractChartModels. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChartArchiver()
| Method Detail |
|---|
public static java.util.ArrayList loadCharts(SimModel model)
model - the SimModel associated with the chart models
public static void saveCharts(java.lang.String fqModelName,
java.util.ArrayList charts)
fqModelName - the fully qualified name of the model associated with
the AbstractChartModelscharts - the list of AbstractChartModels to save
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||