universe.world.base
Interface OnReceive<Msg extends java.io.Serializable>


public interface OnReceive<Msg extends java.io.Serializable>

An interface that represents a function that produces a Package (World + Messages) when a Message is received.


Method Summary
 Package<Msg> apply(World<Msg> w, Msg m)
          Apply this function to produce a Package (World + Messages) when a message is received.
 

Method Detail

apply

Package<Msg> apply(World<Msg> w,
                   Msg m)
Apply this function to produce a Package (World + Messages) when a message is received.