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

📄 event.java

📁 发布/订阅系统路由重配算法,可应用于ad hoc环境
💻 JAVA
字号:
/* * project: RebecaSim * package: sim * file:    Event.java *  * version: 0.1 * date:    03.05.2005 *  * This software is part of the diploma thesis "Ein adaptives Brokernetz  * für Publish/Subscribe Systeme". */package sim;import util.*;/** * TODO Insert class description here. * * @version 03.05.2005 * @author  parzy */public abstract class Event implements Comparable {		private double time;	private ID id;		public Event(){		this.time = -1;		this.id = new ID();	}		public int compareTo(Object o){		return compareTo((Event)o);			}	private int compareTo(Event e){		return (this.time<e.time ? -1 : (this.time>e.time ? 1 : this.id.compareTo(e.id)));		}		public void setTime(double time){		this.time = time;	}		public double getTime(){		return time;	}		public abstract void handle();	}

⌨️ 快捷键说明

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