⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 measurerequest.java

📁 网格agent平台(GAP ,Grid AgentsPlatform)开发包
💻 JAVA
字号:
/*
 ****************************************************************************************
 * Copyright ? Giovanni Novelli
 * All Rights Reserved.
 ****************************************************************************************
 *
 * Title:        GAP Simulator
 * Description:  GAP (Grid Agents Platform) Toolkit for Modeling and Simulation
 *               of Mobile Agents on Grids
 * License:      GPL - http://www.gnu.org/copyleft/gpl.html
 *
 * MeasureRequest.java
 *
 * Created on 29 March 2007, 12.00 by Giovanni Novelli
 *
 ****************************************************************************************
 *
 * $Revision$
 * $Id$
 * $HeadURL$
 *
 *****************************************************************************************
 */

package net.sf.gap.messages;

import eduni.simjava.Sim_event;

/**
 *
 * @author Giovanni Novelli
 */
public class MeasureRequest extends Request {
	@SuppressWarnings("unused")
	private int ID;

	private double timestamp;

	private Sim_event event;

	/**
	 * Creates a new instance of MeasureRequest
	 */
	public MeasureRequest(int src_ID, int ID, double timestamp, Sim_event event) {
		super(src_ID, ID);
		this.setTimestamp(timestamp);
		this.setEvent(event);
	}

	public static MeasureRequest get_data(Sim_event ev) {
		Message<MeasureRequest> message = new Message<MeasureRequest>();
		return message.get_data(ev);
	}

	@Override
	public MeasureRequest clone() {
		return new MeasureRequest(this.getSrc_ID(), this.getID(), this
				.getTimestamp(), this.getEvent());
	}

	public int getID() {
		return this.getSrc_resID();
	}

	public Sim_event getEvent() {
		return event;
	}

	public void setEvent(Sim_event event) {
		this.event = event;
	}

	public double getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(double timestamp) {
		this.timestamp = timestamp;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -