it.unibo.alchemist.model.interfaces.Layer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alchemist-interfaces Show documentation
Show all versions of alchemist-interfaces Show documentation
Interfaces of core and model components of Alchemist
/*
* Copyright (C) 2010-2019, Danilo Pianini and contributors listed in the main project's alchemist/build.gradle file.
*
* This file is part of Alchemist, and is distributed under the terms of the
* GNU General Public License, with a linking exception,
* as described in the file LICENSE in the Alchemist distribution's top directory.
*/
package it.unibo.alchemist.model.interfaces;
import java.io.Serializable;
/**
*
* Interface for static layer, containing a substance or a molecule with a
* spatial distribution.
*
* @param
* the value that measure the substance in a point.
* @param
* Concentration type
*/
@FunctionalInterface
public interface Layer> extends Serializable {
/**
*
* @param p
* the {@link Position}.
* @return the value in the requested {@link Position}.
*/
T getValue(P p);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy