rinde.sim.core.model.ModelProvider Maven / Gradle / Ivy
/**
*
*/
package rinde.sim.core.model;
import javax.annotation.Nullable;
/**
* Implementations of this interface may provide access to any {@link Model}s it
* knows.
* @author Rinde van Lon
*/
public interface ModelProvider {
/**
* @param clazz The type of {@link Model}.
* @param The type of model.
* @return A {@link Model} instance of the specified type if it knows about
* it, null
otherwise.
*/
@Nullable
> T getModel(Class clazz);
}