package scriptbuilder.structures;

/**
 *
 * @author Greg Eddington <geddingt@calpoly.edu>
 */
public class ScriptEvent implements Comparable<ScriptEvent>
{
    public int compareTo(ScriptEvent o)
    {
        return this.type.compareTo(o.type);
    }

    public static enum ScriptEventType
    {
        AUDIO_EVENT             ("Audio"),
        CAD_EVENT               ("CAD"),
        CCTV_EVENT              ("CCTV"),
        CHP_RADIO_EVENT         ("CHPRadio"),
        PARAMICS_EVENT          ("Paramics"),
        TOW_EVENT               ("Tow"),
        UNIT_EVENT              ("Unit"),
        WITNESS_EVENT           ("Witness"),
        MAINTENANCE_RADIO_EVENT ("MaintenanceRadio"),
        TMT_RADIO_EVENT         ("TMTRadio"),
        TELEPHONE_EVENT         ("Telephone"),
        ATMS_EVAL_EVENT         ("ATMSEval"),
        ACTIVITY_LOG_EVAL_EVENT ("ActivityLogEval"),
        CAD_EVAL_EVENT          ("CADEval"),
        CMS_EVAL_EVENT          ("CMSEval"),
        FACILITATOR_EVAL_EVENT  ("FacilitatorEval"),
        RADIO_EVAL_EVENT        ("RadioEval");

        public String IMAGE_NAME;

        private ScriptEventType(String image)
        {
            this.IMAGE_NAME = image;
        }
    }

    private ScriptEventType type;

    /**
     * Used for debugging only.
     * @param type The type of event.
     */
    public ScriptEvent(ScriptEventType type)
    {
        this.type = type;
    }

    public ScriptEventType getScriptEventType()
    {
        return type;
    }

    @Override
    public String toString()
    {
        return this.type.toString() + " - [Event Description]";
    }
}
