** Constants
*******************************************************************************************************************************************/
//public static final int NUMBER_OF_ZONES = 12;
+ // TODO: We stick to 1 zone for now
+ // Unfortunately Java has a problem of creating struct that it can only declare it as public static.
+ // So having more than 1 zone is not possible with a struct of static variables.
public static final int NUMBER_OF_ZONES = 1;
@config IoTSet<IoTDeviceAddress> blossomSprAddressSet;
private void workerMethod() {
System.out.println("Get into worker!");
while (didEnd.get() == false) {
- //System.out.println("While not end");
try {
zoneStateMutex.acquire();
for (ZoneState z : zoneStates) {