Package net.simplace.sim.wrapper
Klasse DataContainer
java.lang.Object
net.simplace.sim.wrapper.DataContainer
Container that delivers the data to the client only containing simple object types like arrays.
- Autor:
- Andreas Enders
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDataContainer(Collection<FWSimResultCache> aResultCaches) Create DataContainer from Result Cache onlyDataContainer(FWSimResultCache aResultCache) Create DataContainer from Result Cache onlyDataContainer(FWSimVarMap aVarMap) DataContainer(FWSimVarMap aVarMap, String[] aFieldNameFilter) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidfill(FWSimResultCache aResultCache, int aStartIndex, int aSize) Object[]Object[]getDataObjects(int from, int to) Copies the specified range of the specified array into a new array.String[]String[]String[]booleanisLast()voidsetLast(boolean aLast)
-
Konstruktordetails
-
DataContainer
- Parameter:
aVarMap-
-
DataContainer
- Parameter:
aVarMap-aFieldNameFilter-
-
DataContainer
Create DataContainer from Result Cache only- Parameter:
aResultCache-
-
DataContainer
Create DataContainer from Result Cache only- Parameter:
aResultCache-
-
-
Methodendetails
-
fill
-
getHeaderStrings
- Gibt zurück:
- the Header Strings (column headers)
-
getHeaderUnits
- Gibt zurück:
- the headers columns units
-
getTypeStrings
- Gibt zurück:
- the headers columns data types
-
getDataObjects
- Gibt zurück:
- the data objects as array of arrays
-
getDataObjects
Copies the specified range of the specified array into a new array. The initial index of the range (from) must lie between zero and original.length, inclusive. The value at original[from] is placed into the initial element of the copy (unless from == original.length or from == to). Values from subsequent elements in the original array are placed into subsequent elements in the copy. The final index of the range (to), which must be greater than or equal to from, may be greater than original.length, in which case null is placed in all elements of the copy whose index is greater than or equal to original.length - from. The length of the returned array will be to - from. The resulting array is of exactly the same class as the original array.- Parameter:
from-to-- Gibt zurück:
- a new array containing the specified range from the original array, truncated or padded with nulls to obtain the required length
- Löst aus:
ArrayIndexOutOfBoundsException- - if from Ungültige Eingabe: "<" 0 or from > original.length()IllegalArgumentException- - if from > to
-
isLast
public boolean isLast()- Gibt zurück:
- the last
-
setLast
public void setLast(boolean aLast) - Parameter:
aLast- the last to set
-