// 2. A Machine contains one or more PEs or CPUs/Cores.
// In this example, it will have only one core.
// 3. Create PEs and add these into an object of PowerPeList.
List<PowerPe>peList=newArrayList<PowerPe>();
peList.add(newPowerPe(0,newPeProvisionerSimple(mips[i%mips.length]),newPowerModelLinear(maxPower,staticPowerPercent)));// need to store PowerPe id and MIPS Rating
List<Pe>peList=newArrayList<Pe>();
peList.add(newPe(0,newPeProvisionerSimple(mips[i%mips.length])));// need to store PowerPe id and MIPS Rating
// 4. Create PowerHost with its id and list of PEs and add them to the list of machines
// 2. A Machine contains one or more PEs or CPUs/Cores.
// In this example, it will have only one core.
// 3. Create PEs and add these into an object of PowerPeList.
List<PowerPe>peList=newArrayList<PowerPe>();
peList.add(newPowerPe(0,newPeProvisionerSimple(mips[i%mips.length]),newPowerModelLinear(maxPower,staticPowerPercent)));// need to store PowerPe id and MIPS Rating
List<Pe>peList=newArrayList<Pe>();
peList.add(newPe(0,newPeProvisionerSimple(mips[i%mips.length])));// need to store PowerPe id and MIPS Rating
// 4. Create PowerHost with its id and list of PEs and add them to the list of machines
@@ -236,8 +236,8 @@ public class SingleThreshold {
// 2. A Machine contains one or more PEs or CPUs/Cores.
// In this example, it will have only one core.
// 3. Create PEs and add these into an object of PowerPeList.
List<PowerPe>peList=newArrayList<PowerPe>();
peList.add(newPowerPe(0,newPeProvisionerSimple(mips[i%mips.length]),newPowerModelLinear(maxPower,staticPowerPercent)));// need to store PowerPe id and MIPS Rating
List<Pe>peList=newArrayList<Pe>();
peList.add(newPe(0,newPeProvisionerSimple(mips[i%mips.length])));// need to store PowerPe id and MIPS Rating
// 4. Create PowerHost with its id and list of PEs and add them to the list of machines
hostList.add(
...
...
@@ -247,7 +247,8 @@ public class SingleThreshold {