@Override protected VoltageLevelListI loadVoltageLevels() throws PAModelException { float[] baskv = _busCSV.getFloats("NominalKV"); int nb = _busCSV.getRowCount(); TFloatIntHashMap m = new TFloatIntHashMap(); _vlkv = new TFloatArrayList(); for(int i=0; i < nb; ++i) { m.putIfAbsent(baskv[i], m.size()); if (m.size() != _vlkv.size()) _vlkv.add(baskv[i]); } _busvl = new int[nb]; Arrays.fill(_busvl, -1); for(int i=0; i < nb; ++i) { _busvl[i] = m.get(baskv[i]); } return new VoltageLevelListI(_m, _busvl, m.size()); }
public ImportStatistics() { invalidAccessTow = new TSynchronizedObjectIntMap<>(new TObjectIntHashMap<>()); invalidAccessBkw = new TSynchronizedObjectIntMap<>(new TObjectIntHashMap<>()); accessTow = new TSynchronizedObjectIntMap<>(new TObjectIntHashMap<>()); accessBkw = new TSynchronizedObjectIntMap<>(new TObjectIntHashMap<>()); levels = new TFloatIntHashMap(); }
public AutoDeltaFloatIntMap() { this.changes = new ArrayList<>(5); this.container = new TFloatIntHashMap(); this.baselineCommandCount = 0; }