machineevent.java

来自「JAVA实现的有限状态自动机。该软件适合Linux环境下安装运行。」· Java 代码 · 共 46 行

JAVA
46
字号
/***************************************************************************** * net.openai.fsm.event.MachineEvent ***************************************************************************** * @author  JC on E * @date    12/3/2000 * 2001 OpenAI Labs *****************************************************************************/package net.openai.util.fsm.event;import java.util.EventObject;import java.io.Serializable;import net.openai.util.fsm.Machine;/** * The <code>Event</code> object that will interface between the  * <code>Machine</code>s and their listeners. */public final class MachineEvent extends EventObject implements Serializable {    /** This type of MachineEvent indicates that. */    /** The type of event that this MachineEvent is. */    private int type = -1;    /**     * Constructs a new MachineEvent.     */    public MachineEvent(Machine source, int type) {	super(source);	this.type = type;    }    /**     * Returns the type of this MachineEvent.     *     * @return The type of this MachineEvent.     */    public final int getType() {	return type;    }}

⌨️ 快捷键说明

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