Object-based real-time programming