org.simBio.core
クラス Parameter

java.lang.Object
  上位を拡張 org.simBio.core.Component
      上位を拡張 org.simBio.core.Parameter
すべての実装されたインタフェース:
Node
直系の既知のサブクラス:
Composite, Euler, RungeKutta

public class Parameter
extends Component

labeled public double, Component of the Composite Pattern.
名前付きの数値定数を表す。

バージョン:
$Log: Parameter.java,v $, Revision 1.5 2007/06/04 04:37:08 nsarai, throws exception when initial_value is not a number,
作成者:
Nobuaki Sarai

フィールドの概要
protected  double value
          present value.
 
コンストラクタの概要
Parameter()
           
 
メソッドの概要
 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)
          文字列を受け取り現在値に設定する。
 void setValueToField()
          親が自分と同じ名前のpublic doubleを持っていれば、自分の値を設定する。
 
クラス org.simBio.core.Component から継承されたメソッド
accept, addDydt, end, getIndent, getIndentedShortName, getName, getName, getParent, getRoot, getShortName, getUnits, isNamed, isPrefixed, logIndented, quit, setLinks
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

value

protected double value
present value.

コンストラクタの詳細

Parameter

public Parameter()
メソッドの詳細

setInitializer

public void setInitializer(Initializer initializer)
クラス Component の記述:
set parent, root, level, name and valueString and attend to the parent's Children.
親とConductorへの参照, 自分の階層、名前、初期値、単位を設定し、親の子供に登録する

オーバーライド:
クラス Component 内の setInitializer
パラメータ:
initializer -
関連項目:
Component.setInitializer(org.simBio.core.Initializer)

getValue

public double getValue()
クラス Component の記述:
always throws UnsupportedOperationException, need to implement 'Node'

定義:
インタフェース Node 内の getValue
オーバーライド:
クラス Component 内の getValue
戻り値:
value
関連項目:
Node.getValue()

setValue

public void setValue(double newValue)
クラス Component の記述:
always throws UnsupportedOperationException, need to implement 'Node'

定義:
インタフェース Node 内の setValue
オーバーライド:
クラス Component 内の setValue
関連項目:
Node.setValue(double)

addValue

public void addValue(double value)
add value to the current value
実数を受け取り現在値に足し合わせる。

定義:
インタフェース Node 内の addValue
オーバーライド:
クラス Component 内の addValue
パラメータ:
value -

getValueString

public java.lang.String getValueString()
クラス Component の記述:
文字列として現在値を返す。

オーバーライド:
クラス Component 内の getValueString
戻り値:
value as String
関連項目:
Component.getValueString()

setValueString

public void setValueString(java.lang.String label)
クラス Component の記述:
文字列を受け取り現在値に設定する。 updateObserverに通知する。

オーバーライド:
クラス Component 内の setValueString
パラメータ:
label - value as String
関連項目:
Component.setValueString(java.lang.String)

prepare

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

オーバーライド:
クラス Component 内の prepare
関連項目:
Component.prepare()

setValueToField

public void setValueToField()
親が自分と同じ名前のpublic doubleを持っていれば、自分の値を設定する。



???(C) 2002-2007 ?????????????????????