private void setBond ( ) throws Exception { List data = new Vector ( ) ; st . nextToken ( ) ; String scode = st . nextToken ( ) ; String sid1 = st . nextToken ( ) ; String sid2 = st . nextToken ( ) ; String slen = st . nextToken ( ) ; String sk2 = st . nextToken ( ) ; String sk3 = st . nextToken ( ) ; String sk4 = st . nextToken ( ) ; String sbci = st . nextToken ( ) ; try { double len = new Double ( slen ) . doubleValue ( ) ; double k2 = new Double ( sk2 ) . doubleValue ( ) ; double k3 = new Double ( sk3 ) . doubleValue ( ) ; double k4 = new Double ( sk4 ) . doubleValue ( ) ; double bci = new Double ( sbci ) . doubleValue ( ) ; data . add ( new Double ( len ) ) ; data . add ( new Double ( k2 ) ) ; data . add ( new Double ( k3 ) ) ; data . add ( new Double ( k4 ) ) ; data . add ( new Double ( bci ) ) ; } catch ( NumberFormatException nfe ) { throw new IOException ( "setBond: Malformed Number due to:" + nfe ) ; } // key = "bond" + scode + ";" + sid1 + ";" + sid2; key = "bond" + sid1 + ";" + sid2 ; parameterSet . put ( key , data ) ; }
Sets the bond attribute stored into the parameter set