A modular approach to real time programming using actors and Java