Discrete models of continuous behavior of collective adaptive systems