package nl.tudelft.simulation.dsol;
/**
* Interface for an identifiable class, which can return an id. Preferably the id is unique in a certain context.
*
* Copyright (c) 2003-2022 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
* @param the type of Id that is returned by an Identifiable, e.g. String
*/
public interface Identifiable
{
/**
* @return the Id, which is preferably unique in a certain context
*/
T getId();
/**
* String interface for an identifiable class.
* copyright (c) 2002-2021 Delft University of Technology.
* BSD-style license. See DSOL License.
*
* @author Peter Jacobs
* @author Alexander Verbraeck
*/
public interface String extends Identifiable
{
@Override
String getId();
}
/**
* Long interface for an identifiable class.
* copyright (c) 2002-2021 Delft University of Technology.
* BSD-style license. See DSOL License.
*
* @author Peter Jacobs
* @author Alexander Verbraeck
*/
public interface Long extends Identifiable
{
@Override
Long getId();
}
}