diff --git a/src/main/java/com/beanit/iec61850bean/ClientSap.java b/src/main/java/com/beanit/iec61850bean/ClientSap.java index 0ca8c45..c67f771 100644 --- a/src/main/java/com/beanit/iec61850bean/ClientSap.java +++ b/src/main/java/com/beanit/iec61850bean/ClientSap.java @@ -33,11 +33,11 @@ public final class ClientSap { private static final byte[] DEFAULT_TSEL_LOCAL = new byte[] {0, 0}; private static final byte[] DEFAULT_TSEL_REMOTE = new byte[] {0, 1}; - private static final int DEFAUTL_TPDU_SIZE_PARAMETER = 10; // size = 1024 - private final int proposedMaxServOutstandingCalling = 5; - private final int proposedMaxServOutstandingCalled = 5; - private final int proposedDataStructureNestingLevel = 10; + private static final int DEFAULT_TPDU_SIZE_PARAMETER = 10; // size = 1024 private final ClientAcseSap acseSap; + private int proposedMaxServOutstandingCalling = 5; + private int proposedMaxServOutstandingCalled = 5; + private int proposedDataStructureNestingLevel = 10; private int proposedMaxMmsPduSize = 65000; private byte[] servicesSupportedCalling = new byte[] {(byte) 0xee, 0x1c, 0, 0, 0x04, 0x08, 0, 0, 0x79, (byte) 0xef, 0x18}; @@ -49,7 +49,7 @@ public final class ClientSap { acseSap = new ClientAcseSap(); acseSap.tSap.tSelLocal = DEFAULT_TSEL_LOCAL; acseSap.tSap.tSelRemote = DEFAULT_TSEL_REMOTE; - acseSap.tSap.setMaxTPDUSizeParam(DEFAUTL_TPDU_SIZE_PARAMETER); + acseSap.tSap.setMaxTPDUSizeParam(DEFAULT_TPDU_SIZE_PARAMETER); } /** @@ -62,7 +62,7 @@ public final class ClientSap { acseSap = new ClientAcseSap(socketFactory); acseSap.tSap.tSelLocal = DEFAULT_TSEL_LOCAL; acseSap.tSap.tSelRemote = DEFAULT_TSEL_REMOTE; - acseSap.tSap.setMaxTPDUSizeParam(DEFAUTL_TPDU_SIZE_PARAMETER); + acseSap.tSap.setMaxTPDUSizeParam(DEFAULT_TPDU_SIZE_PARAMETER); } /** @@ -91,6 +91,18 @@ public final class ClientSap { } } + public void setProposedMaxServOutstandingCalling(int proposedMaxServOutstandingCalling) { + this.proposedMaxServOutstandingCalling = proposedMaxServOutstandingCalling; + } + + public void setProposedMaxServOutstandingCalled(int proposedMaxServOutstandingCalled) { + this.proposedMaxServOutstandingCalled = proposedMaxServOutstandingCalled; + } + + public void setProposedDataStructureNestingLevel(int proposedDataStructureNestingLevel) { + this.proposedDataStructureNestingLevel = proposedDataStructureNestingLevel; + } + /** * Gets the ServicesSupportedCalling parameter. *