|
||||||||||
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
public class Parameter
labeled public double, Component of the Composite Pattern.
名前付きの数値定数を表す。
Field Summary | |
---|---|
protected double |
value
present value. |
Constructor Summary | |
---|---|
Parameter()
|
Method Summary | |
---|---|
void |
addValue(double value)
add value to the current value 実数を受け取り現在値に足し合わせる。 |
double |
getValue()
always throws UnsupportedOperationException, need to implement 'Node' |
java.lang.String |
getValueString()
文字列として現在値を返す。 |
protected void |
prepare()
親が自分と同じ名前のpublic doubleを持っていれば、自分の値を設定する。 |
void |
setInitializer(Initializer initializer)
set parent, root, level, name and valueString and attend to the parent's Children. |
void |
setValue(double newValue)
always throws UnsupportedOperationException, need to implement 'Node' |
void |
setValueString(java.lang.String label)
文字列を受け取り現在値に設定する。 updateObserverに通知する。 |
void |
setValueToField()
親が自分と同じ名前のpublic doubleを持っていれば、自分の値を設定する。 |
Methods inherited from class org.simBio.core.Component |
---|
accept, 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 |
Field Detail |
---|
protected double value
Constructor Detail |
---|
public Parameter()
Method Detail |
---|
public void setInitializer(Initializer initializer)
Component
setInitializer
in class Component
initializer
- Component.setInitializer(org.simBio.core.Initializer)
public double getValue()
Component
getValue
in interface Node
getValue
in class Component
Node.getValue()
public void setValue(double newValue)
Component
setValue
in interface Node
setValue
in class Component
Node.setValue(double)
public void addValue(double value)
addValue
in interface Node
addValue
in class Component
value
- public java.lang.String getValueString()
Component
getValueString
in class Component
Component.getValueString()
public void setValueString(java.lang.String label)
Component
setValueString
in class Component
label
- value as StringComponent.setValueString(java.lang.String)
protected void prepare()
prepare
in class Component
Component.prepare()
public void setValueToField()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |