Artificial immunology for collective adaptive systems design and implementation