if (actionCost == null) return 0.0;
    private double aggregateCost(ActionCost actionCost, double memSize, double bandwidthSize) {        double memoryComponent = computeCostComponent(actionCost.getMemoryCost(), memSize, bandwidthSize);        double bandwidthComponent = computeCostComponent(actionCost.getBandwidthCost(), memSize, bandwidthSize);        double cpuComponent = computeCostComponent(actionCost.getCPUCost(), memSize, bandwidthSize);        return (0.6*memoryComponent + 0.3*bandwidthComponent+0.1*cpuComponent);    }