package nl.tudelft.simulation.event; import java.io.Serializable; /** * The EventInterface defines the interface for all events in the DSOL project. *
* Copyright (c) 2002-2019 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See * for project information https://simulation.tudelft.nl. The DSOL * project is distributed under a three-clause BSD-style license, which can be found at * * https://simulation.tudelft.nl/dsol/3.0/license.html. *
* @author Peter Jacobs * @author Alexander Verbraeck */ public interface EventInterface extends Serializable { /** * returns the source of the event. The source is the sender of the event * @return the source of the event */ Object getSource(); /** * returns the content of this event. * @return the content of this event */ Object getContent(); /** * returns the type of the event. * @return the eventType of the event */ EventType getType(); }