Often, when modelling a system there are properties and operations that are related to a group of objects rather than to a single object. In this paper we extend Java with Swarm Behavior, a new composition operator that associates behavior with a collection of instances. The lookup resolution of swarm behavior is based on the element type of a collection and is thus orthogonal to the collection hierarchy.
@article{arxiv.1007.0159,
title = {Empowering Collections with Swarm Behavior},
author = {Adrian Kuhn and David Erni and Marcus Denker},
journal= {arXiv preprint arXiv:1007.0159},
year = {2010}
}