[kepler-users] problem in output port data type

2007-08-14 Thread [BE] Ufuk Utku Turuncoglu
At last, i convert the string to double. my actor gets input from 'file reader' (in ArrayType(string)) which is reads multi column latitude, longitide array, and output specified column as double array type. The conversion part of the java code is, ArrayToken inputArray =

[kepler-users] problem in output port data type

2007-08-13 Thread [BE] Ufuk Utku Turuncoglu
Hi, As you said, i am using the Double class to parse the string but i get following error messages, compile: [javac] Compiling 1 source file to /SFS/users/turuncu/progs/cvs/kepler/build/classes [javac]

[kepler-users] problem in output port data type

2007-08-13 Thread Christopher Brooks
Hi, Double is a wrapper class for the double primitive type. For more information, see: http://java.sun.com/docs/books/tutorial/java/data/numberclasses.html You have something like: _data[j] = Double.valueOf(inputValue.getElement(i).toString()).doubleValue(); You could do something like:

[kepler-users] problem in output port data type

2007-08-10 Thread [BE] Ufuk Utku Turuncoglu
Hi, In the previous postings to the list, i had a problem reading ASCII file in Kepler but after getting some idea from list it solved. Now i write a new actor that substract the specified column of the multi column ASCII file after reading it. The code is attached to mail as

[kepler-users] problem in output port data type

2007-08-10 Thread [BE] Ufuk Utku Turuncoglu
No, Kepler does not have 'StringToDouble' actor. So i do some tests. First, i try to define type of the output port as BaseType.DOUBLE_MATRIX but it failed. After that i define it as, output.setTypeEquals(new ArrayType(BaseType.DOUBLE)); and at the end of the code (when sending output),

[kepler-users] problem in output port data type

2007-08-10 Thread Edward A. Lee
Right... As I said, lossy conversions cannot be done as a type cast, which is what this is. You have to use the Java Double class methods to parse the string. Edward At 06:21 AM 8/10/2007, [BE] Ufuk Utku Turuncoglu wrote: No, Kepler does not have 'StringToDouble' actor. So i do some tests.