source: DCWoRMS/trunk/src/example/energy/BaseEnergyEstimationPlugin.java @ 751

Revision 751, 1.0 KB checked in by wojtekp, 12 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package example.energy;
2
3import schedframe.Parameters;
4import schedframe.PluginConfiguration;
5import schedframe.resources.computing.ComputingResource;
6import schedframe.resources.computing.profiles.energy.EnergyEvent;
7import schedframe.resources.computing.profiles.energy.power.plugin.EnergyEstimationPlugin;
8import schedframe.scheduling.manager.tasks.JobRegistry;
9
10public abstract class BaseEnergyEstimationPlugin implements EnergyEstimationPlugin {
11
12        @Override
13        public PluginConfiguration getConfiguration() {
14                // TODO Auto-generated method stub
15                return null;
16        }
17       
18        @Override
19        public double estimateAirThroughput(EnergyEvent event, JobRegistry jobRegistry, ComputingResource resource) {
20                throw new RuntimeException("Not implemented.");
21        }
22
23        @Override
24        public double estimateTemperature(EnergyEvent event, JobRegistry jobRegistry, ComputingResource resource) {
25                throw new RuntimeException("Not implemented.");
26        }
27       
28        public void init(Parameters parameters) {
29
30        }
31
32        public String getName() {
33                return getClass().getName();
34        }
35}
Note: See TracBrowser for help on using the repository browser.