Real-Time Context-Aware Computing With Applications In Civil Infrastructure Systems.