Commit 60ad3d03 authored by garciay's avatar garciay
Browse files

Update UT primitives

parent 1fadbf4b
......@@ -46,10 +46,12 @@ public class Plugin {
cf.setCodec(TciTypeClass.RECORD, "UpperTester", "UtIvimTriggerResult", UtIvimTermination.class);
cf.setCodec(TciTypeClass.RECORD, "UpperTester", "UtIvimUpdateResult", UtIvimTermination.class);
// SREM/SSEM
cf.setCodec(TciTypeClass.RECORD, "UpperTester", "UtSremEventInd", UtEventInd.class);
cf.setCodec(TciTypeClass.RECORD, "UpperTester", "UtSsemEventInd", UtEventInd.class);
cf.setCodec(TciTypeClass.RECORD, "UpperTester", "UtSremTrigger", UtSremTrigger.class);
cf.setCodec(TciTypeClass.RECORD, "UpperTester", "UtSremTriggerResult", UtBoolean.class);
cf.setCodec(TciTypeClass.RECORD, "UpperTester", "UtSremUpdate", UtSremUpdate.class);
cf.setCodec(TciTypeClass.RECORD, "UpperTester", "UtSremUpdateResult", UtBoolean.class);
cf.setCodec(TciTypeClass.RECORD, "UpperTester", "UtSremEventInd", UtEventInd.class);
cf.setCodec(TciTypeClass.RECORD, "UpperTester", "UtSsemEventInd", UtEventInd.class);
}
}
\ No newline at end of file
......@@ -105,8 +105,10 @@ public enum UtPduId {
/* From LibItsSremSsem_TypesAndValues */
UtSremTrigger(0xAB),
UtSremTriggerResult(0xAC),
UtSremEventInd(0xAD),
UtSsemEventInd(0xAE),
UtSremUpdate(0xAD),
UtSremUpdateResult(0xAE),
UtSremEventInd(0xAF),
UtSsemEventInd(0xB0), // FIXME Not good, try to merge UtSremTriggerResult & UtSremUpdateResult
/* Reserved */
reserved(0xFF);
......
......@@ -10,7 +10,7 @@ public class UtSremTrigger extends UtRecord {
}
private void setLengths() {
mainCodec.setHint("BasicVehicleRole", "8");
mainCodec.setHint("RequestImportanceLevel", "8");
mainCodec.setHint("BasicVehicleRoleLen", "8");
mainCodec.setHint("RequestImportanceLevelLen", "8");
}
}
package org.etsi.ttcn.codec.its.uppertester;
import org.etsi.ttcn.codec.MainCodec;
public class UtSremUpdate extends UtRecord {
public UtSremUpdate(MainCodec mainCodec) {
super(mainCodec);
setLengths();
}
private void setLengths() {
mainCodec.setHint("RequestIDLen", "8");
mainCodec.setHint("BasicVehicleRoleLen", "8");
mainCodec.setHint("RequestImportanceLevelLen", "8");
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment