private static double storageCost(MSApplicationNode node, IMSProvider prov) { double costPerStorage = (Double) prov.getStorage().getCharacteristic().get(Constant.COST_STORAGE); long storage = (long) node.getStorage().getCharacteristic().get(Constant.STORE); Double cost = storage * costPerStorage; return cost; }