Exemplo n.º 1
0
ThermTrace::ThermTrace(const char *input_file)
    : input_file_(strdup(input_file?input_file:"")) {

    if( input_file) {
        read_sesc_variable(input_file);
    }

    read_floorplan_mapping();
}
Exemplo n.º 2
0
//initialize when declared as static
void ThermTrace::ThermTraceInit(){
  
    energyCntrSample_ = 0;
    read_sesc_variable();
    read_floorplan_mapping();
    scaledLkgCntrValues_ = new std::vector <float> (energyBundle->cntrs.size());
    energyCntrValues_ = new std::vector <std::vector <float> > (1);
		energyCntrValues_->at(0).resize(energyBundle->cntrs.size());
    hpThLeakageCoefs.set  (-122.1, 19155.107 , 1.214, 0.18) ;
    lstpThLeakageCoefs.set( 19.5294, -5209.1702, 0.9928, -0.49);
		lpThLeakageCoefs.set  ( 8.4025 , -2213.1390, 0.9966, -0.184);
}