package com.jscape.inet.terminal.events;

import com.jscape.inet.terminal.TerminalListener;

/**
 * Base interface for <code>Terminal</code> events.
 * "Visitor" pattern [Gamma94].
 */
public interface TerminalEvent {

    //----------------------------------------------------------------------------

    /**
     * Calls correct callback method of <code>TerminalListener</code> object.
     *
     * @param listener <code>TerminalListener</code> object.
     */
    void accept(TerminalListener listener);

}