Learning and Designing Stochastic Processes from Logical Constraints (Logical Methods in Computer Science, 2015)