org.simBio.core
Class Link

java.lang.Object
  extended by org.simBio.core.Component
      extended by org.simBio.core.Link
All Implemented Interfaces:
Node

public class Link
extends Component

making Link

Version:
$Revision: 1.1 $
Author:
Nobuaki Sarai

Constructor Summary
Link()
           
 
Method Summary
protected  void prepare()
          if parent Composite has a public double Field of the same name, set value of the Parameter linked.
protected  void setLinks()
          called after instance tree was constructed, getNode, getLink here,
インスタンスツリー作成後に呼び出される, 親に自分と同じ名前のNodeがあったら、自分自身をリンクと見なし、 自分の値(リンク先を表す文字列)を引数に親のgetLinkを呼んでリンクを張ります
 
Methods inherited from class org.simBio.core.Component
accept, addDydt, addValue, end, getIndent, getIndentedShortName, getName, getName, getParent, getRoot, getShortName, getUnits, getValue, getValueString, isNamed, isPrefixed, logIndented, quit, setInitializer, setValue, setValueString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Link

public Link()
Method Detail

setLinks

protected void setLinks()
called after instance tree was constructed, getNode, getLink here,
インスタンスツリー作成後に呼び出される, 親に自分と同じ名前のNodeがあったら、自分自身をリンクと見なし、 自分の値(リンク先を表す文字列)を引数に親のgetLinkを呼んでリンクを張ります

Overrides:
setLinks in class Component

prepare

protected void prepare()
if parent Composite has a public double Field of the same name, set value of the Parameter linked. If there is a Node, set links here again to update target.
親が自分と同じ名前のpublic doubleを持っていれば、自分のリンクしている先のParameterが持つ値を設定する。 doubleでなく、Nodeが存在すればリンクを張る。これにより実行中にGUIからリンク先を変更できる。

Overrides:
prepare in class Component


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