/** * 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); }
/** * 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(); }
/** * 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; }
/** * 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(); }