org.simBio.sim.analyzer.measure
Class Amplitude

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.measure.Amplitude
All Implemented Interfaces:
Node

public class Amplitude
extends AbstractMeasure

get the difference between the maximum and minimum value of the target.

Version:
$Revision: 1.2 $
Author:
Sarai

Field Summary
 Node maximum
          maximum value of the target
 Node minimum
          minimum value of the target
 double scale
          scaling factor
 Node target
          to analyze
 
Fields inherited from class org.simBio.sim.analyzer.measure.AbstractMeasure
interval, offset, onset
 
Fields inherited from class org.simBio.core.Parameter
value
 
Constructor Summary
Amplitude()
           
 
Method Summary
protected  void end()
          apply scaling factor and substract minimum from maximum.
protected  void measure(double t)
          keep the maximum and the minimum value of the target.
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

target

public Node target
to analyze


maximum

public Node maximum
maximum value of the target


minimum

public Node minimum
minimum value of the target


scale

public double scale
scaling factor

Constructor Detail

Amplitude

public Amplitude()
Method Detail

prepare

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

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

measure

protected void measure(double t)
keep the maximum and the minimum value of the target.

Specified by:
measure in class AbstractMeasure
Parameters:
t - elapsed time
See Also:
AbstractMeasure.measure(double)

end

protected void end()
apply scaling factor and substract minimum from maximum. when onset never comes, store current value of the target.

Overrides:
end in class Component
See Also:
Component.end()


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