source: DCWoRMS/trunk/build/classes/schedframe/resources/computing/profiles/energy/power/CPUPowerProfile.java @ 477

Revision 477, 848 bytes checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.resources.computing.profiles.energy.power;
2
3import java.util.HashMap;
4import java.util.List;
5import java.util.Map;
6
7import schedframe.resources.computing.profiles.energy.power.plugin.EnergyEstimationPlugin;
8
9public class CPUPowerProfile extends PowerProfile{
10
11        protected Map<String, PState> supportedPStates;
12
13        public CPUPowerProfile(EnergyEstimationPlugin energyEstimationPlugin, List<schedframe.resources.computing.profiles.energy.power.PowerState> supportedPowerStates, List<schedframe.resources.computing.profiles.energy.power.PState> pStates){
14                super(energyEstimationPlugin, supportedPowerStates);
15                supportedPStates = new HashMap<String, PState>();
16                for(PState pState: pStates){
17                        supportedPStates.put(pState.getName(), pState);
18                }
19        }
20
21        public Map<String, PState> getSupportedPStates() {
22                return supportedPStates;
23        }
24}
Note: See TracBrowser for help on using the repository browser.