On-line algorithms for networks of temporal constraints