Gravar-mail: Environment classification in multiagent systems inspired by the adaptive immune system