Fixed building of models, moved code into directory structure.
[packetcable.git] / protocol_plugins.packetcable / src / main / java / org / umu / cops / stack / COPSIpv6LastPdpAddr.java
diff --git a/protocol_plugins.packetcable/src/main/java/org/umu/cops/stack/COPSIpv6LastPdpAddr.java b/protocol_plugins.packetcable/src/main/java/org/umu/cops/stack/COPSIpv6LastPdpAddr.java
new file mode 100644 (file)
index 0000000..f0d52bb
--- /dev/null
@@ -0,0 +1,53 @@
+/*\r
+ * Copyright (c) 2003 University of Murcia.  All rights reserved.\r
+ * --------------------------------------------------------------\r
+ * For more information, please see <http://www.umu.euro6ix.org/>.\r
+ */\r
+\r
+package org.umu.cops.stack;\r
+\r
+import java.io.IOException;\r
+import java.io.OutputStream;\r
+\r
+/**\r
+ * COPS IPv6 Last PDP Address\r
+ *\r
+ * @version COPSIpv6LastPdpAddr.java, v 1.00 2003\r
+ *\r
+ */\r
+public class COPSIpv6LastPdpAddr extends COPSIpv6PdpAddress {\r
+\r
+    public COPSIpv6LastPdpAddr() {\r
+        super();\r
+        _objHdr.setCNum(COPSObjHeader.COPS_LAST_PDP_ADDR);\r
+    }\r
+\r
+    public COPSIpv6LastPdpAddr(byte[] dataPtr) {\r
+        super(dataPtr);\r
+    }\r
+\r
+    /**\r
+     * Method isLastPdpAddress\r
+     *\r
+     * @return   a boolean\r
+     *\r
+     */\r
+    public boolean isLastPdpAddress() {\r
+        return true;\r
+    }\r
+\r
+    /**\r
+     * Write an object textual description in the output stream\r
+     *\r
+     * @param    os                  an OutputStream\r
+     *\r
+     * @throws   IOException\r
+     *\r
+     */\r
+    public void dump(OutputStream os) throws IOException {\r
+        _objHdr.dump(os);\r
+        os.write(new String("Ipv6PdpAddress" + "\n").getBytes());\r
+        os.write(new String("Address: " + _addr.getIpName() + "\n").getBytes());\r
+        os.write(new String("Port: " + _tcpPort + "\n").getBytes());\r
+    }\r
+};\r