|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttuwien.auto.calimero.mgmt.Destination.AggregatorProxy
public static final class Destination.AggregatorProxy
An aggregator proxy is associated with one destination and is supplied at the creation of a new destination object.
Used by the owner of a destination handling the communication and used to modify destination state and obtain internal connection settings.
By default, this proxy is created by a transport layer implementation.
Constructor Summary | |
---|---|
Destination.AggregatorProxy(TransportLayer aggregator)
Creates a new aggregator proxy. |
Method Summary | |
---|---|
Destination |
getDestination()
Returns the destination associated with this proxy. |
int |
getSeqReceive()
Returns the receive sequence number of the connection. |
int |
getSeqSend()
Returns the send sequence number of the connection. |
void |
incSeqReceive()
Increments the receive sequence number by one. |
void |
incSeqSend()
Increments the send sequence number by one. |
void |
restartTimeout()
Restarts the connection timeout used for the destination connection. |
void |
setState(byte newState)
Sets a new destination connection state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Destination.AggregatorProxy(TransportLayer aggregator)
aggregator
- the transport layer serving the destination associated with
this proxy and handles necessary transport layer communicationMethod Detail |
---|
public Destination getDestination()
public int getSeqReceive()
public int getSeqSend()
public void incSeqReceive()
The new sequence number is the next expected receive sequence number, with increment on sequence number 15 resulting in 0.
public void incSeqSend()
The new sequence number is the next expected send sequence number, with increment on sequence number 15 resulting in 0.
public void restartTimeout()
This method is only used in connection oriented communication mode.
KNXIllegalStateException
- if invoked on not connection oriented modepublic void setState(byte newState)
If necessary, the connection timeout for the destination is started, restarted
or deactivated according the state transition.
If the state of destination is Destination.DESTROYED
, setting of a new
state is ignored.
newState
- new destination state
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |