public class FrameWrapper extends java.lang.Object implements AX25FrameSource
NO_FRAMES
Constructor and Description |
---|
FrameWrapper(AX25Frame frame,
FrameState state,
Connector port)
Wrap an AX25Frame with information to direct it to a single Coonector port.
|
Modifier and Type | Method and Description |
---|---|
Connector |
getConnector()
Specify the Connector this message should be transmitted through.
|
AX25Frame[] |
getFrames(boolean incrementXmtCount,
ProtocolFamily protocolId,
java.lang.String senderCallsign)
Get one or more AX25Frames of the data to transmit.
|
int |
getNumTransmitsBeforeDecay()
Get number of times frame will be retransmitted before inter-packet delay is increased.
|
java.lang.String |
toString()
Generate a String representation of this FrameWrapper.
|
public FrameWrapper(AX25Frame frame, FrameState state, Connector port)
frame
- AX25Frame to transmitstate
- FrameState object to be updated when the frame is transmitted, or null if statistics not desiredport
- Connector to send the frame throughpublic AX25Frame[] getFrames(boolean incrementXmtCount, ProtocolFamily protocolId, java.lang.String senderCallsign)
getFrames
in interface AX25FrameSource
incrementXmtCount
- indicate whether the transmit counter (used to cycle through
proportional pathing) should be incrementedprotocolId
- indicate the protocol to generate this frame for (not relevant for
digipeated frames)senderCallsign
- String of local callsign sending this message (may be ignored if digipeating
a message from another station)public int getNumTransmitsBeforeDecay()
getNumTransmitsBeforeDecay
in interface AX25FrameSource
public Connector getConnector()
getConnector
in interface AX25FrameSource
Connector.CAP_XMT_PACKET_DATA
public java.lang.String toString()
toString
in class java.lang.Object