|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectits.backbone.domain.DataFactory
its.backbone.domain.tms.TmsDataFactory
Extends DataFactory (@see its.backbone.domain.DataFactory) for a TMS implementation. Based loosely on the original TmsDataFactory by Kint. This DataFactory supports three types of sensors:
The public method (@see getExtractionHashtable(Schema,ContentsData,ContentsData)) produces a Hashtable of ContentsData objects, each corresponding to one of the above sensors. The schema data table names serve as the hash keys. It is the responsibility of the DataFactory application developer to make sure the input ContentsData objects are legal, i.e. they contain the needed information. The sensors ContentsData input to this method specifies which sensors to extract from the blobs contained in the data ContentsData object.
| Constructor Summary | |
TmsDataFactory()
constructor |
|
| Method Summary | |
java.lang.String |
getDataOffsetTableName()
This method returns the name of the data offset table within the datastream schema. |
java.util.Hashtable |
getExtractionHashtable(Schema schema,
ContentsData cd,
ContentsData data)
getExtractionHashtable This method takes the blob data schema and a ContentsData object specifying which sensors to extract and a ContentsData object containing blobs represented as byte arrays, and produces a hashtable of ContentsData objects, hashed on their associated data blob schema table names. |
boolean |
hasDataOffsetTable()
Implements abstract method from DataFactory, indicating that the TMS data stream has a data offset table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TmsDataFactory()
| Method Detail |
public boolean hasDataOffsetTable()
hasDataOffsetTable in class DataFactorypublic java.lang.String getDataOffsetTableName()
getDataOffsetTableName in class DataFactory
public java.util.Hashtable getExtractionHashtable(Schema schema,
ContentsData cd,
ContentsData data)
throws java.lang.IllegalArgumentException,
BadOffsetException
This method takes the blob data schema and a ContentsData object specifying which sensors to extract and a ContentsData object containing blobs represented as byte arrays, and produces a hashtable of ContentsData objects, hashed on their associated data blob schema table names.
getExtractionHashtable in class DataFactoryschema - the blob data's schemadata - the ContentsData object with the blob datacd - the table named by getDataOffsetTableName,
taken from the Contents frame in the SDD datastream, or null
if hasDataOffsetTable returns false.
java.lang.IllegalArgumentException - thrown if any input is invalid
BadOffsetException - thrown if bad offsets into a blob are detected
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||