コード例 #1
0
ファイル: Destination.java プロジェクト: WzDrg/HomeControl
 /**
  * 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
ファイル: Destination.java プロジェクト: WzDrg/HomeControl
 /**
  * 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
ファイル: Destination.java プロジェクト: WzDrg/HomeControl
 /**
  * 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
ファイル: Destination.java プロジェクト: WzDrg/HomeControl
 /**
  * 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;
 }
コード例 #5
0
 /**
  * {@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();
 }