CloudSim源代码学习之DatacenterCharacteristics.docVIP

  • 1
  • 0
  • 约1.46万字
  • 约 11页
  • 2016-08-23 发布于河南
  • 举报

CloudSim源代码学习之DatacenterCharacteristics.doc

CloudSim源代码学习之DatacenterCharacteristics

package org.cloudbus.cloudsim; import java.util.List;//An ordered collection 排好序的事件 import org.cloudbus.cloudsim.core.CloudSim;//使网络仿真能够实现 import org.cloudbus.cloudsim.lists.HostList;//主机列表 import org.cloudbus.cloudsim.lists.PeList;//pe列表 /** DatacenterCharacteristics 资源的静态属性 * DatacenterCharacteristics represents static properties of a * resource such as resource architecture, Operating System (OS), management * policy (time- or space-shared), cost and time zone at which the resource * is located along resource configuration. * * @author Manzur Murshed * @author Rajkumar Buyya * @author Rodrigo N. Calheiros * @author Anton Beloglazov * @since CloudSim Toolkit 1.0 */ public class DatacenterCharacteristics { /** The resource id -- setup when Resource is created.资源ID */ private int id; /** The architecture. 架构*/ private String architecture; /** The os. 操作系统*/ private String os; /** The host list.主机列表 */ private List? extends Host hostList; /** The time zone -- difference from GMT. 时区 */ private double timeZone; /** Price/CPU-unit if unit = sec., then G$/CPU-sec. 每秒费用*/ private double costPerSecond; /** Resource Types -- allocation policy. 分配协议*/ private int allocationPolicy; /** Time-shared system using Round-Robin algorithm. 【使用循环算法的时间共享系统】*/ public static final int TIME_SHARED = 0; /** Spaced-shared system using First Come First Serve (FCFS) algorithm.【使用先来先服务算法的空间共享系统】 */ public static final int SPACE_SHARED = 1; /** Assuming all PEs in all Machines have the same rating. */ public static final int OTHER_POLICY_SAME_RATING = 2; /** Assuming all PEs in a Machine have the same rating. However, each Machine has different rating to each other. */ public static final int OTHER_POLICY_DIFFERENT_RATING = 3; /** A resource that supports Advanced Reservation mechanisms.【支持预留机制】 */ public static final int ADVANCE_RESERVATION = 4;

文档评论(0)

1亿VIP精品文档

相关文档