|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.simBio.core.Component org.simBio.core.Parameter org.simBio.core.Composite org.simBio.core.Reactor org.simBio.core.Conductor
public class Conductor
root instance to conduct integration.
At this moment, ODE is calculated by Euler method.
モデルツリーのルートになり、積分計算を行います。
Runnableをimplementsしており、Threadを1つ使います。
Field Summary | |
---|---|
double |
adjustDyOverY
for variable time step, empirical method |
double |
dtMax
maximum time step of integration |
double |
dtMin
minimum time step of integration |
Node |
duration
duration of integration |
Node |
elapsedTime
elapsed time |
Node |
timeStep
time step of integration |
Fields inherited from class org.simBio.core.Parameter |
---|
value |
Constructor Summary | |
---|---|
Conductor()
|
Method Summary | |
---|---|
void |
addCalculationObserver(CalculationObserver obs)
計算を開始・終了した時に、通知が行われる監視オブジェクトを追加します。 |
void |
calculate(double t)
call calculate(double t) of the every Reactor. |
void |
checkException()
Check if this thread has thrown an exception. |
protected void |
end()
end of integration |
void |
exit()
exit run() of this Thread. |
protected void |
integrate()
integrate ODEs. |
void |
prepare()
initialization for calculation. |
protected void |
quit()
call before exit thread. |
void |
removeCalculationObserver(CalculationObserver obs)
計算を開始・終了した時に、通知が行われる監視オブジェクトを削除します。 |
void |
run()
main entry of this thread. |
protected void |
setLinks()
call after instance tree has constructed. |
void |
start()
start calculation. |
void |
stop()
stop calculation. |
void |
visit(Component component)
Add Variables to the list. |
void |
visit(Composite composite)
add Reactors to ReactorList, and Analyzers to AnalyzerList. |
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 |
---|
public Node elapsedTime
public Node duration
public Node timeStep
public double dtMin
public double dtMax
public double adjustDyOverY
Constructor Detail |
---|
public Conductor()
Method Detail |
---|
public void visit(Component component)
visit
in interface Visitor
Visitor.visit(org.simBio.core.Component)
public void visit(Composite composite)
visit
in interface Visitor
Visitor.visit(org.simBio.core.Composite)
public void run()
run
in interface java.lang.Runnable
Runnable.run()
protected void setLinks()
external cell Vm Na K NaChannel 4sGate 2sGate /NaChannel K1Channel /cell /external次の順序で全てのNodeのsetLinks()を呼び出します。
Vm Na K 4sGate 2sGate NaChannel K1Channel cell external
setLinks
in class Component
Component.setLinks()
protected void quit()
quit
in class Component
Component.quit()
public void prepare()
prepare
in class Parameter
Component.prepare()
protected void end()
end
in class Component
Component.end()
protected void integrate()
First prepare() is called, then for every time step:
最初にprepare()を呼び出します。各time step毎に、
calculate(double)
public void calculate(double t)
4sGate 2sGate NaChannel K1Channel cell external
calculate
in class Reactor
t
- elapsed time (ms)Reactor.calculate(double)
public void checkException() throws java.lang.Exception
java.lang.Exception
public void start()
public void stop()
public void exit()
public void addCalculationObserver(CalculationObserver obs)
obs
- 監視オブジェクトpublic void removeCalculationObserver(CalculationObserver obs)
obs
- 監視オブジェクト
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |