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

📄 simpredicate.java

📁 一个用于排队系统仿真的开源软件,有非常形象的图象仿真过程!
💻 JAVA
字号:
/* Sim_predicate.java
 */

package jmt.engine.simEngine;


/**
 * Predicates are used to select events from the deferred queue.
 * This class is abstract and must be subclassed when writing new
 * predicate.
 */

public abstract class SimPredicate {
	/**
	 * The match function which must be overridden when writing a new
	 * predicate. The function is called with each event in the deferred
	 * queue as its parameter when a <tt>SimSystem.simSelect()</tt>
	 * call is made by the user.
	 * @param event The event to test for a match.
	 * @return The function should return <tt>true</tt> if the
	 *         event matches and shoult be selected, of <tt>false</tt>
	 *         if it doesn't
	 */
	public abstract boolean match(SimEvent event);
}

⌨️ 快捷键说明

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