org.simBio.sim.analyzer.csv.keep
Class TimeSeriesKeeper

java.lang.Object
  extended by org.simBio.core.Component
      extended by org.simBio.core.Parameter
          extended by org.simBio.core.Composite
              extended by org.simBio.core.Analyzer
                  extended by org.simBio.sim.analyzer.measure.AbstractMeasure
                      extended by org.simBio.sim.analyzer.csv.keep.TimeSeriesKeeper
All Implemented Interfaces:
Node, ITimeSeries

public class TimeSeriesKeeper
extends AbstractMeasure
implements ITimeSeries

Keep time series data and write to csv.

Version:
$Id: TimeSeriesKeeper.java,v 1.1 2007/12/18 04:55:58 mikaelwing Exp $
Author:
Nobuaki Sarai

Field Summary
 Node elapsedTime
           
protected  java.util.List targets_
           
 
Fields inherited from class org.simBio.sim.analyzer.measure.AbstractMeasure
interval, offset, onset
 
Fields inherited from class org.simBio.core.Parameter
value
 
Constructor Summary
TimeSeriesKeeper()
           
 
Method Summary
protected  void end()
          called at the end of integration,
計算終了時に呼ばれます。
 XYSeriesCollection getXYSeriesCollection()
           
 java.lang.String getXYSeriesLabel()
           
protected  void MakeLabelLine()
          prepare XYSeries for each target.
protected  void MakeValueLine()
          set target value at the XYSeries.
protected  void measure(double t)
           
protected  void prepare()
          親が自分と同じ名前のpublic doubleを持っていれば、自分の値を設定する。
 
Methods inherited from class org.simBio.sim.analyzer.measure.AbstractMeasure
analyze
 
Methods inherited from class org.simBio.core.Composite
accept, getLink, getNode, getNodesIterator, getNodesSize
 
Methods inherited from class org.simBio.core.Parameter
addValue, getValue, getValueString, setInitializer, setValue, setValueString, setValueToField
 
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
 
Methods inherited from interface org.simBio.core.Node
addDydt, addValue, getValue, setValue
 

Field Detail

targets_

protected java.util.List targets_

elapsedTime

public Node elapsedTime
Constructor Detail

TimeSeriesKeeper

public TimeSeriesKeeper()
Method Detail

MakeLabelLine

protected void MakeLabelLine()
prepare XYSeries for each target.

See Also:
CsvMaker.MakeLabelLine()

MakeValueLine

protected void MakeValueLine()
set target value at the XYSeries.

See Also:
CsvMaker.MakeValueLine()

getXYSeriesCollection

public XYSeriesCollection getXYSeriesCollection()
Specified by:
getXYSeriesCollection in interface ITimeSeries
Returns:
collection of x, y series data

getXYSeriesLabel

public java.lang.String getXYSeriesLabel()
Specified by:
getXYSeriesLabel in interface ITimeSeries
Returns:
csv file name
See Also:
ITimeSeries.getXYSeriesLabel()

measure

protected void measure(double t)
Specified by:
measure in class AbstractMeasure
Parameters:
t - elapsed time

prepare

protected void prepare()
Description copied from class: Parameter
親が自分と同じ名前のpublic doubleを持っていれば、自分の値を設定する。

Overrides:
prepare in class AbstractMeasure
See Also:
Component.prepare()

end

protected void end()
Description copied from class: Component
called at the end of integration,
計算終了時に呼ばれます。

Overrides:
end in class Component


Copyright © 2002-2008 Cell/Biodinamics simulation project. All Rights Reserved.