资源简介
这事cloudsim的压缩包,把它下载后导入eclipse,可用来作基于云计算的仿真。
代码片段和文件信息
/*
* title: CloudSim Toolkit
* Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* Copyright (c) 2009-2012 The University of Melbourne Australia
*/
package org.cloudbus.cloudsim;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.linkedList;
import java.util.List;
import org.cloudbus.cloudsim.core.CloudSim;
/**
* Cloudlet is an extension to the cloudlet. It stores despite all the information encapsulated in
* the Cloudlet the ID of the VM running it.
*
* @author Rodrigo N. Calheiros
* @author Anton Beloglazov
* @since CloudSim Toolkit 1.0
*/
public class Cloudlet {
/**
* The User or Broker ID. It is advisable that broker set this ID with its own ID so that
* CloudResource returns to it after the execution.
**/
private int userId;
/**
* The size of this Cloudlet to be executed in a CloudResource (unit: in MI).
*/
private long cloudletLength;
/**
* The input file size of this Cloudlet before execution (unit: in byte). in byte = program +
* input data size
*/
private final long cloudletFileSize;
/** The output file size of this Cloudlet after execution (unit: in byte). */
private final long cloudletOutputSize;
/** The num of Pe required to execute this job. */
private int numberOfPes;
/** The cloudlet ID. */
private final int cloudletId;
/** The status of this Cloudlet. */
private int status;
/** The format of decimal numbers. */
private DecimalFormat num;
/** The time where this Cloudlet completes. */
private double finishTime;
/**
* Start time of executing this Cloudlet. With new functionalities such as CANCEL PAUSED and
* RESUMED this attribute only stores the latest execution time. Previous execution time are
* ignored.
*/
private double execStartTime;
/** The ID of a reservation made for this cloudlet. */
private int reservationId = -1;
/** The records the transaction history for this Cloudlet. */
private final boolean record;
/** The newline. */
private String newline;
/** The history. */
private StringBuffer history;
/** The res list. */
private final List resList;
/** The index. */
private int index;
/** The class type of Cloudlet for resource scheduling. */
private int classType;
/** The ToS for sending Cloudlet over the network. */
private int netToS;
// //////////////////////////////////////////
// Below are CONSTANTS attributes
/** The Cloudlet has been created and added to the CloudletList object. */
public static final int CREATED = 0;
/** The Cloudlet has been assigned to a CloudResource object as planned. */
public static final int READY = 1;
/** The Cloudlet has moved to a Cloud node. */
public static final int QUEUED = 2;
/** The Cloudlet is in execution in a Cloud node. */
public static final int INEXEC = 3;
/** The Cloudlet has been executed successfully. */
public static
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 0 2014-11-05 17:12 workspace\.me
文件 26 2014-11-05 17:12 workspace\.me
文件 364 2014-11-05 17:13 workspace\.me
文件 2029 2014-11-05 18:20 workspace\.me
文件 70 2014-11-05 17:26 workspace\.me
文件 173061 2014-11-05 18:20 workspace\.me
文件 25998 2014-11-05 18:20 workspace\.me
文件 1 2014-11-05 18:20 workspace\.me
文件 151 2014-11-05 18:20 workspace\.me
文件 1 2014-11-05 18:20 workspace\.me
文件 766 2014-11-05 18:20 workspace\.me
文件 42 2014-11-05 17:13 workspace\.me
文件 165 2014-11-05 17:31 workspace\.me
文件 364 2014-11-05 17:12 workspace\.me
文件 433 2014-11-05 18:20 workspace\.me
文件 517 2014-11-05 17:19 workspace\.me
文件 129 2014-11-05 18:20 workspace\.me
文件 48 2014-11-05 18:20 workspace\.me
文件 642 2014-11-05 17:57 workspace\.me
文件 971 2014-11-05 18:20 workspace\.me
文件 222399 2014-11-05 18:20 workspace\.me
文件 21328 2014-11-05 17:13 workspace\.me
文件 170960 2014-11-05 17:13 workspace\.me
文件 367643 2014-11-05 17:19 workspace\.me
文件 14749 2014-11-05 17:13 workspace\.me
文件 35617 2014-11-05 17:13 workspace\.me
文件 45487 2014-11-05 17:13 workspace\.me
文件 144265 2014-11-05 17:13 workspace\.me
文件 4219 2014-11-05 17:13 workspace\.me
文件 8887337 2014-11-05 17:13 workspace\.me
............此处省略504个文件信息
- 上一篇:基于opencv的激光线中心提取源码
- 下一篇:FigTree v1.4.0
评论
共有 条评论