Programming Actor-Based Collective Adaptive Systems