Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/hop #839

Draft
wants to merge 14 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ atlassian-ide-plugin.xml
*.tar.gz
*.rar


# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public List<AlarmMessageObjectQueryType> getMessageObjects() {
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("Alarm8MessageQueryType");

// Simple Field (functionId)
Expand Down Expand Up @@ -173,8 +172,6 @@ public static Alarm8MessageQueryType staticParse(ReadBuffer readBuffer, Object..
public static Alarm8MessageQueryType staticParse(ReadBuffer readBuffer) throws ParseException {
readBuffer.pullContext("Alarm8MessageQueryType");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

short functionId = readSimpleField("functionId", readUnsignedShort(readBuffer, 8));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ public short getVariableSpec() {
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("AlarmMessageAckObjectPushType");

// Const Field (variableSpec)
Expand Down Expand Up @@ -172,8 +171,6 @@ public static AlarmMessageAckObjectPushType staticParse(ReadBuffer readBuffer)
throws ParseException {
readBuffer.pullContext("AlarmMessageAckObjectPushType");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

short variableSpec =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public List<AlarmMessageAckObjectPushType> getMessageObjects() {
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("AlarmMessageAckPushType");

// Simple Field (TimeStamp)
Expand Down Expand Up @@ -133,8 +132,6 @@ public static AlarmMessageAckPushType staticParse(ReadBuffer readBuffer, Object.
public static AlarmMessageAckPushType staticParse(ReadBuffer readBuffer) throws ParseException {
readBuffer.pullContext("AlarmMessageAckPushType");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

DateAndTime TimeStamp =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public List<Short> getMessageObjects() {
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("AlarmMessageAckResponseType");

// Simple Field (functionId)
Expand Down Expand Up @@ -115,8 +114,6 @@ public static AlarmMessageAckResponseType staticParse(ReadBuffer readBuffer)
throws ParseException {
readBuffer.pullContext("AlarmMessageAckResponseType");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

short functionId = readSimpleField("functionId", readUnsignedShort(readBuffer, 8));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public List<AlarmMessageObjectAckType> getMessageObjects() {
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("AlarmMessageAckType");

// Simple Field (functionId)
Expand Down Expand Up @@ -118,8 +117,6 @@ public static AlarmMessageAckType staticParse(ReadBuffer readBuffer, Object... a
public static AlarmMessageAckType staticParse(ReadBuffer readBuffer) throws ParseException {
readBuffer.pullContext("AlarmMessageAckType");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

short functionId = readSimpleField("functionId", readUnsignedShort(readBuffer, 8));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public short getLength() {
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("AlarmMessageObjectAckType");

// Const Field (variableSpec)
Expand Down Expand Up @@ -169,8 +168,6 @@ public static AlarmMessageObjectAckType staticParse(ReadBuffer readBuffer, Objec
public static AlarmMessageObjectAckType staticParse(ReadBuffer readBuffer) throws ParseException {
readBuffer.pullContext("AlarmMessageObjectAckType");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

short variableSpec =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ public short getVariableSpec() {
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("AlarmMessageObjectPushType");

// Const Field (variableSpec)
Expand Down Expand Up @@ -217,8 +216,6 @@ public static AlarmMessageObjectPushType staticParse(ReadBuffer readBuffer)
throws ParseException {
readBuffer.pullContext("AlarmMessageObjectPushType");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

short variableSpec =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ public short getVariableSpec() {
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("AlarmMessageObjectQueryType");

// Simple Field (lengthDataset)
Expand Down Expand Up @@ -199,8 +198,6 @@ public static AlarmMessageObjectQueryType staticParse(ReadBuffer readBuffer)
throws ParseException {
readBuffer.pullContext("AlarmMessageObjectQueryType");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

short lengthDataset = readSimpleField("lengthDataset", readUnsignedShort(readBuffer, 8));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public List<AlarmMessageObjectPushType> getMessageObjects() {
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("AlarmMessagePushType");

// Simple Field (TimeStamp)
Expand Down Expand Up @@ -133,8 +132,6 @@ public static AlarmMessagePushType staticParse(ReadBuffer readBuffer, Object...
public static AlarmMessagePushType staticParse(ReadBuffer readBuffer) throws ParseException {
readBuffer.pullContext("AlarmMessagePushType");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

DateAndTime TimeStamp =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public int getDataLength() {
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("AlarmMessageQueryType");

// Simple Field (functionId)
Expand Down Expand Up @@ -173,8 +172,6 @@ public static AlarmMessageQueryType staticParse(ReadBuffer readBuffer, Object...
public static AlarmMessageQueryType staticParse(ReadBuffer readBuffer) throws ParseException {
readBuffer.pullContext("AlarmMessageQueryType");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

short functionId = readSimpleField("functionId", readUnsignedShort(readBuffer, 8));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public enum AlarmStateType {
}
}

private short value;
private final short value;

AlarmStateType(short value) {
this.value = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public enum AlarmType {
}
}

private short value;
private final short value;

AlarmType(short value) {
this.value = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public List<Short> getData() {
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("AssociatedQueryValueType");

// Simple Field (returnCode)
Expand Down Expand Up @@ -143,8 +142,6 @@ public static AssociatedQueryValueType staticParse(ReadBuffer readBuffer, Object
public static AssociatedQueryValueType staticParse(ReadBuffer readBuffer) throws ParseException {
readBuffer.pullContext("AssociatedQueryValueType");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

DataTransportErrorCode returnCode =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public List<Short> getData() {
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("AssociatedValueType");

// Simple Field (returnCode)
Expand Down Expand Up @@ -148,8 +147,6 @@ public static AssociatedValueType staticParse(ReadBuffer readBuffer, Object... a
public static AssociatedValueType staticParse(ReadBuffer readBuffer) throws ParseException {
readBuffer.pullContext("AssociatedValueType");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

DataTransportErrorCode returnCode =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public COTPProtocolClass getProtocolClass() {
protected void serializeCOTPPacketChild(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("COTPPacketConnectionRequest");

// Simple Field (destinationReference)
Expand Down Expand Up @@ -125,8 +124,6 @@ public static COTPPacketBuilder staticParseCOTPPacketBuilder(
ReadBuffer readBuffer, Integer cotpLen) throws ParseException {
readBuffer.pullContext("COTPPacketConnectionRequest");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

int destinationReference =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public COTPProtocolClass getProtocolClass() {
protected void serializeCOTPPacketChild(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("COTPPacketConnectionResponse");

// Simple Field (destinationReference)
Expand Down Expand Up @@ -125,8 +124,6 @@ public static COTPPacketBuilder staticParseCOTPPacketBuilder(
ReadBuffer readBuffer, Integer cotpLen) throws ParseException {
readBuffer.pullContext("COTPPacketConnectionResponse");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

int destinationReference =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public short getTpduRef() {
protected void serializeCOTPPacketChild(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("COTPPacketData");

// Simple Field (eot)
Expand Down Expand Up @@ -101,8 +100,6 @@ public static COTPPacketBuilder staticParseCOTPPacketBuilder(
ReadBuffer readBuffer, Integer cotpLen) throws ParseException {
readBuffer.pullContext("COTPPacketData");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

boolean eot = readSimpleField("eot", readBoolean(readBuffer));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public COTPProtocolClass getProtocolClass() {
protected void serializeCOTPPacketChild(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("COTPPacketDisconnectRequest");

// Simple Field (destinationReference)
Expand Down Expand Up @@ -125,8 +124,6 @@ public static COTPPacketBuilder staticParseCOTPPacketBuilder(
ReadBuffer readBuffer, Integer cotpLen) throws ParseException {
readBuffer.pullContext("COTPPacketDisconnectRequest");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

int destinationReference =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public int getSourceReference() {
protected void serializeCOTPPacketChild(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("COTPPacketDisconnectResponse");

// Simple Field (destinationReference)
Expand Down Expand Up @@ -105,8 +104,6 @@ public static COTPPacketBuilder staticParseCOTPPacketBuilder(
ReadBuffer readBuffer, Integer cotpLen) throws ParseException {
readBuffer.pullContext("COTPPacketDisconnectResponse");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

int destinationReference =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public short getRejectCause() {
protected void serializeCOTPPacketChild(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("COTPPacketTpduError");

// Simple Field (destinationReference)
Expand Down Expand Up @@ -105,8 +104,6 @@ public static COTPPacketBuilder staticParseCOTPPacketBuilder(
ReadBuffer readBuffer, Integer cotpLen) throws ParseException {
readBuffer.pullContext("COTPPacketTpduError");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

int destinationReference =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ protected abstract void serializeCOTPParameterChild(WriteBuffer writeBuffer)
public void serialize(WriteBuffer writeBuffer) throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("COTPParameter");

// Discriminator Field (parameterType) (Used as input to a switch field)
Expand Down Expand Up @@ -113,8 +112,6 @@ public static COTPParameter staticParse(ReadBuffer readBuffer, Object... args)
public static COTPParameter staticParse(ReadBuffer readBuffer, Short rest) throws ParseException {
readBuffer.pullContext("COTPParameter");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

short parameterType = readDiscriminatorField("parameterType", readUnsignedShort(readBuffer, 8));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ protected void serializeCOTPParameterChild(WriteBuffer writeBuffer)
throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("COTPParameterCalledTsap");

// Simple Field (tsapId)
Expand Down Expand Up @@ -89,8 +88,6 @@ public static COTPParameterBuilder staticParseCOTPParameterBuilder(
ReadBuffer readBuffer, Short rest) throws ParseException {
readBuffer.pullContext("COTPParameterCalledTsap");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

int tsapId = readSimpleField("tsapId", readUnsignedInt(readBuffer, 16));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ protected void serializeCOTPParameterChild(WriteBuffer writeBuffer)
throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("COTPParameterCallingTsap");

// Simple Field (tsapId)
Expand Down Expand Up @@ -89,8 +88,6 @@ public static COTPParameterBuilder staticParseCOTPParameterBuilder(
ReadBuffer readBuffer, Short rest) throws ParseException {
readBuffer.pullContext("COTPParameterCallingTsap");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

int tsapId = readSimpleField("tsapId", readUnsignedInt(readBuffer, 16));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ protected void serializeCOTPParameterChild(WriteBuffer writeBuffer)
throws SerializationException {
PositionAware positionAware = writeBuffer;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();
int startPos = positionAware.getPos();
writeBuffer.pushContext("COTPParameterChecksum");

// Simple Field (crc)
Expand Down Expand Up @@ -89,8 +88,6 @@ public static COTPParameterBuilder staticParseCOTPParameterBuilder(
ReadBuffer readBuffer, Short rest) throws ParseException {
readBuffer.pullContext("COTPParameterChecksum");
PositionAware positionAware = readBuffer;
int startPos = positionAware.getPos();
int curPos;
boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get();

short crc = readSimpleField("crc", readUnsignedShort(readBuffer, 8));
Expand Down
Loading