📄 simpredicate.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 + -