| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.netio.slip
|
Class SlipAccessPointConfig
|
|
+--com.newstep.solid.netio.slip.SlipAccessPointConfig
public class SlipAccessPointConfig
The configuration required to initialize the SlipAccessPoint.
NOTE: the SlipAccessPointConfig MUST contain transport protocol
access point config such that it can assign a valid transport to the Slip
protocol stack.
Links:
Kernel Association Association Link
The configuration for the underlying slip transport protocol
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Generalization Generalization Link
The configuration required to initialize the SlipAccessPoint.
NOTE: the SlipAccessPointConfig MUST contain transport protocol
access point config such that it can assign a valid transport to the Slip
protocol stack.
| Field Summary |
int |
|
int |
|
LengthEncoding |
|
private final static int |
|
private final static LengthEncoding |
|
private final static int |
|
int |
|
LengthEncoding |
|
int |
|
|
|
| Constructor Summary |
public void |
|
public void |
|
| Method Summary |
public int |
|
public LengthEncoding |
|
public int |
|
|
|
public void |
|
public void |
|
public void |
|
public String |
|
private final static int DEFAULT_HEADER_PADDING
Final.
Multiplicity:
1
Static.
private final static LengthEncoding DEFAULT_LENGTH_ENCODING
Final.
Multiplicity:
1
Static.
private final static int DEFAULT_MAX_PAYLOAD
Final.
Multiplicity:
1
Static.
int headerPadding
The number of blank (zero filled) byted to pad at the end of the header
Multiplicity:
1
int headerPadding
The number of blank (zero filled) byted to pad at the end of the header
LengthEncoding lengthEncoding
The type of encoding applied to the slip message protocol.
Valid encodings are:
- BYTE: length encoded as a single signed byte
- UNSIGNED_BYTE: length encoded as a single unsigned byte
- SHORT: length encoded as a single signed short
- UNSIGNED_SHORT: length encoded as a single unsigned short
- INT: length encoded as a single signed integer
NOTE: values greater than those represented by signed integer are
not supported by the buffer allocation system and therefor not by the
SLIP protocol.
LengthEncoding lengthEncoding
The type of encoding applied to the slip message protocol.
Valid encodings are:
- BYTE: length encoded as a single signed byte
- UNSIGNED_BYTE: length encoded as a single unsigned byte
- SHORT: length encoded as a single signed short
- UNSIGNED_SHORT: length encoded as a single unsigned short
- INT: length encoded as a single signed integer
NOTE: values greater than those represented by signed integer are
not supported by the buffer allocation system and therefor not by the
SLIP protocol.
Multiplicity:
1
int maxPayload
The maximum payload length. This must be valid based on the encoding
mechanism. E.g. a maxPayload of 65535 will is NOT valid with the BYTE
encoding scheme.
int maxPayload
The maximum payload length. This must be valid based on the encoding
mechanism. E.g. a maxPayload of 65535 will is NOT valid with the BYTE
encoding scheme.
Multiplicity:
1
The configuration for the underlying slip transport protocol
Multiplicity:
1
public void SlipAccessPointConfig (ChannelAccessPointConfig transAccessPointConfig, Integer headerPadding, Integer maxPayloadSize, LengthEncoding lengthEncoding)
Assigns the SLIP access point factory name.
Takes parameters for the other accesspoint options.
Parameters:
transAccessPointConfig The configuraton for the transport access
point. This configuration determines the underlying protocol overwhich
the Slip protocol will function.
NOTE:The transport access point MUST support the StreamChannel construct in
order to be compatible with the SlipChannel
headerPadding The non negative number of blank bytes with which the header should be padded.
lengthEncoding The non null lengthEncoding scheme.
maxPayloadSize The maxPayload length (in bytes) for a valid SLIP message.
Must be representable in the length encoding given.
Stereotype:
create
public void SlipAccessPointConfig ()
Default constructor.
Assigns the SLIP access point factory name.
Uses default values for the config.
Stereotype:
create
public int getHeaderPadding ()
Gets the number of blank bytes with which the header should be padded
Return:
The number of blank bytes with which the header should be padded.
public LengthEncoding getLengthEncoding ()
Gets the lengthEncoding scheme enumerator
Return:
The lengthEncoding scheme enumerator
public int getMaxPayload ()
Gets the maxPayload length (in bytes) for a valid SLIP message
Return:
The maxPayload length (in bytes) for a valid SLIP message
getTransportAccessPointConfig
Gets the access point config for the SLIP protocol transport layer
Return:
The access point config for the SLIP protocol transport layer
public void setEncodingMax (LengthEncoding lengthEncoding, Integer maxPayloadSize)
Assigns the lengthEncoding scheme and the length (in bytes) for a valid SLIP message.
The given length encoding must be valid for the given max payload size.
The max payload size must be a positive number representable in the encoding type.
Parameters:
lengthEncoding The non null lengthEncoding scheme.
maxPayloadSize The maxPayload length (in bytes) for a valid SLIP message.
public void setHeaderPadding (Integer headerPadding)
Assigns the number of blank bytes with which the header should be padded
Parameters:
headerPadding The non negative number of blank bytes with which the header should be padded.
setTransportAccessPointConfig
Assigns the transport access point configuration.
Parameters:
transAccessPointConfig The configuraton for the transport access
point. This configuration determines the underlying protocol overwhich
the Slip protocol will function.
NOTE:The transport access point MUST support the StreamChannel construct in
order to be compatible with the SlipChannel
public String toString ()
Gets the stringified configuration values
Return:
The stringified configuration values
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|