source: xssim/src/test/rewolucja/energy/profile/CPU_C_PowerProfile.java @ 104

Revision 104, 987 bytes checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package test.rewolucja.energy.profile;
2
3import java.util.Collections;
4import java.util.HashMap;
5import java.util.Map;
6
7
8
9public class CPU_C_PowerProfile extends CPUPowerProfile{
10
11        public CPU_C_PowerProfile() {
12                //pState = getSupportedPStates().get(PStateType.P0);
13        }
14       
15        public Map<PStateType, PState> getSupportedPStates(){
16                return ModelC.getConfiguration();
17        }
18       
19        private static class ModelC{
20                private static final Map<PStateType, PState> pStates;
21                static {
22                        Map<PStateType, PState> pStatesMap = new HashMap<PStateType, PState>();
23                        pStatesMap.put(PStateType.P0, new PState(PStateType.P0, 2330, 0, 367));
24                        pStatesMap.put(PStateType.P1, new PState(PStateType.P1, 2000, 0, 360));
25                        pStatesMap.put(PStateType.P2, new PState(PStateType.P2, 1860, 0, 353));
26                        pStatesMap.put(PStateType.P3, new PState(PStateType.P3, 1600, 0, 346));
27                        pStates = Collections.unmodifiableMap(pStatesMap);
28                }
29               
30                public static Map<PStateType, PState> getConfiguration(){
31                        return pStates;
32                }
33        }
34}
Note: See TracBrowser for help on using the repository browser.