private void setAngle ( ) throws Exception { List data = new Vector ( ) ; st . nextToken ( ) ; String scode = st . nextToken ( ) ; // String scode String sid1 = st . nextToken ( ) ; String sid2 = st . nextToken ( ) ; String sid3 = st . nextToken ( ) ; String value1 = st . nextToken ( ) ; String value2 = st . nextToken ( ) ; String value3 = st . nextToken ( ) ; String value4 = st . nextToken ( ) ; try { //int code=new Integer(scode).intValue(); double va1 = new Double ( value1 ) . doubleValue ( ) ; double va2 = new Double ( value2 ) . doubleValue ( ) ; double va3 = new Double ( value3 ) . doubleValue ( ) ; double va4 = new Double ( value4 ) . doubleValue ( ) ; data . add ( new Double ( va1 ) ) ; data . add ( new Double ( va2 ) ) ; data . add ( new Double ( va3 ) ) ; data . add ( new Double ( va4 ) ) ; // key = "angle" + scode + ";" + sid1 + ";" + sid2 + ";" + sid3; key = "angle" + sid1 + ";" + sid2 + ";" + sid3 ; if ( parameterSet . containsKey ( key ) ) { data = ( Vector ) parameterSet . get ( key ) ; data . add ( new Double ( va1 ) ) ; data . add ( new Double ( va2 ) ) ; data . add ( new Double ( va3 ) ) ; data . add ( new Double ( va4 ) ) ; } parameterSet . put ( key , data ) ; } catch ( NumberFormatException nfe ) { throw new IOException ( "setAngle: Malformed Number due to:" + nfe ) ; } }
Sets the angle attribute stored into the parameter set