com.jpeterson.x10.module
Class CM11AMacroDownloadTransmission

java.lang.Object
  |
  +--com.jpeterson.x10.module.CM11AStandardTransmission
        |
        +--com.jpeterson.x10.module.CM11AMacroDownloadTransmission

public class CM11AMacroDownloadTransmission
extends CM11AStandardTransmission

Create a standard CM11 transmission event to transmit. Standard transmission events are transmitted to the CM11 by a protocol that provides safeguards to ensure that the message is sent to the CM11 device correctly. The safeguards implemeted are a checksum algorythm.


Fields inherited from class com.jpeterson.x10.module.CM11AStandardTransmission
packet
 
Constructor Summary
CM11AMacroDownloadTransmission(byte[] packet)
          Create a macro download CM11 transmission event to transmit the specified packet of bytes.
 
Method Summary
protected  byte getChecksum()
          Retrieve the checksum of the bytes in the message or the X10 transmission.
 java.lang.String toString()
          Create a string representation of the transmission.
 
Methods inherited from class com.jpeterson.x10.module.CM11AStandardTransmission
getNumAttempts, setMaxAttempts, transmit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CM11AMacroDownloadTransmission

public CM11AMacroDownloadTransmission(byte[] packet)
Create a macro download CM11 transmission event to transmit the specified packet of bytes.
Parameters:
packet - The packet of bytes to transmit to the CM11 interface
Method Detail

getChecksum

protected byte getChecksum()
Retrieve the checksum of the bytes in the message or the X10 transmission.
Overrides:
getChecksum in class CM11AStandardTransmission
Returns:
the checksum

toString

public java.lang.String toString()
Create a string representation of the transmission.
Overrides:
toString in class CM11AStandardTransmission
Returns:
String representation of the transmission.