|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.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 HasName
public void setName(String name)
HasName
setName
in interface HasName
name
- The new name.public Units units()
HasUnits
units
in interface HasUnits
public void setUnits(Units units)
HasUnits
setUnits
in interface HasUnits
units
- The new Units.public abstract double value()
HasValue
value
in interface HasValue
public void setValue(double value)
HasValue
setValue
in interface HasValue
value
- 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 |