org.simBio.sim.analyzer
Class StopWatch

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

public class StopWatch
extends Analyzer

Version:
$Revision: 1.1 $
Author:
Nobuaki Sarai

Field Summary
 Node elapsedTime
           
 Node lapTime
           
 Node totalTime
           
 
Fields inherited from class org.simBio.core.Parameter
value
 
Constructor Summary
StopWatch()
           
 
Method Summary
protected  void analyze(double t)
          Please implements this Method to manipulate Nodes.
protected  void end()
          called at the end of integration,
計算終了時に呼ばれます。
protected  void lap()
           
protected  void prepare()
          親が自分と同じ名前のpublic doubleを持っていれば、自分の値を設定する。
protected  void quit()
          called before destruction,
instanceを破棄する前に呼び出されます。
 void ratio()
           
protected  void reset()
           
protected  void setLinks()
          called after instance tree was constructed, getNode, getLink here,
インスタンスツリー作成後に呼び出される,
 
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
 
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

lapTime

public Node lapTime

totalTime

public Node totalTime

elapsedTime

public Node elapsedTime
Constructor Detail

StopWatch

public StopWatch()
Method Detail

lap

protected void lap()

ratio

public void ratio()

setLinks

protected void setLinks()
Description copied from class: Component
called after instance tree was constructed, getNode, getLink here,
インスタンスツリー作成後に呼び出される,

Overrides:
setLinks in class Component

analyze

protected void analyze(double t)
Description copied from class: Analyzer
Please implements this Method to manipulate Nodes. This Method is called every time step from Conductor.

Specified by:
analyze in class Analyzer
Parameters:
t - time
See Also:
Conductor.integrate()

reset

protected void reset()

prepare

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

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

end

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

Overrides:
end in class Component

quit

protected void quit()
Description copied from class: Component
called before destruction,
instanceを破棄する前に呼び出されます。

Overrides:
quit in class Component


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