示例#1
0
 /**
  * Sets a new destination connection state.
  *
  * <p>If necessary, the connection timeout for the destination is started, restarted or
  * deactivated according the state transition.<br>
  * If the state of destination is {@link Destination#DESTROYED}, setting of a new state is
  * ignored.
  *
  * @param newState new destination state
  */
 public void setState(byte newState) {
   d.setState(newState);
 }
示例#2
0
 /**
  * Restarts the connection timeout used for the destination connection.
  *
  * <p>This method is only used in connection oriented communication mode.
  *
  * @throws KNXIllegalStateException if invoked on not connection oriented mode
  */
 public void restartTimeout() {
   d.restartTimer();
 }
示例#3
0
 /**
  * Increments the receive sequence number by one.
  *
  * <p>The new sequence number is the next expected receive sequence number, with increment on
  * sequence number 15 resulting in 0.
  */
 public synchronized void incSeqReceive() {
   d.seqRcv = ++d.seqRcv & 0x0F;
 }
示例#4
0
 /**
  * Increments the send sequence number by one.
  *
  * <p>The new sequence number is the next expected send sequence number, with increment on
  * sequence number 15 resulting in 0.
  */
 public synchronized void incSeqSend() {
   d.seqSend = ++d.seqSend & 0x0f;
 }
 /**
  * {@inheritDoc} The name for this adapter starts with "remote PS " + remote KNX individual
  * address, allowing easier distinction of adapter types.
  */
 public String getName() {
   return "remote PS " + dst.getAddress();
 }