this is as good as it gets
This commit is contained in:
@@ -6,6 +6,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.math3.util.Pair;
|
||||
import org.cloudbus.cloudsim.Log;
|
||||
import org.cloudbus.cloudsim.core.CloudSim;
|
||||
import org.fog.application.AppEdge;
|
||||
import org.fog.application.AppModule;
|
||||
@@ -220,6 +221,8 @@ public class ModulePlacementEdgewards extends ModulePlacement{
|
||||
// FINDING OUT WHETHER PLACEMENT OF OPERATOR ON DEVICE IS POSSIBLE
|
||||
for(AppEdge edge : getApplication().getEdges()){ // take all incoming edges
|
||||
if(edge.getDestination().equals(moduleName)){
|
||||
Log.printLine(moduleName);
|
||||
Log.printLine(edge.getDestination());
|
||||
double rate = appEdgeToRate.get(edge);
|
||||
totalCpuLoad += rate*edge.getTupleCpuLength();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user