Add java files
authorBrian Demsky <bdemsky@plrg.eecs.uci.edu>
Sat, 23 Jul 2016 03:07:15 +0000 (20:07 -0700)
committerBrian Demsky <bdemsky@plrg.eecs.uci.edu>
Sat, 23 Jul 2016 03:07:15 +0000 (20:07 -0700)
src/java/iotcloud/Entry.java [new file with mode: 0644]
src/java/iotcloud/KeyValue.java [new file with mode: 0644]
src/java/iotcloud/LastMessage.java [new file with mode: 0644]
src/java/iotcloud/RejectedMessage.java [new file with mode: 0644]
src/java/iotcloud/Slot.java

diff --git a/src/java/iotcloud/Entry.java b/src/java/iotcloud/Entry.java
new file mode 100644 (file)
index 0000000..0e6d43d
--- /dev/null
@@ -0,0 +1,5 @@
+package iotcloud;
+
+public abstract class Entry {
+       
+}
diff --git a/src/java/iotcloud/KeyValue.java b/src/java/iotcloud/KeyValue.java
new file mode 100644 (file)
index 0000000..fd74dc1
--- /dev/null
@@ -0,0 +1,6 @@
+package iotcloud;
+
+public class KeyValue extends Entry {
+       
+
+}
diff --git a/src/java/iotcloud/LastMessage.java b/src/java/iotcloud/LastMessage.java
new file mode 100644 (file)
index 0000000..ad1f273
--- /dev/null
@@ -0,0 +1,6 @@
+package iotcloud;
+
+public class LastMessage extends Entry {
+
+
+}
diff --git a/src/java/iotcloud/RejectedMessage.java b/src/java/iotcloud/RejectedMessage.java
new file mode 100644 (file)
index 0000000..f74c0c1
--- /dev/null
@@ -0,0 +1,6 @@
+package iotcloud;
+
+public class RejectedMessage extends Entry {
+
+
+}
index 9dd6c18..33a8908 100644 (file)
@@ -1,14 +1,20 @@
 package iotcloud;
+import java.util.Vector;
 
 class Slot {
        long seqnum;
        byte[] bytes;
+       Vector<Entry> entries;
+
+       Slot() {
+               entries=new Vector();
+       }
        
        Slot(long _seqnum, byte[] _bytes) {
+               this();
                seqnum=_seqnum;
                bytes=_bytes;
        }
-
        
        long getSequenceNumber() {
                return seqnum;