public class ILCGenericObject extends Object implements LCGenericObject
| Constructor and Description |
|---|
ILCGenericObject()
Default C'tor - assumes fixedSize==false.
|
ILCGenericObject(int nInt,
int nFloat,
int nDouble)
C'tor for fixed size objects
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDataDescription()
The description string.
|
double |
getDoubleVal(int index)
Returns the double value for the given index.
|
float |
getFloatVal(int index)
Returns the float value for the given index.
|
int |
getIntVal(int index)
Returns the integer value for the given index.
|
int |
getNDouble()
Number of double values stored in this object.
|
int |
getNFloat()
Number of float values stored in this object.
|
int |
getNInt()
Number of integer values stored in this object.
|
String |
getTypeName()
The type name of the user class (typically the class name)
This type name is stored as a collection parameter "TypeName"
with every collection of LCGenericObject subclasses.
|
boolean |
isFixedSize()
True if objects of the implementation class have a fixed size, i.e
getNInt, getNFloat and getNDouble will return values that are constant during
the lifetime of the object.
|
void |
setDoubleVal(double val,
int index)
Sets the double value at index - resizes the array if needed,
thus it is more efficient to fill the largest index first.
|
void |
setDoubleVals(double[] values)
Set all double values at once
|
void |
setFloatVal(float val,
int index)
Sets the float value at index - resizes the array if needed,
thus it is more efficient to fill the largest index first.
|
void |
setFloatVals(float[] values)
Set all float values at once
|
void |
setIntVal(int val,
int index)
Sets the int value at index - resizes the array if needed,
thus it is more efficient to fill the largest index first.
|
void |
setIntVals(int[] values)
Set all int values at once
|
public ILCGenericObject()
public ILCGenericObject(int nInt,
int nFloat,
int nDouble)
public int getNInt()
LCGenericObjectgetNInt in interface LCGenericObjectLCGenericObject.getNInt()public int getNFloat()
LCGenericObjectgetNFloat in interface LCGenericObjectLCGenericObject.getNFloat()public int getNDouble()
LCGenericObjectgetNDouble in interface LCGenericObjectLCGenericObject.getNDouble()public int getIntVal(int index)
LCGenericObjectgetIntVal in interface LCGenericObjectLCGenericObject.getIntVal(int)public float getFloatVal(int index)
LCGenericObjectgetFloatVal in interface LCGenericObjectLCGenericObject.getFloatVal(int)public double getDoubleVal(int index)
LCGenericObjectgetDoubleVal in interface LCGenericObjectLCGenericObject.getDoubleVal(int)public boolean isFixedSize()
LCGenericObjectisFixedSize in interface LCGenericObjectLCGenericObject.isFixedSize()public String getTypeName()
LCGenericObjectgetTypeName in interface LCGenericObjectLCGenericObject.getTypeName()public String getDataDescription()
LCGenericObjectgetDataDescription in interface LCGenericObjectLCGenericObject.getDataDescription()public void setIntVal(int val,
int index)
public void setFloatVal(float val,
int index)
public void setDoubleVal(double val,
int index)
public void setIntVals(int[] values)
public void setFloatVals(float[] values)
public void setDoubleVals(double[] values)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics