|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.aida.ref.pdf.Variable
The base class for a Variable object. Variables can be dependent, parameters and Functions.
| Field Summary | |
static int |
DEPENDENT
|
static int |
FUNCTION
|
static int |
PARAMETER
|
| Constructor Summary | |
Variable(String name,
int type)
|
|
Variable(String name,
int type,
String units)
|
|
Variable(String name,
int type,
Units units)
|
|
| Method Summary | |
void |
addVariableListener(VariableListener listener)
|
String |
name()
Get the name. |
void |
removeVariableListener(VariableListener listener)
|
void |
setName(String name)
Set the name. |
void |
setUnits(Units units)
Set the object's Units. |
void |
setValue(double value)
Set the current value. |
protected abstract void |
setVariableValue(double value)
|
int |
type()
|
Units |
units()
Get the Units of the object. |
abstract double |
value()
Get the current value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int FUNCTION
public static int DEPENDENT
public static int PARAMETER
| Constructor Detail |
public Variable(String name,
int type)
public Variable(String name,
int type,
String units)
public Variable(String name,
int type,
Units units)
| Method Detail |
public void addVariableListener(VariableListener listener)
public void removeVariableListener(VariableListener listener)
public int type()
public String name()
HasName
name in interface HasNamepublic void setName(String name)
HasName
setName in interface HasNamename - The new name.public Units units()
HasUnits
units in interface HasUnitspublic void setUnits(Units units)
HasUnits
setUnits in interface HasUnitsunits - The new Units.public abstract double value()
HasValue
value in interface HasValuepublic void setValue(double value)
HasValue
setValue in interface HasValuevalue - The new value.protected abstract void setVariableValue(double value)
|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||