我在cloudlet属性中随机添加了布尔参数以提供优先权,下面的代码还能做什么?可以将哪些参数添加到 cloudlet 属性中以赋予它们优先级。
for(int i=0;i<cloudlets;i++){
Random r= new Random(); // for creating random length
Random priortyObj =new Random(); // for creating booleon priorty
cloudlet[i] = new Cloudlet(priorty_cloudlet.priortyObj.nextInt(2),
i, length +r.nextInt(2000),pesNumber,
fileSize, outputSize, utilizationModel,
utilizationModel, utilizationModel);
// setting the owner of these Cloudlets
cloudlet[i].setUserId(userId);`
list.add(cloudlet[i]);
}