package comp.hackbridge.viral;

public class Node {
    private static long GLOBAL_ID = 1;
    private final long nodeID;

    private PhysicalState physical_state;
    private AwarenessState awareness_state;

    public Node(PhysicalState physical_s, AwarenessState awareness_s) {
        nodeID = GLOBAL_ID;
        GLOBAL_ID++;
        this.physical_state = physical_s;
        this.awareness_state = awareness_s;
    }

    public long getID() {
        return nodeID;
    }

    public AwarenessState getAwarenessState() {
        return awareness_state;
    }

    public PhysicalState getPhysicalState() {
        return physical_state;
    }
}

@@ -203,16 +203,48 @@
 state;%0A%0A
+    private boolean connected;%0A%0A
     publ
@@ -303,24 +303,24 @@
 reness_s) %7B%0A
-
         node
@@ -438,24 +438,50 @@
 wareness_s;%0A
+        connected = true;%0A
     %7D%0A%0A    p
@@ -656,32 +656,32 @@
 ysicalState() %7B%0A
-
         return p
@@ -700,11 +700,173 @@
 e;%0A    %7D
+%0A%0A    public boolean getConnected() %7B%0A        return connected;%0A    %7D%0A%0A    public void setConnected(boolean connected) %7B%0A        this.connected = connected;%0A    %7D
 %0A%7D%0A

Update Node and LocationState