Java 类gnu.trove.map.hash.TFloatIntHashMap 实例源码

项目:com.powerdata.openpa    文件:PFlowPsmModelBldr.java   
@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());
}
项目:openpa    文件:PFlowPsmModelBldr.java   
@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());
}
项目:graphium    文件:ImportStatistics.java   
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();
}
项目:pre-cu    文件:AutoDeltaFloatIntMap.java   
public AutoDeltaFloatIntMap() {
    this.changes = new ArrayList<>(5);
    this.container = new TFloatIntHashMap();
    this.baselineCommandCount = 0;
}