|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcpsim.parameter.Parameter
public abstract class Parameter
Stores a value. The value can be accessed with the get() and set() Method.
TODO: jCpSim should have global values for SimulationTime, RealTime and
LastStepSize.
TODO: flag for functions with f'(t) >= 0 or f'(t) <= 0; (they are
continuously ascending or descending) Examples: Simulation Time,
Infused Volume, ...
These are the functions that cannot not be represented as loops!
| Field Summary | |
|---|---|
org.jcpsim.parameter.Parameter.Scale |
scale
|
| Constructor Summary | |
|---|---|
Parameter(ParameterMeta meta,
java.lang.String key,
Unit unit,
double min,
double max,
double step)
Creates a parameter. |
|
| Method Summary | |
|---|---|
void |
compute()
Can be overridden. |
double |
get()
|
double |
getBarW(double w)
|
double |
getBarX(double w)
|
double |
getBoxed()
|
double |
getBoxedRatio()
|
int |
getId()
Returns the id number of the Block the Parameter belongs to. -1: not set. |
java.lang.String |
getKey()
|
java.lang.String |
getLongName()
Returns the long internationalized name. |
double |
getMax()
|
double |
getMin()
|
java.lang.String |
getName()
Returns the short internationalized name. |
boolean |
getOptimize()
Returns whether this Parameter used for optimization. |
ParameterMeta |
getParameterMeta()
|
double |
getRaw()
|
double |
getStep()
|
Unit |
getUnit()
|
java.lang.String |
I18N(java.lang.String ext)
Internationalization support. |
double |
Ratio(double x)
|
void |
set(double v)
|
void |
setOptimize(boolean o)
Sets whether this Parameter used for optimization. |
java.lang.String |
toShortString()
|
java.lang.String |
toString()
|
java.lang.String |
toUrl()
|
java.lang.String |
valueAndUnit()
|
java.lang.String |
valueAsString()
|
void |
valueChanged()
Can be overridden by subclass. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public org.jcpsim.parameter.Parameter.Scale scale
| Constructor Detail |
|---|
public Parameter(ParameterMeta meta,
java.lang.String key,
Unit unit,
double min,
double max,
double step)
meta - Provides information (name etc.) about the parent of the parameter.key - The key in the properties file (for I18N).unit - The physical unit (like "ml/min")| Method Detail |
|---|
public double getMin()
public double getMax()
public double getStep()
public java.lang.String getKey()
public int getId()
public ParameterMeta getParameterMeta()
public double getRaw()
public double get()
public void set(double v)
public double Ratio(double x)
public double getBoxed()
public double getBoxedRatio()
public double getBarX(double w)
public double getBarW(double w)
public java.lang.String valueAsString()
public java.lang.String I18N(java.lang.String ext)
ext - Find I18N string for key + "_" + ext.
public java.lang.String getName()
public java.lang.String getLongName()
public Unit getUnit()
public void setOptimize(boolean o)
public boolean getOptimize()
public void compute()
public void valueChanged()
public java.lang.String valueAndUnit()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toShortString()
public java.lang.String toUrl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||