How to build real-time multi-agent systems using anytime techniques