|
||||||||||
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.integrator.Euler
public class Euler
the variable calculated by euler method
オイラー法で計算される変数
Field Summary | |
---|---|
protected double |
dydt
dy/dt |
Fields inherited from class org.simBio.core.Parameter |
---|
value |
Fields inherited from interface org.simBio.core.Variable |
---|
TINY |
Constructor Summary | |
---|---|
Euler()
|
Method Summary | |
---|---|
void |
addDydt(double d)
always throws UnsupportedOperationException, need to implement 'Node' |
void |
addValue(double value)
log warn, this Method should not be used. |
double |
getDydt()
return dy/dt dy/dtの値を返す。 |
double |
getDydtOverY()
dy/dtを現在値(y)で割った値を返す。 |
void |
setValue(double newValue)
log warn, this Method should not be used. |
protected void |
update(double dt)
calculate new y = old y + dy/dt * dt, clear dy/dt new y = old y + dy/dt * dtを計算し、dy/dtを0にする |
Methods inherited from class org.simBio.core.Parameter |
---|
getValue, getValueString, prepare, setInitializer, setValueString, setValueToField |
Methods inherited from class org.simBio.core.Component |
---|
accept, 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 |
---|
getValue |
Field Detail |
---|
protected double dydt
Constructor Detail |
---|
public Euler()
Method Detail |
---|
public void addDydt(double d)
Component
addDydt
in interface Node
addDydt
in class Component
d
- dy/dtNode.addDydt(double)
public double getDydt()
Variable
getDydt
in interface Variable
Variable.getDydt()
protected void update(double dt)
dt
- public double getDydtOverY()
Variable
getDydtOverY
in interface Variable
Variable.getDydtOverY()
public void setValue(double newValue)
setValue
in interface Node
setValue
in class Parameter
newValue
- Node.setValue(double)
public void addValue(double value)
addValue
in interface Node
addValue
in class Parameter
value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |