File tree Expand file tree Collapse file tree
vcell-core/src/main/java/cbit/vcell/mapping Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111package cbit .vcell .mapping ;
1212
1313import java .util .*;
14+ import java .util .concurrent .ConcurrentSkipListMap ;
1415
1516import cbit .vcell .math .*;
1617import org .vcell .util .ArrayUtils ;
2829 * @author: Jim Schaff
2930 */
3031public class MathSymbolMapping implements SourceSymbolMapping {
31- private TreeMap <SymbolTableEntry , String > biologicalToMathSymbolNameHash = new TreeMap < SymbolTableEntry , String >();
32- private TreeMap <SymbolTableEntry , Variable > biologicalToMathHash = new TreeMap < SymbolTableEntry , Variable >();
33- private TreeMap <Variable , SymbolTableEntry []> mathToBiologicalHash = new TreeMap < Variable , SymbolTableEntry [] >();
32+ private Map <SymbolTableEntry , String > biologicalToMathSymbolNameHash = new ConcurrentSkipListMap < >();
33+ private Map <SymbolTableEntry , Variable > biologicalToMathHash = new ConcurrentSkipListMap < >();
34+ private Map <Variable , SymbolTableEntry []> mathToBiologicalHash = new ConcurrentSkipListMap < >();
3435
3536 /**
3637 * MathSymbolMapping constructor comment.
@@ -164,7 +165,8 @@ public void transform(SimContextTransformation transformation){
164165 }
165166 }
166167 }
167- entry .setValue (origStes .toArray (new SymbolTableEntry [0 ]));
168+ // ConcurrentSkipListMap.Entry does not implement setValue(), must use put() instead
169+ mathToBiologicalHash .put (key , origStes .toArray (new SymbolTableEntry [0 ]));
168170 }
169171 }
170172
You can’t perform that action at this time.
0 commit comments