tuwien.auto.calimero.link.event
Class MonitorFrameEvent

java.lang.Object
  extended by java.util.EventObject
      extended by tuwien.auto.calimero.FrameEvent
          extended by tuwien.auto.calimero.link.event.MonitorFrameEvent
All Implemented Interfaces:
java.io.Serializable

public class MonitorFrameEvent
extends FrameEvent

Informs about a new monitor indication received from the KNX network and contains the received indication frame.

The source of the event is a KNXNetworkMonitor.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MonitorFrameEvent(java.lang.Object source, CEMI frame)
          Creates a new monitor frame event with the indication frame.
MonitorFrameEvent(java.lang.Object source, CEMI frame, RawFrame rawFrame)
          Creates a new monitor frame event with the indication frame and the decoded raw frame.
 
Method Summary
 RawFrame getRawFrame()
          Returns the decoded raw frame on medium.
 
Methods inherited from class tuwien.auto.calimero.FrameEvent
getFrame, getFrameBytes
 
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

MonitorFrameEvent

public MonitorFrameEvent(java.lang.Object source,
                         CEMI frame)
Creates a new monitor frame event with the indication frame.

Parameters:
source - the network monitor which received the frame
frame - monitor indication frame encapsulated in cEMI type

MonitorFrameEvent

public MonitorFrameEvent(java.lang.Object source,
                         CEMI frame,
                         RawFrame rawFrame)
Creates a new monitor frame event with the indication frame and the decoded raw frame.

Parameters:
source - the network monitor which received the frame
frame - monitor indication frame encapsulated in cEMI type
rawFrame - the decoded raw frame on medium encapsulated in type RawFrame, use null if no decoded raw frame is available
Method Detail

getRawFrame

public final RawFrame getRawFrame()
Returns the decoded raw frame on medium.

Returns:
the frame of type RawFrame or null on no decoded raw frame