org.simBio.core
Class Parameter

java.lang.Object
  extended by org.simBio.core.Component
      extended by org.simBio.core.Parameter
All Implemented Interfaces:
Node
Direct Known Subclasses:
Composite, Euler, RungeKutta

public class Parameter
extends Component

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

Version:
$Log: Parameter.java,v $, Revision 1.5 2007/06/04 04:37:08 nsarai, throws exception when initial_value is not a number,
Author:
Nobuaki Sarai

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

value

protected double value
present value.

Constructor Detail

Parameter

public Parameter()
Method Detail

setInitializer

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

Overrides:
setInitializer in class Component
Parameters:
initializer -
See Also:
Component.setInitializer(org.simBio.core.Initializer)

getValue

public double getValue()
Description copied from class: Component
always throws UnsupportedOperationException, need to implement 'Node'

Specified by:
getValue in interface Node
Overrides:
getValue in class Component
Returns:
value
See Also:
Node.getValue()

setValue

public void setValue(double newValue)
Description copied from class: Component
always throws UnsupportedOperationException, need to implement 'Node'

Specified by:
setValue in interface Node
Overrides:
setValue in class Component
See Also:
Node.setValue(double)

addValue

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

Specified by:
addValue in interface Node
Overrides:
addValue in class Component
Parameters:
value -

getValueString

public java.lang.String getValueString()
Description copied from class: Component
文字列として現在値を返す。

Overrides:
getValueString in class Component
Returns:
value as String
See Also:
Component.getValueString()

setValueString

public void setValueString(java.lang.String label)
Description copied from class: Component
文字列を受け取り現在値に設定する。 updateObserverに通知する。

Overrides:
setValueString in class Component
Parameters:
label - value as String
See Also:
Component.setValueString(java.lang.String)

prepare

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

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

setValueToField

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



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