All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java-fsm.code.net.openai.util.fsm.event.MachineEvent Maven / Gradle / Ivy

Go to download

OpenAI FSM is used by Apache cTAKES. It was originally developed out of sourceforge openAI group

The newest version!
/*****************************************************************************
 * 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 Event object that will interface between the 
 * Machines 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;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy