All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rinde.sim.core.model.ModelProvider Maven / Gradle / Ivy

There is a newer version: 4.4.6
Show newest version
/**
 * 
 */
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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy