2 new revisions:
Revision: 6bd700562b62
Author: Oifa Yulian <[email protected]>
Date: Mon Jun 18 04:57:53 2012
Log: Modified ISUP User Service information parameter
http://code.google.com/p/jss7/source/detail?r=6bd700562b62
Revision: d55eff4db473
Author: Oifa Yulian <[email protected]>
Date: Mon Jun 18 04:58:02 2012
Log: Merge branch 'master' of https://code.google.com/p/jss7
http://code.google.com/p/jss7/source/detail?r=d55eff4db473
==============================================================================
Revision: 6bd700562b62
Author: Oifa Yulian <[email protected]>
Date: Mon Jun 18 04:57:53 2012
Log: Modified ISUP User Service information parameter
http://code.google.com/p/jss7/source/detail?r=6bd700562b62
Modified:
/hardware/dialogic/native/win/pom.xml
/isup/isup-api/src/main/java/org/mobicents/protocols/ss7/isup/message/parameter/UserServiceInformation.java
/isup/isup-impl/src/main/java/org/mobicents/protocols/ss7/isup/impl/message/parameter/UserServiceInformationImpl.java
=======================================
---
/isup/isup-api/src/main/java/org/mobicents/protocols/ss7/isup/message/parameter/UserServiceInformation.java
Sun Jun 17 08:45:31 2012
+++
/isup/isup-api/src/main/java/org/mobicents/protocols/ss7/isup/message/parameter/UserServiceInformation.java
Mon Jun 18 04:57:53 2012
@@ -33,7 +33,7 @@
* Project: mobicents-isup-stack<br>
*
* @author <a href="mailto:[email protected]">Bartosz Baranowski</a>
- * * @author <a href="mailto:[email protected]">Yulian Oifa</a>
+ * @author <a href="mailto:[email protected]">Yulian Oifa</a>
*/
public interface UserServiceInformation extends ISUPParameter {
public static final int _PARAMETER_CODE = 0x1D;
@@ -91,6 +91,197 @@
public static final int _ITR_MULTIRATE=24;
+ //SYNC/ASYNC OPTIONS
+ public static final int _SA_SYNC=0;
+
+ public static final int _SA_ASYNC=1;
+
+ //NEGOTIATION OPTIONS
+ public static final int _NG_INBAND_NOT_POSSIBLE=0;
+
+ public static final int _NG_INBAND_POSSIBLE=1;
+
+ //USER RATE OPTIONS
+ public static final int _UR_EBITS=0;
+
+ public static final int _UR_0_6=1;
+
+ public static final int _UR_1_2=2;
+
+ public static final int _UR_2_4=3;
+
+ public static final int _UR_3_6=4;
+
+ public static final int _UR_4_8=5;
+
+ public static final int _UR_7_2=6;
+
+ public static final int _UR_8_0=7;
+
+ public static final int _UR_9_6=8;
+
+ public static final int _UR_14_4=9;
+
+ public static final int _UR_16_0=10;
+
+ public static final int _UR_19_2=11;
+
+ public static final int _UR_32_0=12;
+
+ public static final int _UR_38_4=13;
+
+ public static final int _UR_48_0=14;
+
+ public static final int _UR_56_0=15;
+
+ public static final int _UR_57_6=18;
+
+ public static final int _UR_28_8=19;
+
+ public static final int _UR_24_0=20;
+
+ public static final int _UR_0_1345=21;
+
+ public static final int _UR_0_1=22;
+
+ public static final int _UR_0_075_ON_1_2=23;
+
+ public static final int _UR_1_2_ON_0_075=24;
+
+ public static final int _UR_0_050=25;
+
+ public static final int _UR_0_075=26;
+
+ public static final int _UR_0_110=27;
+
+ public static final int _UR_0_150=28;
+
+ public static final int _UR_0_200=29;
+
+ public static final int _UR_0_300=30;
+
+ public static final int _UR_12_0=31;
+
+ //INTERMEDIATE RATE OPTIONS
+ public static final int _IR_NOT_USED=0;
+
+ public static final int _IR_8_0=1;
+
+ public static final int _IR_16_0=2;
+
+ public static final int _IR_32_0=3;
+
+ //NETWORK INDEPENDENT CLOCK ON TX
+ public static final int _NICTX_NOT_REQUIRED=0;
+
+ public static final int _NICTX_REQUIRED=1;
+
+ //NETWORK INDEPENDENT CLOCK ON RX
+ public static final int _NICRX_CANNOT_ACCEPT=0;
+
+ public static final int _NICRX_CAN_ACCEPT=1;
+
+ //FLOW CONTROL ON TX
+ public static final int _FCTX_NOT_REQUIRED=0;
+
+ public static final int _FCTX_REQUIRED=1;
+
+ //FLOW CONTROL ON RX
+ public static final int _FCRX_CANNOT_ACCEPT=0;
+
+ public static final int _FCRX_CAN_ACCEPT=1;
+
+ //RATE ADAPTATION HEADER OPTIONS
+ public static final int _HDR_INCLUDED=0;
+
+ public static final int _HDR_NOT_INCLUDED=1;
+
+ //MULTIFRAME OPTIONS
+ public static final int _MF_NOT_SUPPORTED=0;
+
+ public static final int _MF_SUPPORTED=1;
+
+ //MODE OPTIONS
+ public static final int _MODE_BIT_TRANSPARENT=0;
+
+ public static final int _MODE_PROTOCOL_SENSITIVE=1;
+
+ //LOGICAL LINK IDENTIFIER OPTIONS
+ public static final int _LLI_256=0;
+
+ public static final int _LLI_FULL_NEGOTIATION=1;
+
+ //ASSIGNOR / ASSIGNEE OPTIONS
+ public static final int _ASS_DEFAULT_ASSIGNEE=0;
+
+ public static final int _ASS_ASSIGNOR_ONLY=1;
+
+ //INBAND/OUT OF BAND NEGOTIATION OPTIONS
+ public static final int _NEG_USER_INFORMATION=0;
+
+ public static final int _NEG_INBAND=1;
+
+ //STOP BITS OPTIONS
+ public static final int _SB_NOT_USED=0;
+
+ public static final int _SB_1BIT=1;
+
+ public static final int _SB_1_5BITS=2;
+
+ public static final int _SB_2BITS=3;
+
+ //DATA BITS OPTIONS
+ public static final int _DB_NOT_USED=0;
+
+ public static final int _DB_5BITS=1;
+
+ public static final int _DB_7BITS=2;
+
+ public static final int _DB_8BITS=3;
+
+ //PARITY INFORMATION
+ public static final int _PAR_ODD=0;
+
+ public static final int _PAR_EVEN=2;
+
+ public static final int _PAR_NONE=3;
+
+ public static final int _PAR_FORCED_0=4;
+
+ public static final int _PAR_FORCED_1=5;
+
+ //DUPLEX INFORMATION
+ public static final int _DUP_HALF=0;
+
+ public static final int _DUP_FULL=1;
+
+ //MODEM TYPE INFORMATION
+ public static final int _MODEM_V21=17;
+
+ public static final int _MODEM_V22=18;
+
+ public static final int _MODEM_V22_BIS=19;
+
+ public static final int _MODEM_V23=20;
+
+ public static final int _MODEM_V26=21;
+
+ public static final int _MODEM_V26_BIS=22;
+
+ public static final int _MODEM_V26_TER=23;
+
+ public static final int _MODEM_V27=24;
+
+ public static final int _MODEM_V27_BIS=25;
+
+ public static final int _MODEM_V27_TER=26;
+
+ public static final int _MODEM_V29=27;
+
+ public static final int _MODEM_V32=29;
+
+ public static final int _MODEM_V34=30;
+
//LAYER 1 USER INFORMATION OPTIONS
public static final int _L1_ITUT_110=1;
@@ -153,9 +344,16 @@
public static final int _L3_T70=10;
+ public static final int _L3_ISO_9577=11;
+
public static final int _L3_USR_SPEC=16;
+ //LAYER 3 PROTOCOL OPTIONS;
+ public static final int _L3_PROT_IP=204;
+
+ public static final int _L3_PROT_P2P=207;
+
public int getCodingStandart();
public void setCodingStandart(int codingStandart);
@@ -189,4 +387,84 @@
public int getL3UserInformation();
public void setL3UserInformation(int l3UserInformation);
-}
+
+ public int getSyncMode();
+
+ public void setSyncMode(int syncMode);
+
+ public int getNegotiation();
+
+ public void setNegotiation(int negotiation);
+
+ public int getUserRate();
+
+ public void setUserRate(int userRate);
+
+ public int getIntermediateRate();
+
+ public void setIntermediateRate(int intermediateRate);
+
+ public int getNicOnTx();
+
+ public void setNicOnTx(int nicOnTx);
+
+ public int getNicOnRx();
+
+ public void setNicOnRx(int nicOnRx);
+
+ public int getFlowControlOnTx();
+
+ public void setFlowControlOnTx(int fcOnTx);
+
+ public int getFlowControlOnRx();
+
+ public void setFlowControlOnRx(int fcOnRx);
+
+ public int getHDR();
+
+ public void setHDR(int hdr);
+
+ public int getMultiframe();
+
+ public void setMultiframe(int multiframe);
+
+ public int getMode();
+
+ public void setMode(int mode);
+
+ public int getLLINegotiation();
+
+ public void setLLINegotiation(int lli);
+
+ public int getAssignor();
+
+ public void setAssignor(int assignor);
+
+ public int getInBandNegotiation();
+
+ public void setInBandNegotiation(int inBandNegotiation);
+
+ public int getStopBits();
+
+ public void setStopBits(int stopBits);
+
+ public int getDataBits();
+
+ public void setDataBits(int dataBits);
+
+ public int getParity();
+
+ public void setParity(int parity);
+
+ public int getDuplexMode();
+
+ public void setDuplexMode(int duplexMode);
+
+ public int getModemType();
+
+ public void setModemType(int modemType);
+
+ public int getL3Protocol();
+
+ public void setL3Protocol(int l3Protocol);
+}
=======================================
---
/isup/isup-impl/src/main/java/org/mobicents/protocols/ss7/isup/impl/message/parameter/UserServiceInformationImpl.java
Sun Jun 17 08:45:31 2012
+++
/isup/isup-impl/src/main/java/org/mobicents/protocols/ss7/isup/impl/message/parameter/UserServiceInformationImpl.java
Mon Jun 18 04:57:53 2012
@@ -24,8 +24,8 @@
* Start time:12:36:18 2009-04-04<br>
* Project: mobicents-isup-stack<br>
*
- * @author <a href="mailto:[email protected]"> Bartosz Baranowski
- * </a>
+ * @author <a href="mailto:[email protected]"> Bartosz Baranowski</a>
+ * @author <a href="mailto:[email protected]">Yulian Oifa</a>
*
*/
package org.mobicents.protocols.ss7.isup.impl.message.parameter;
@@ -53,9 +53,30 @@
private int l2UserInformation = 0;
private int l3UserInformation = 0;
+ private int syncMode=0;
+ private int negotiation=0;
+ private int userRate=0;
+ private int intermediateRate=0;
+ private int nicOnTx=0;
+ private int nicOnRx=0;
+ private int fcOnTx=0;
+ private int fcOnRx=0;
+ private int hdr=0;
+ private int multiframe=0;
+ private int mode=0;
+ private int lli=0;
+ private int assignor=0;
+ private int inBandNegotiation=0;
+ private int stopBits=0;
+ private int dataBits=0;
+ private int parity=0;
+ private int duplexMode=0;
+ private int modemType=0;
+ private int l3Protocol=0;
+
public int decode(byte[] b) throws ParameterException {
- if (b == null || b.length < 2 || b.length>6) {
- throw new IllegalArgumentException("byte[] must not be null and should
be between 2 and 6 bytes in length");
+ if (b == null || b.length < 2 || b.length>13) {
+ throw new IllegalArgumentException("byte[] must not be null and should
be between 2 and 13 bytes in length");
}
int v = 0;
@@ -90,12 +111,122 @@
{
case _LAYER1_IDENTIFIER:
this.l1UserInformation=v & 0x1F;
+ //check for bytes 5a to 5d depending on
l1 information
+
+ //note 2 This octet may be present if octet 3 indicates
unrestricted digital information and octet 5 indicates either
+ //of the ITU-T standardized rate adaptions V.110, I.460 and X.30 or
V.120 [9]. It may also be present if octet 3
+ //indicates 3.1 kHz audio and octet 5
indicates G.711.
+
+
if(this.informationTransferCapability==_ITS_UNRESTRICTED_DIGITAL)
+ {
+ switch(this.l1UserInformation)
+ {
+ case _L1_ITUT_110:
+ case _L1_NON_ITUT:
+ //should have 5a
+ v = b[index++];
+ this.syncMode=(v >>
6) & 0x01;
+ this.negotiation=(v
>> 5) & 0x01;
+ this.userRate=v
& 0x1F;
+
+ //NOTE 7 Octets 5b-5d may be omitted in the case of synchronous
user rates.
+
if(this.syncMode==_SA_SYNC)
+ {
+ //NOTE 3 This structure of octet 5b only applies if octet 5
indicates ITU-T standardized rate adaption (see
+
//Recommendations V.110 [7], I.460 [15] and X.30 [8]).
+ v =
b[index++];
+
this.intermediateRate= (v >> 5) & 0x3;
+ this.nicOnTx= (v
>> 4) & 0x1;
+ this.nicOnRx= (v
>> 3) & 0x1;
+ this.fcOnTx= (v
>> 2) & 0x1;
+ this.fcOnRx= (v
>> 1) & 0x1;
+
+ //5c
+ v =
b[index++];
+ this.stopBits=
(v>>5) & 0x03;
+ this.dataBits=
(v>>3) & 0x03;
+
this.parity= v & 0x07;
+
+ //5d
+ v =
b[index++];
+ this.duplexMode=
(v>>6) & 0x1;
+
this.modemType= v & 0x1F;
+ }
+ break;
+ case _L1_ITUT_120:
+ //should have 5a
+ v = b[index++];
+ this.syncMode=(v >>
6) & 0x01;
+ this.negotiation=(v
>> 5) & 0x01;
+ this.userRate=v
& 0x1F;
+
+
if(this.syncMode==_SA_SYNC)
+ {
+ //NOTE 4 This structure of octet 5b only applies if octet 5
indicates ITU-T standardized rate adaption (see
+
//Recommendation V.120 [9]).
+ v =
b[index++];
+ this.hdr= (v
>> 6) & 0x01;
+ this.multiframe=
(v >> 5) & 0x01;
+ this.mode= (v
>> 4) & 0x01;
+ this.lli= (v
>> 3) & 0x01;
+ this.assignor= (v
>> 2) & 0x01;
+
this.inBandNegotiation= (v >> 1) & 0x01;
+
+ //5c
+ v =
b[index++];
+ this.stopBits=
(v>>5) & 0x03;
+ this.dataBits=
(v>>3) & 0x03;
+
this.parity= v & 0x07;
+
+ //5d
+ v =
b[index++];
+ this.duplexMode=
(v>>6) & 0x1;
+
this.modemType= v & 0x1F;
+ }
+ break;
+ }
+ }
+ else if(this.informationTransferCapability==_ITS_3_1_KHZ &&
this.transferMode==_TM_PACKET)
+ {
+ switch(this.l1UserInformation)
+ {
+ case _L1_G11_MU:
+ case _L1_G711_A:
+ //read 5a
+ v = b[index++];
+ this.syncMode=(v >>
6) & 0x01;
+ this.negotiation=(v
>> 5) & 0x01;
+ this.userRate=v
& 0x1F;
+
+ //5c
+ v = b[index++];
+ this.stopBits=
(v>>5) & 0x03;
+ this.dataBits=
(v>>3) & 0x03;
+ this.parity= v
& 0x07;
+
+ //5d
+ v = b[index++];
+ this.duplexMode=
(v>>6) & 0x1;
+ this.modemType= v
& 0x1F;
+ break;
+ }
+ }
break;
case _LAYER2_IDENTIFIER:
- this.l3UserInformation=v & 0x1F;
+ this.l2UserInformation=v & 0x1F;
break;
case _LAYER3_IDENTIFIER:
- this.l2UserInformation=v & 0x1F;
+ this.l3UserInformation=v & 0x1F;
+ //NOTE 5 This octet may be included if octet 7 indicates ISO/IEC TR
9577 (Protocol Identification in the network
+ //layer).
+ if(this.l3UserInformation==_L3_ISO_9577)
+ {
+ //check 2 next bytes
+ v = b[index++];
+ this.l3Protocol=(v & 0x0F)<<4;
+ v = b[index++];
+ this.l3Protocol |= v & 0x0F;
+ }
break;
default:
throw new IllegalArgumentException("invalid
layer identifier");
@@ -111,42 +242,162 @@
byteLength++;
if(this.l1UserInformation>0)
+ {
byteLength++;
+ switch(this.l1UserInformation)
+ {
+ case _L1_ITUT_110:
+ case _L1_NON_ITUT:
+ case _L1_ITUT_120:
+
if(this.informationTransferCapability==_ITS_UNRESTRICTED_DIGITAL)
+ {
+ byteLength++;
+ if(this.syncMode==_SA_SYNC)
+ byteLength+=3;
+ }
+ break;
+ case _L1_G11_MU:
+ case _L1_G711_A:
+ if(this.informationTransferCapability==_ITS_3_1_KHZ &&
this.transferMode==_TM_PACKET)
+ byteLength+=3;
+ break;
+ }
+ }
if(this.l2UserInformation>0)
byteLength++;
if(this.l3UserInformation>0)
+ {
byteLength++;
+ if(this.l3UserInformation==_L3_ISO_9577)
+ byteLength+=2;
+ }
byte[] b = new byte[byteLength];
+ b[0] |= 0x80;
b[0] |= (this.codingStandart & 0x3) << 5;
b[0] |= (informationTransferCapability & 0x1f);
+ b[1] |= 0x80;
b[1] |= (this.transferMode & 0x3) << 5;
b[1] |= (informationTransferRate & 0x1f);
byteLength=2;
if(this.transferMode==_ITR_MULTIRATE)
+ {
+ b[byteLength] |= 0x80;
b[byteLength++] |= customInformationTransferRate;
+ }
if(this.l1UserInformation>0)
{
b[byteLength] |= _LAYER1_IDENTIFIER << 5;
b[byteLength++] |= l1UserInformation & 0x1f;
+
+ switch(this.l1UserInformation)
+ {
+ case _L1_ITUT_110:
+ case _L1_NON_ITUT:
+
if(this.informationTransferCapability==_ITS_UNRESTRICTED_DIGITAL)
+ {
+ b[byteLength] |= this.syncMode
<< 6;
+ b[byteLength] |= this.negotiation
<< 5;
+ b[byteLength++] |=
this.userRate;
+
+ if(this.syncMode==_SA_SYNC)
+ {
+ //5b
+ b[byteLength] |=
this.intermediateRate << 5;
+ b[byteLength] |= this.nicOnTx
<< 4;
+ b[byteLength] |= this.nicOnRx
<< 3;
+ b[byteLength] |= this.fcOnTx
<< 2;
+ b[byteLength++] |=
this.fcOnRx << 1;
+
+ //5c
+ b[byteLength] |=
this.stopBits << 5;
+ b[byteLength] |=
this.dataBits << 3;
+ b[byteLength++] |=
this.parity;
+
+ //5d
+ b[byteLength] |= 0x80;
+ b[byteLength] |=
this.duplexMode << 6;
+ b[byteLength++] |=
this.modemType;
+ }
+ }
+ break;
+ case _L1_ITUT_120:
+
if(this.informationTransferCapability==_ITS_UNRESTRICTED_DIGITAL)
+ {
+ b[byteLength] |= this.syncMode
<< 6;
+ b[byteLength] |= this.negotiation
<< 5;
+ b[byteLength++] |=
this.userRate;
+
+ if(this.syncMode==_SA_SYNC)
+ {
+ //5b
+ b[byteLength] |= this.hdr
<< 6;
+ b[byteLength] |=
this.multiframe << 5;
+ b[byteLength] |= this.mode
<< 4;
+ b[byteLength] |= this.lli
<< 3;
+ b[byteLength] |=
this.assignor << 3;
+ b[byteLength++] |=
this.inBandNegotiation << 1;
+
+ //5c
+ b[byteLength] |=
this.stopBits << 5;
+ b[byteLength] |=
this.dataBits << 3;
+ b[byteLength++] |=
this.parity;
+
+ //5d
+ b[byteLength] |= 0x80;
+ b[byteLength] |=
this.duplexMode << 6;
+ b[byteLength++] |=
this.modemType;
+ }
+ }
+ break;
+ case _L1_G11_MU:
+ case _L1_G711_A:
+ if(this.informationTransferCapability==_ITS_3_1_KHZ &&
this.transferMode==_TM_PACKET)
+ {
+ //read 5a
+ b[byteLength] |= this.syncMode
<< 6;
+ b[byteLength] |= this.negotiation
<< 5;
+ b[byteLength++] |=
this.userRate;
+
+ //5c
+ b[byteLength] |= this.stopBits
<< 5;
+ b[byteLength] |= this.dataBits
<< 3;
+ b[byteLength++] |= this.parity;
+
+ //5d
+ b[byteLength] |= 0x80;
+ b[byteLength] |= this.duplexMode
<< 6;
+ b[byteLength++] |=
this.modemType;
+ }
+ break;
+ }
}
if(this.l2UserInformation>0)
{
+ b[byteLength] |= 0x80;
b[byteLength] |= _LAYER2_IDENTIFIER << 5;
b[byteLength++] |= l2UserInformation & 0x1f;
}
if(this.l3UserInformation>0)
- {
+ {
b[byteLength] |= _LAYER3_IDENTIFIER << 5;
b[byteLength++] |= l3UserInformation & 0x1f;
+
+ if(this.l3UserInformation==_L3_ISO_9577)
+ {
+ b[byteLength] |= 0x80;
+ b[byteLength++] |=(this.l3Protocol>>4) & 0x0F;
+
+ b[byteLength++] |= this.l3Protocol & 0x0F;
+ }
}
return b;
@@ -245,4 +496,204 @@
{
this.l3UserInformation=l3UserInformation;
}
-}
+
+ public int getSyncMode()
+ {
+ return this.syncMode;
+ }
+
+ public void setSyncMode(int syncMode)
+ {
+ this.syncMode=syncMode;
+ }
+
+ public int getNegotiation()
+ {
+ return this.negotiation;
+ }
+
+ public void setNegotiation(int negotiation)
+ {
+ this.negotiation=negotiation;
+ }
+
+ public int getUserRate()
+ {
+ return this.userRate;
+ }
+
+ public void setUserRate(int userRate)
+ {
+ this.userRate=userRate;
+ }
+
+ public int getIntermediateRate()
+ {
+ return this.intermediateRate;
+ }
+
+ public void setIntermediateRate(int intermediateRate)
+ {
+ this.intermediateRate=intermediateRate;
+ }
+
+ public int getNicOnTx()
+ {
+ return this.nicOnTx;
+ }
+
+ public void setNicOnTx(int nicOnTx)
+ {
+ this.nicOnTx=nicOnTx;
+ }
+
+ public int getNicOnRx()
+ {
+ return this.nicOnRx;
+ }
+
+ public void setNicOnRx(int nicOnRx)
+ {
+ this.nicOnRx=nicOnRx;
+ }
+
+ public int getFlowControlOnTx()
+ {
+ return this.fcOnTx;
+ }
+
+ public void setFlowControlOnTx(int fcOnTx)
+ {
+ this.fcOnTx=fcOnTx;
+ }
+
+ public int getFlowControlOnRx()
+ {
+ return this.fcOnRx;
+ }
+
+ public void setFlowControlOnRx(int fcOnRx)
+ {
+ this.fcOnRx=fcOnRx;
+ }
+
+ public int getHDR()
+ {
+ return this.hdr;
+ }
+
+ public void setHDR(int hdr)
+ {
+ this.hdr=hdr;
+ }
+
+ public int getMultiframe()
+ {
+ return this.multiframe;
+ }
+
+ public void setMultiframe(int multiframe)
+ {
+ this.multiframe=multiframe;
+ }
+
+ public int getMode()
+ {
+ return this.mode;
+ }
+
+ public void setMode(int mode)
+ {
+ this.mode=mode;
+ }
+
+ public int getLLINegotiation()
+ {
+ return this.lli;
+ }
+
+ public void setLLINegotiation(int lli)
+ {
+ this.lli=lli;
+ }
+
+ public int getAssignor()
+ {
+ return this.assignor;
+ }
+
+ public void setAssignor(int assignor)
+ {
+ this.assignor=assignor;
+ }
+
+ public int getInBandNegotiation()
+ {
+ return this.inBandNegotiation;
+ }
+
+ public void setInBandNegotiation(int inBandNegotiation)
+ {
+ this.inBandNegotiation=inBandNegotiation;
+ }
+
+ public int getStopBits()
+ {
+ return this.stopBits;
+ }
+
+ public void setStopBits(int stopBits)
+ {
+ this.stopBits=stopBits;
+ }
+
+ public int getDataBits()
+ {
+ return this.dataBits;
+ }
+
+ public void setDataBits(int dataBits)
+ {
+ this.dataBits=dataBits;
+ }
+
+ public int getParity()
+ {
+ return this.parity;
+ }
+
+ public void setParity(int parity)
+ {
+ this.parity=parity;
+ }
+
+ public int getDuplexMode()
+ {
+ return this.duplexMode;
+ }
+
+ public void setDuplexMode(int duplexMode)
+ {
+ this.duplexMode=duplexMode;
+ }
+
+ public int getModemType()
+ {
+ return this.modemType;
+ }
+
+ public void setModemType(int modemType)
+ {
+ this.modemType=modemType;
+ }
+
+ public int getL3Protocol()
+ {
+ return this.l3Protocol;
+ }
+
+ public void setL3Protocol(int l3Protocol)
+ {
+ this.l3Protocol=l3Protocol;
+ }
+}
==============================================================================
Revision: d55eff4db473
Author: Oifa Yulian <[email protected]>
Date: Mon Jun 18 04:58:02 2012
Log: Merge branch 'master' of https://code.google.com/p/jss7
http://code.google.com/p/jss7/source/detail?r=d55eff4db473