From: olivier P. <oli...@gm...> - 2007-08-07 08:27:31
|
Hello Ali and the gsn developers ;) Even in summer I have some demands about GSN. I have noted that the size of a streamElement is to small in some cases. I already do the modification on my GSN source code but if you think the modification have to be propagated to the SVN server, I have written it there : in gsn.beans.streamElement : modification of the type of i in the constructor (byte -> int) : public StreamElement ( DataField [ ] outputStructure , final Serializable [ ] data , final long timeStamp ) { this.fieldNames = new String [ outputStructure.length ]; this.fieldTypes = new Byte [ outputStructure.length ]; this.timeStamp = timeStamp; for ( int i = 0 ; i < this.fieldNames.length ; i++ ) { this.fieldNames[ i ] = outputStructure[ i ].getName( ).toLowerCase( ); this.fieldTypes[ i ] = outputStructure[ i ].getDataTypeID( ); } if ( this.fieldNames.length != data.length ) throw new IllegalArgumentException( "The length of dataFileNames and the actual data provided in the constructor of StreamElement doesn't match." ); this.verifyTypesCompatibility( this.fieldTypes , data ); this.fieldValues = data; } the first constructor already have an integer in the loop. Good week everybody cheers Olivier |