initial commit
diff --git a/src/main/java/org.onosproject.xran/samplemessages/RXSigMeasRep.java b/src/main/java/org.onosproject.xran/samplemessages/RXSigMeasRep.java
new file mode 100644
index 0000000..e59b399
--- /dev/null
+++ b/src/main/java/org.onosproject.xran/samplemessages/RXSigMeasRep.java
@@ -0,0 +1,61 @@
+package org.onosproject.xran.samplemessages;
+
+import org.onosproject.xran.codecs.api.*;
+import org.onosproject.xran.codecs.pdu.*;
+import org.openmuc.jasn1.ber.types.string.BerUTF8String;
+
+import java.io.UnsupportedEncodingException;
+
+public class RXSigMeasRep {
+
+ public XrancPdu setPacketProperties(XrancPdu decoder) {
+ CRNTI crnti = decoder.getBody().getRXSigMeasConfig().getCrnti();
+ ECGI ecgi = decoder.getBody().getRXSigMeasConfig().getEcgi();
+
+ RXSigMeasReport.CellMeasReports cellMeasReports = new RXSigMeasReport.CellMeasReports();
+ RXSigReport rxSigReport = new RXSigReport();
+ PCIARFCN pciarfcn = new PCIARFCN();
+ pciarfcn.setPci(new PhysCellId(500));
+ pciarfcn.setEarfcnDl(new ARFCNValue(2100));
+ rxSigReport.setPciArfcn(pciarfcn);
+ rxSigReport.setRsrp(new RSRPRange(4));
+ rxSigReport.setRsrq(new RSRQRange(5));
+ cellMeasReports.setRXSigReport(rxSigReport);
+
+ RXSigReport rxSigReport1 = new RXSigReport();
+ PCIARFCN pciarfcn1 = new PCIARFCN();
+ pciarfcn1.setPci(new PhysCellId(500));
+ pciarfcn1.setEarfcnDl(new ARFCNValue(2100));
+ rxSigReport1.setPciArfcn(pciarfcn);
+ rxSigReport1.setRsrp(new RSRPRange(4));
+ rxSigReport1.setRsrq(new RSRQRange(5));
+ cellMeasReports.setRXSigReport(rxSigReport1);
+
+ RXSigMeasReport rxSigMeasReport = new RXSigMeasReport();
+ rxSigMeasReport.setCrnti(crnti);
+ rxSigMeasReport.setEcgi(ecgi);
+ rxSigMeasReport.setCellMeasReports(cellMeasReports);
+
+ XrancPduBody body = new XrancPduBody();
+ body.setRXSigMeasReport(rxSigMeasReport);
+
+ BerUTF8String ver = null;
+ try {
+ ver = new BerUTF8String("4");
+ } catch (UnsupportedEncodingException e) {
+ e.printStackTrace();
+ }
+
+ XrancApiID apiID = new XrancApiID(18);
+ XrancPduHdr hdr = new XrancPduHdr();
+ hdr.setVer(ver);
+ hdr.setApiId(apiID);
+
+ XrancPdu pdu = new XrancPdu();
+ pdu.setHdr(hdr);
+ pdu.setBody(body);
+
+ return pdu;
+
+ }
+}