Package 

Interface LayerToFunctionMapper


  • 
    public interface LayerToFunctionMapper
    
                        

    Defines an object capable of mapping a Layer<T, P> to a Function<* in P, * out Number>.

    • Method Summary

      Modifier and Type Method Description
      <T extends Any, P extends Position2D<P>> Unit prepare(DrawLayersValues effect, Collection<Layer<T, P>> toDraw, Environment<T, P> env, Graphics2D g, Wormhole2D<P> wormhole) Prepare the mapping (if necessary).
      abstract <T extends Any, P extends Position2D<P>> Collection<Function<in P, out Number>> map(Collection<Layer<T, P>> layers) Effectively map the given layers, layers may be filtered too if the mapper is only able to map certain types of layers.
      abstract <T extends Any, P extends Position2D<P>> Stream<Function<in P, out Number>> map(Stream<Layer<T, P>> layers) see LayerToFunctionMapper.map.
      • Methods inherited from class it.unibo.alchemist.boundary.gui.effects.LayerToFunctionMapper

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait