org.simBio.bio.sarai_et_al_2006.function
Class Rate

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.Reactor
                  extended by org.simBio.bio.sarai_et_al_2006.function.Rate
All Implemented Interfaces:
Node

public class Rate
extends Reactor

Rate. Created at 9:42:18 on 2005/10/22

Version:
$Revision: 1.1 $
Author:
sarai

Field Summary
 double converter
          convert unit
 Node sum
          total amount
 double t0
          starting time
 Node target
          target to sum
 
Fields inherited from class org.simBio.core.Parameter
value
 
Constructor Summary
Rate()
           
 
Method Summary
protected  void calculate(double t)
          write equations here, and calculate dy over dt.
 void prepare()
          親が自分と同じ名前のpublic doubleを持っていれば、自分の値を設定する。
 
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, end, 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

t0

public double t0
starting time


target

public Node target
target to sum


sum

public Node sum
total amount


converter

public double converter
convert unit

Constructor Detail

Rate

public Rate()
Method Detail

calculate

protected void calculate(double t)
Description copied from class: Reactor
write equations here, and calculate dy over dt.
計算中に呼び出される。 計算式を記載する。dy/dtをここで計算する。

Specified by:
calculate in class Reactor
Parameters:
t - elapsed time (ms)

prepare

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

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


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