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

📄 lock.java

📁 发布/订阅系统路由重配算法,可应用于ad hoc环境
💻 JAVA
字号:
package com;import broker.Broker;/** * The lock message. * @author parzy */public class Lock extends Message {	/**	 * The path to lock.	 */	public final Broker[] path;		/**	 * First node of the old edge on the path.	 */	public final Broker bX;		/**	 * Second node of the old edge on the path.	 */	public final Broker bY;	/**	 * Creates a new lock message.	 * @param path the path to lock.	 * @param bX the first node of the old edge on the path.	 * @param bY the second node of the old edge on the path.	 */	public Lock(Broker[] path, Broker bX, Broker bY){		this(path, bX, bY, Message.RECONFIGURATION);	}		/**	 * Creates a new lock message.	 * @param path the path to lock.	 * @param bX the first node of the old edge on the path.	 * @param bY the second node of the old edge on the path.	 */	public Lock(Broker[] path, Broker bX, Broker bY, int type){		super(type);		this.path = path;		this.bX = bX;		this.bY = bY;	}	/**	 * Returns the path to lock.	 * @return the path to lock.	 */	public Broker[] getPath(){		return path;	}		/**	 * Returns the first node of the old edge on the path.	 * @return the first node of the old edge on the path.	 */	public Broker getBX(){		return bX;	}		/**	 * Returns the second node of the old edge on the path.	 * @return the second node of the old edge on the path.	 */	public Broker getBY(){		return bY;	}}

⌨️ 快捷键说明

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