|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspis.Util.Table.Table
spis.Util.Table.ScalTable
spis.Util.Table.IntScalTable
Class Name : IntScalTable
Project ref : SPIS project
File name : IntScalTable.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : 25/08/2003
Modification :
Description : Table of float scalars (i.e. 1 column).
Versions and anomalies correction :
Version number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
Constructor Summary | |
IntScalTable(int tableDimension)
Default constructor |
|
IntScalTable(int[] values)
Constructor with data |
|
IntScalTable(int[] values,
int tableDimension)
Constructor with full data Values must be at least of dimension [length] (checked) |
|
IntScalTable(IntScalTable t)
Copy constructor (the new table is dimensioned to its useful size, it can be a way to reduce the dimension of a table to what is useful) |
Method Summary | |
void |
addData(int i)
adds value i at the end of the table, of which size increase by one (data are preserved) |
int[] |
getValues()
Gets the table values |
void |
reset()
Sets this table to zero value (dimension, etc. unchanged) |
void |
set(int value)
Sets table value (uniform) |
void |
set(int value,
int dim)
|
void |
setDim(int dim)
Sets logical dimension to dim and resizes the table if necessary to be large enough (does not preserve data (except if no resizing is needed)) |
void |
setDimPreserve(int dim)
Sets logical dimension to dim and resizes the table if necessary to be large enough, preserving the data |
void |
setLengthPreserve(int length)
Sets allocated array length at least to length, preserving the data (used to force a large resizing of table instead of numerous small resizings when the total needed space can be computed) |
Methods inherited from class spis.Util.Table.Table |
checkSameDim, declareDim, getDim |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IntScalTable(int tableDimension)
public IntScalTable(int[] values)
public IntScalTable(int[] values, int tableDimension)
public IntScalTable(IntScalTable t)
Method Detail |
public void addData(int i)
public void setDim(int dim)
setDim
in class Table
public void setDimPreserve(int dim)
setDimPreserve
in class Table
public void setLengthPreserve(int length)
public void set(int value, int dim)
public void reset()
Table
reset
in class Table
public void set(int value)
public int[] getValues()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |