tuwien.auto.calimero.process
Class ProcessEvent

java.lang.Object
  extended by java.util.EventObject
      extended by tuwien.auto.calimero.process.ProcessEvent
All Implemented Interfaces:
java.io.Serializable

public class ProcessEvent
extends java.util.EventObject

Contains information about a process message event.

See Also:
ProcessCommunicator, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ProcessEvent(java.lang.Object source, IndividualAddress src, GroupAddress dst, byte[] asdu)
          Creates a new process event with the KNX message source address, destination address and ASDU.
 
Method Summary
 byte[] getASDU()
          Returns the application layer service data unit (ASDU).
 GroupAddress getDestination()
          Returns the KNX destination group address.
 IndividualAddress getSourceAddr()
          Returns the KNX individual source address.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessEvent

public ProcessEvent(java.lang.Object source,
                    IndividualAddress src,
                    GroupAddress dst,
                    byte[] asdu)
Creates a new process event with the KNX message source address, destination address and ASDU.

Parameters:
source - the receiving process communicator
src - KNX source individual address of message
dst - KNX destination address of message
asdu - byte array with application layer service data unit (ASDU), no copy is created
Method Detail

getASDU

public final byte[] getASDU()
Returns the application layer service data unit (ASDU).

Returns:
copy of ASDU as byte array

getDestination

public final GroupAddress getDestination()
Returns the KNX destination group address.

Returns:
address as GroupAddress

getSourceAddr

public final IndividualAddress getSourceAddr()
Returns the KNX individual source address.

Returns:
address as IndividualAddress