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()
LCGenericObject
getNInt
in interface LCGenericObject
LCGenericObject.getNInt()
public int getNFloat()
LCGenericObject
getNFloat
in interface LCGenericObject
LCGenericObject.getNFloat()
public int getNDouble()
LCGenericObject
getNDouble
in interface LCGenericObject
LCGenericObject.getNDouble()
public int getIntVal(int index)
LCGenericObject
getIntVal
in interface LCGenericObject
LCGenericObject.getIntVal(int)
public float getFloatVal(int index)
LCGenericObject
getFloatVal
in interface LCGenericObject
LCGenericObject.getFloatVal(int)
public double getDoubleVal(int index)
LCGenericObject
getDoubleVal
in interface LCGenericObject
LCGenericObject.getDoubleVal(int)
public boolean isFixedSize()
LCGenericObject
isFixedSize
in interface LCGenericObject
LCGenericObject.isFixedSize()
public String getTypeName()
LCGenericObject
getTypeName
in interface LCGenericObject
LCGenericObject.getTypeName()
public String getDataDescription()
LCGenericObject
getDataDescription
in interface LCGenericObject
LCGenericObject.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