tuwien.auto.calimero.link.event
Class MonitorFrameEvent
java.lang.Object
java.util.EventObject
tuwien.auto.calimero.FrameEvent
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
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. |
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 |
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 frameframe
- 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 frameframe
- monitor indication frame encapsulated in cEMI typerawFrame
- the decoded raw frame on medium encapsulated in type RawFrame, use
null
if no decoded raw frame is available
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