Adding mode base model and unit tests stuff.
diff --git a/net/api/src/main/java/org/onlab/onos/net/AbstractElement.java b/net/api/src/main/java/org/onlab/onos/net/AbstractElement.java
new file mode 100644
index 0000000..01341a5
--- /dev/null
+++ b/net/api/src/main/java/org/onlab/onos/net/AbstractElement.java
@@ -0,0 +1,28 @@
+package org.onlab.onos.net;
+
+import org.onlab.onos.net.provider.ProviderId;
+
+/**
+ * Base implementation of network elements, i.e. devices or hosts.
+ */
+public class AbstractElement extends AbstractModel implements Element {
+
+ protected final ElementId id;
+
+ /**
+ * Creates a network element attributed to the specified provider.
+ *
+ * @param providerId identity of the provider
+ * @param id element identifier
+ */
+ protected AbstractElement(ProviderId providerId, ElementId id) {
+ super(providerId);
+ this.id = id;
+ }
+
+ @Override
+ public ElementId id() {
+ return id;
+ }
+
+}