Update Location_time_aware.java

able to set rules to the switch