org.simBio.sim.analyzer.csv
Class CsvMaker
java.lang.Object
org.simBio.core.Component
org.simBio.core.Parameter
org.simBio.core.Composite
org.simBio.core.Analyzer
org.simBio.sim.analyzer.csv.CsvMaker
- All Implemented Interfaces:
- Node
- Direct Known Subclasses:
- ALaCarte, Siblings, Total
public abstract class CsvMaker
- extends Analyzer
Writes values to a file in csv format.
If a directory which does not exist is included in the file path, the directory is created.
- Version:
- $Id: CsvMaker.java,v 1.5 2007/10/29 07:09:05 nsarai Exp $
- Author:
- Nobuaki Sarai
Method Summary |
protected void |
analyze(double t)
Call MakeValueLine() to write current value. |
protected void |
end()
Close csv file. |
protected abstract java.lang.String |
MakeLabelLine()
Label line |
protected abstract java.lang.String |
MakeValueLine()
|
protected void |
prepare()
Open csv file, write labels by MakeLabelLine(). |
Methods inherited from class org.simBio.core.Component |
addDydt, getIndent, getIndentedShortName, getName, getName, getParent, getRoot, getShortName, getUnits, isNamed, isPrefixed, logIndented, quit, setLinks |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elapsedTime
public Node elapsedTime
interval
public double interval
onset
public double onset
offset
public double offset
isActive
public Component isActive
fileName
public Component fileName
CsvMaker
public CsvMaker()
prepare
protected void prepare()
- Open csv file, write labels by MakeLabelLine().
- Overrides:
prepare
in class Parameter
- See Also:
Component.prepare()
analyze
protected void analyze(double t)
- Call MakeValueLine() to write current value.
- Specified by:
analyze
in class Analyzer
- Parameters:
t
- time- See Also:
Analyzer.analyze(double)
end
protected void end()
- Close csv file.
- Overrides:
end
in class Component
- See Also:
Component.end()
MakeLabelLine
protected abstract java.lang.String MakeLabelLine()
- Label line
- Returns:
- label strings
MakeValueLine
protected abstract java.lang.String MakeValueLine()
Copyright © 2002-2008 Cell/Biodinamics simulation project. All Rights Reserved.