addAllocationListener

Add an allocation listener. Allocation listeners are notified when (after) units are allocated to an entity and after units are deallocated.