org.simBio.core
Class Initializer

java.lang.Object
  extended by org.simBio.core.Initializer

public class Initializer
extends java.lang.Object

Keep values to initialize Component.
初期値をComponentに受け渡す

Version:
$Log: Initializer.java,v $ Revision 1.1 2005/11/01 06:32:38 mikaelwing First version of simBio hosted on sourceforge, version 0.3 Revision 1.1 2005/09/12 04:57:08 sarai rearrenge folder structure as a Maven style Revision 1.5 2005/08/13 08:18:47 sarai extracted attribute names as constants
2004/09/17 04:25:02 Japanese comment is not resolved.
2004/09/17 Class nameを受け取るconstractorを作成
Author:
Nobuaki Sarai

Field Summary
static java.lang.String CLASS_NAME
          attribute name of the class
static java.lang.String INITIAL_VALUE
          attribute name of the initial value
static java.lang.String NAME
          attribute name of the name
static java.lang.String UNITS
          attribute name of the units
 
Method Summary
 void clear()
          clear all attributes.
 java.lang.String getClassName()
          Returns the className.
 java.lang.String getInitialValue()
          Returns the initialValue.
static Initializer getInstance(Composite composite, org.xml.sax.Attributes attributes)
          return the only initializer in which parent and attributes are set.
static Initializer getInstance(java.lang.String className)
           
 java.lang.String getName()
          Returns the name.
 Composite getParent()
          Returns the parent.
 java.lang.String getUnits()
          Returns the units.
 void setClassName(java.lang.String className)
          Sets the className.
 void setInitialValue(java.lang.String initialValue)
          Sets the initialValue.
 void setName(java.lang.String name)
          Sets the name.
 void setParent(Composite parent)
          Sets the parent.
 void setUnits(java.lang.String units)
          Sets the units.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
attribute name of the name

See Also:
Constant Field Values

INITIAL_VALUE

public static final java.lang.String INITIAL_VALUE
attribute name of the initial value

See Also:
Constant Field Values

UNITS

public static final java.lang.String UNITS
attribute name of the units

See Also:
Constant Field Values

CLASS_NAME

public static final java.lang.String CLASS_NAME
attribute name of the class

See Also:
Constant Field Values
Method Detail

getInstance

public static Initializer getInstance(Composite composite,
                                      org.xml.sax.Attributes attributes)
return the only initializer in which parent and attributes are set.

Parameters:
composite - parent Node
attributes - read from XML
Returns:
initializer

getClassName

public java.lang.String getClassName()
Returns the className.

Returns:
String

getInitialValue

public java.lang.String getInitialValue()
Returns the initialValue.

Returns:
String

getName

public java.lang.String getName()
Returns the name.

Returns:
String

getParent

public Composite getParent()
Returns the parent.

Returns:
Composite

getUnits

public java.lang.String getUnits()
Returns the units.

Returns:
String

setClassName

public void setClassName(java.lang.String className)
Sets the className.

Parameters:
className - The className to set

setInitialValue

public void setInitialValue(java.lang.String initialValue)
Sets the initialValue.

Parameters:
initialValue - The initialValue to set

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - The name to set

setParent

public void setParent(Composite parent)
Sets the parent.

Parameters:
parent - The parent to set

setUnits

public void setUnits(java.lang.String units)
Sets the units.

Parameters:
units - The units to set

clear

public void clear()
clear all attributes.


getInstance

public static Initializer getInstance(java.lang.String className)
Parameters:
className - complete class name
Returns:
initializer, the only className is set. other attributes are set null.


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