alchemist-interfaces / it.unibo.alchemist.model.interfaces / Environment / getLayer

getLayer

abstract fun getLayer(m: Molecule!): Optional<Layer<T, P>!>!

Get the layer associate to the given molecule. If no Layer is associated with the given molecule, return an empty optional.

Parameters

m - Molecule!: the Molecule

Return
Optional<Layer<T, P>!>!: the Optional containing the Layer associated with the requested molecule