PureEdgeSim -taskgenerator包-Task文件

Task接口汇总:

任务失败的原因

	/**
	 * Enumeration for failure reasons of a Task.
	 */
	enum FailureReason {
		FAILED_DUE_TO_LATENCY, FAILED_BECAUSE_DEVICE_DEAD, FAILED_DUE_TO_DEVICE_MOBILITY,
		NOT_GENERATED_BECAUSE_DEVICE_DEAD, NO_OFFLOADING_DESTINATIONS, INSUFFICIENT_RESOURCES, INSUFFICIENT_POWER
	}

任务成功还是失败

	/**
	 * Enumeration for status of a Task.
	 */
	enum Status {
		SUCCESS, FAILED
	}

返回任务的最大延迟

	/**
	 * Returns the maximum latency of the Task.
	 * 
	 * @return the maximum latency of the Task
	 */
	double getMaxLatency();

设置任务的最大延迟

	/**
	 * Sets the maximum latency of the Task.
	 * 
	 * @param maxLatency the maximum latency of the Task
	 * @return the updated Task
	 */
	Task setMaxLatency(double maxLatency);

返回任务的真实网络时间

	/**
	 * Returns the actual network time of the Task.
	 * 
	 * @return the actual network time of the Task
	 */
	double getActualNetworkTime();

添加真实网络时间

	/**
	 * Adds the actual network time of the Task.
	 * 
	 * @param actualNetworkTime the actual network time of the Task
	 */
	void addActualNetworkTime(double actualNetworkTime);

返回任务的CPU

	/**
	 * Returns the actual CPU time of the Task.
	 * 
	 * @return the actual CPU time of the Task
	 */
	double getActualCpuTime();

返回任务的开始时间

	/**
	 * Returns the execution start time of the Task.
	 * 
	 * @return the execution start time of the Task
	 */
	double getExecStartTime();

返回任务的等待时间

	/**
	 * Returns the waiting time of the Task.
	 * 
	 * @return the waiting time of the Task
	 */
	double getWatingTime();

设置任务的到达时间

	/**
	 * Sets the arrival time of the Task.
	 * 
	 * @param clock the arrival time of the Task
	 */
	void setArrivalTime(double clock);

设置任务的开始执行时间

	/**
	 * Sets the execution start time of the Task.
	 * 
	 * @param clock the execution start time of the Task
	 */
	void setExecutionStartTime(double clock);

设置执行完成时间

	/**
	 * Sets the execution finish time of the Task.
	 * 
	 * @param clock the execution finish time of the Task
	 */
	void setExecutionFinishTime(double clock);

设置任务ID

	/**
	 * Sets the ID of the Task.
	 * 
	 * @param id the ID of the Task
	 */
	void setId(int id);

拿到任务ID

	/**
	 * Returns the ID of the Task.
	 * 
	 * @return the ID of the Task
	 */
	int getId();

设置任务时间

	/**
	 * 
	 * Sets the time of the task.
	 * 
	 * @param time the time to set
	 */
	void setTime(double time);

获取任务时间

	/**
	 * 
	 * Gets the time of the task.
	 * 
	 * @return the time of the task
	 */
	double getTime();

返回任务执行的边缘节点

	/**
	 * 
	 * Gets the edge device associated with the task.
	 * 
	 * @return the edge device associated with the task
	 */
	ComputingNode getEdgeDevice();

设置任务执行的边缘节点

	/**
	 * 
	 * Sets the edge device associated with the task.
	 * 
	 * @param device the edge device to set
	 * @return the updated Task object
	 */
	Task setEdgeDevice(ComputingNode device);

任务模块大小

	/**
	 * 
	 * Sets the container size of the task in bits.
	 * 
	 * @param containerSize the container size to set in bits
	 * @return the updated Task object
	 */
	Task setContainerSizeInBits(long containerSize);

得到任务容器大小

	/**
	 * 
	 * Gets the container size of the task in bits.
	 * 
	 * @return the container size of the task in bits
	 */
	long getContainerSizeInBits();

得到任务容器大小

	/**
	 * 
	 * Gets the container size of the task in megabytes.
	 * 
	 * @return the container size of the task in megabytes
	 */
	double getContainerSizeInMBytes();

得到编排器

	/**
	 * 
	 * Gets the orchestrator associated with the task.
	 * 
	 * @return the orchestrator associated with the task
	 */
	ComputingNode getOrchestrator();

返回任务的注册节点

	/**
	 * 
	 * Gets the registry associated with the task.
	 * 
	 * @return the registry associated with the task
	 */
	ComputingNode getRegistry();

设置任务的注册节点

	/**
	 * 
	 * Sets the registry associated with the task.
	 * 
	 * @param registry the registry to set
	 * @return the updated Task object
	 */
	Task setRegistry(ComputingNode registry);

获得应用的ID

	/**
	 * 
	 * Gets the ID of the application associated with the task.
	 * 
	 * @return the ID of the application associated with the task
	 */
	int getApplicationID();

设置应用的ID

	/**
	 * 
	 * Sets the ID of the application associated with the task.
	 * 
	 * @param applicationID the ID of the application to set
	 * @return the updated Task object
	 */
	Task setApplicationID(int applicationID);

得到失败的原因

	/**
	 * 
	 * Gets the reason for task failure.
	 * 
	 * @return the reason for task failure
	 */
	FailureReason getFailureReason();

设置失败的原因

	/**
	 * 
	 * Sets the reason for task failure.
	 * 
	 * @param reason the reason for task failure to set
	 */
	void setFailureReason(FailureReason reason);

得到任务卸载的目标节点

	/**
	 * 
	 * Gets the offloading destination associated with the task.
	 * 
	 * @return the offloading destination associated with the task
	 */
	ComputingNode getOffloadingDestination();

设置卸载目标

	/**
	 * 
	 * Sets the offloading destination associated with the task.
	 * 
	 * @param applicationPlacementLocation the offloading destination to set
	 */
	void setOffloadingDestination(ComputingNode applicationPlacementLocation);

设置任务需要的文件大小

	/**
	 * 
	 * Sets the file size of the task request in bits.
	 * 
	 * @param requestSize the file size of the task request to set in bits
	 * @return the updated Task object
	 */
	Task setFileSizeInBits(long requestSize);

设置任务输出的文件大小

	/**
	 * 
	 * Sets the output size of the task in bits.
	 * 
	 * @param outputSize the output size of the task to set in bits
	 * @return the updated Task object
	 */
	Task setOutputSizeInBits(long outputSize);

得到任务长度

	/**
	 * 
	 * Gets the length of the task.
	 * 
	 * @return the length of the task
	 */
	double getLength();

获取任务需要的文件大小

	/**
	 * 
	 * Gets the file size of the task request in bits.
	 * 
	 * @return the file size of the task request in bits
	 */
	double getFileSizeInBits();

获取任务的输出文件大小

	/**
	 * 
	 * Gets the output size of the task in bits.
	 * 
	 * @return the output size of the task in bits
	 */
	double getOutputSizeInBits();

设置任务的状态(成功或失败)

	/**
	 * 
	 * Sets the status of the task.
	 * 
	 * @param status the status of the task
	 */
	void setStatus(Status status);

获取任务的状态

	/**
	 * 
	 * Gets the status of the task.
	 * 
	 * @return the status of the task
	 */
	Status getStatus();

获取任务类型

	/**
	 * 
	 * Gets the type of the task.
	 * 
	 * @return the type of the task
	 */
	String getType();

设置任务类型

	/**
	 * 
	 * Sets the type of the task.
	 * 
	 * @param type the type of the task
	 * @return the task with the updated type
	 */
	Task setType(String type);

设置任务长度

	/**
	 * 
	 * Sets the length of the task.
	 * 
	 * @param length the length of the task
	 * @return the task with the updated length
	 */
	Task setLength(double length);

设置任务的编排器节点

	/**
	 * 
	 * Sets the orchestrator node of the task.
	 * 
	 * @param orchestrator the orchestrator node of the task
	 */
	void setOrchestrator(ComputingNode orchestrator);

获取任务的总延迟

	/**
	 * 
	 * Gets the total delay of the task.
	 * 
	 * @return the total delay of the task
	 */
	double getTotalDelay();

设置任务序列数量

	/**
	 * 
	 * Sets the serial number of the task.
	 * 
	 * @param l the serial number of the task
	 */
	void setSerial(long l);

获取任务序列数量

	/**
	 * 
	 * Gets the serial number of the task.
	 * 
	 * @return the serial number of the task
	 */
	long getSerial();

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值