hep.aida.ref.tuple
Class ChainedTuple
- java.lang.Object
-
- hep.aida.ref.event.AIDAObservable
-
- hep.aida.ref.ManagedObject
-
- hep.aida.ref.tuple.AbstractTuple
-
- hep.aida.ref.tuple.ReadOnlyAbstractTuple
-
- hep.aida.ref.tuple.ChainedTuple
-
- All Implemented Interfaces:
- IDevManagedObject, IManagedObject, ITuple, Connectable, FTuple
public class ChainedTuple extends ReadOnlyAbstractTuple
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hep.aida.ref.tuple.AbstractTuple
AbstractTuple.AbstractTupleColumnFactory
-
-
Field Summary
-
Fields inherited from interface hep.aida.ref.tuple.FTuple
ROWS_UNKNOWN
-
-
Constructor Summary
Constructors Constructor and Description ChainedTuple(java.lang.String name, java.lang.String title, ITuple[] set)Tuple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringcolumnDefaultString(int column)java.lang.ObjectcolumnDefaultValue(int column)Get the column default.doublecolumnMax(int column)Get the maximum value of a column.doublecolumnMean(int column)Get the mean value of a column.doublecolumnMin(int column)Get the minimum value of a column.java.lang.StringcolumnName(int column)Get the name of a column from its indexdoublecolumnRms(int column)Get the rms of a column.intcolumns()Get the number of columns in the Tuple.java.lang.ClasscolumnType(int column)Get the type of the column from its indexvoidcolumnValue(int column, Value v)intfindColumn(java.lang.String name)Convert a name to a column index.ITuplefindTuple(int column)Return method for tuple variables of type ITuple for a given column.intgetRow()Get the current row.booleanisInMemory()booleannext()Positions the cursor at the next row.booleanprovidesColumnDefaultValues()introws()The number of rows currently in the ntuple.voidsetRow(int row)Set the current row.voidskip(int rows)Skips rows.voidstart()Positions the read cursor immediately before the first row.booleansupportsMultipleCursors()booleansupportsRandomAccess()-
Methods inherited from class hep.aida.ref.tuple.ReadOnlyAbstractTuple
addRow, fill, reset, resetRow
-
Methods inherited from class hep.aida.ref.tuple.AbstractTuple
annotation, column, column, columnByIndex, columnByName, columnNames, columnTypes, columnValue, cursor, evaluateMax, evaluateMax, evaluateMin, evaluateMin, fill, fill, fill, fill, fill, fill, fill, fill, fill, fill, fill, fill, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getObject, getOptions, getShort, getString, getTuple, newInternalCursor, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, project, setAnnotation, setTitle, title, tuple
-
Methods inherited from class hep.aida.ref.ManagedObject
isFillable, name, setFillable, setName, type, typeForClass
-
Methods inherited from class hep.aida.ref.event.AIDAObservable
addListener, isConnected, removeAllListeners, removeListener, setConnected, setValid, setValidForAll
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hep.aida.ref.event.Connectable
isConnected, setConnected
-
-
-
-
Constructor Detail
-
ChainedTuple
public ChainedTuple(java.lang.String name, java.lang.String title, ITuple[] set)Tuple constructor.- Parameters:
name- the Tuple's nametitle- the Tuple's titleset- Array of ITuples to be chained
-
-
Method Detail
-
supportsRandomAccess
public boolean supportsRandomAccess()
- Specified by:
supportsRandomAccessin interfaceFTuple- Overrides:
supportsRandomAccessin classAbstractTuple
-
supportsMultipleCursors
public boolean supportsMultipleCursors()
- Specified by:
supportsMultipleCursorsin interfaceFTuple- Overrides:
supportsMultipleCursorsin classAbstractTuple
-
isInMemory
public boolean isInMemory()
- Specified by:
isInMemoryin interfaceFTuple- Overrides:
isInMemoryin classAbstractTuple
-
providesColumnDefaultValues
public boolean providesColumnDefaultValues()
- Overrides:
providesColumnDefaultValuesin classAbstractTuple
-
columnValue
public void columnValue(int column, Value v)- Specified by:
columnValuein classAbstractTuple
-
columnDefaultString
public java.lang.String columnDefaultString(int column)
- Specified by:
columnDefaultStringin classAbstractTuple
-
columns
public int columns()
Get the number of columns in the Tuple.
-
columnName
public java.lang.String columnName(int column)
Get the name of a column from its index- Specified by:
columnNamein interfaceITuple- Specified by:
columnNamein interfaceFTuple- Specified by:
columnNamein classAbstractTuple- Parameters:
column- the column's index- Returns:
- the column's name
-
columnType
public java.lang.Class columnType(int column)
Get the type of the column from its index- Specified by:
columnTypein interfaceITuple- Specified by:
columnTypein interfaceFTuple- Specified by:
columnTypein classAbstractTuple- Parameters:
column- the column's index- Returns:
- the column's type
-
columnMin
public double columnMin(int column)
Get the minimum value of a column.- Specified by:
columnMinin interfaceITuple- Specified by:
columnMinin classAbstractTuple- Parameters:
column- The column's index.- Returns:
- The minimum value of the column. If the minimum cannot be calculated Double.NaN is returned.
-
columnMax
public double columnMax(int column)
Get the maximum value of a column.- Specified by:
columnMaxin interfaceITuple- Specified by:
columnMaxin classAbstractTuple- Parameters:
column- The column's index.- Returns:
- The maximum value of the column. If the maximum cannot be calculated Double.NaN is returned.
-
columnMean
public double columnMean(int column)
Get the mean value of a column.- Specified by:
columnMeanin interfaceITuple- Specified by:
columnMeanin classAbstractTuple- Parameters:
column- The column's index.- Returns:
- The mean value of the column. If the mean cannot be calculated Double.NaN is returned.
-
columnRms
public double columnRms(int column)
Get the rms of a column.- Specified by:
columnRmsin interfaceITuple- Specified by:
columnRmsin classAbstractTuple- Parameters:
column- The column's index.- Returns:
- The rms of the column. If the rms cannot be calculated Double.NaN is returned.
-
rows
public int rows()
The number of rows currently in the ntuple.
-
getRow
public int getRow()
Get the current row.- Overrides:
getRowin classAbstractTuple- Returns:
- The current row;
-
findTuple
public ITuple findTuple(int column)
Description copied from interface:ITupleReturn method for tuple variables of type ITuple for a given column. This method can be used in order to fill a tuple variable in the master tuple.- Specified by:
findTuplein interfaceITuple- Specified by:
findTuplein classAbstractTuple- Parameters:
column- The column's index.- Returns:
- The ITuple representing the structure of this column.
-
setRow
public void setRow(int row)
Set the current row.- Specified by:
setRowin interfaceITuple- Overrides:
setRowin classAbstractTuple- Parameters:
row- The current row;
-
start
public void start()
Positions the read cursor immediately before the first row.- Specified by:
startin interfaceITuple- Overrides:
startin classAbstractTuple
-
skip
public void skip(int rows)
Skips rows.- Specified by:
skipin interfaceITuple- Overrides:
skipin classAbstractTuple- Parameters:
rows- number of rows to skip, greater than 0.
-
next
public boolean next()
Positions the cursor at the next row.- Specified by:
nextin interfaceITuple- Overrides:
nextin classAbstractTuple- Returns:
- false if there is no next row.
-
findColumn
public int findColumn(java.lang.String name) throws java.lang.IllegalArgumentExceptionConvert a name to a column index. Note: C++ version may return -1 if column not found- Specified by:
findColumnin interfaceITuple- Specified by:
findColumnin classAbstractTuple- Parameters:
name- The colum's name.- Returns:
- the column number for a given name
- Throws:
java.lang.IllegalArgumentException
-
columnDefaultValue
public java.lang.Object columnDefaultValue(int column)
Description copied from interface:ITupleGet the column default. For primitive types (int, double, ...) their respective class is returned (Int, Double, ...)- Specified by:
columnDefaultValuein interfaceITuple- Overrides:
columnDefaultValuein classAbstractTuple- Parameters:
column- The column's index.- Returns:
- The column's default.
-
-
DMelt 3.0 © DataMelt by jWork.ORG