org.dvb.si
Class SIMonitoringEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.dvb.si.SIMonitoringEvent
All Implemented Interfaces:
java.io.Serializable

public class SIMonitoringEvent
extends java.util.EventObject

Objects of this class are sent to listener objects of the using application to notify that a change in the monitored information has happened.

See Also:
SIMonitoringType, SIMonitoringListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SIMonitoringEvent(SIDatabase source, byte objectType, int networkId, int bouquetId, int originalNetworkId, int transportStreamId, int serviceId, java.util.Date startTime, java.util.Date endTime)
          Constructor for the event object
 
Method Summary
 int getBouquetID()
          Returns the bouquetId of the bouquet.
 java.util.Date getEndTime()
          Returns the end time of the schedule period whose event information has changed.
 int getNetworkID()
          Returns the networkId of the network.
 int getOriginalNetworkID()
          Returns the originalNetworkId of the SIInformation objects This method is only applicable if the SIInformation type returned with the getSIInformationType method is SERVICE, PMT_SERVICE, PRESENT_FOLLOWING_EVENT or SCHEDULED_EVENT.
 int getServiceID()
          Returns the serviceId of the SIInformation objects This method is only applicable if the SIInformation type returned with the getSIInformationType method is PMT_SERVICE, PRESENT_FOLLOWING_EVENT or SCHEDULED_EVENT.
 byte getSIInformationType()
          Get the SIInformation type of the information that has changed
 java.lang.Object getSource()
          Gets the SIDatabase instance that is sending the event.
 java.util.Date getStartTime()
          Returns the start time of the schedule period whose event information has changed.
 int getTransportStreamID()
          Returns the transportStreamId of the SIInformation objects This method is only applicable if the SIInformation type returned with the getSIInformationType method is SERVICE, PMT_SERVICE, PRESENT_FOLLOWING_EVENT or SCHEDULED_EVENT.
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SIMonitoringEvent

public SIMonitoringEvent(SIDatabase source,
                         byte objectType,
                         int networkId,
                         int bouquetId,
                         int originalNetworkId,
                         int transportStreamId,
                         int serviceId,
                         java.util.Date startTime,
                         java.util.Date endTime)
Constructor for the event object

Parameters:
source - the SIDatabase object which is the source of the event
objectType - type of the SIInformation object (constants in SIMonitoringType)
networkId - networkId
bouquetId - bouquetId
originalNetworkId - originalNetworkId
transportStreamId - transportStreamId
serviceId - serviceId
startTime - start time of event schedule period
endTime - end time of event schedule period
Method Detail

getSource

public java.lang.Object getSource()
Gets the SIDatabase instance that is sending the event.

Returns:
the SIDatabase instance that is the source of this event.

getSIInformationType

public byte getSIInformationType()
Get the SIInformation type of the information that has changed

Returns:
The SIInformation type (the possible values are defined in the SIMonitoringType interface).
See Also:
SIMonitoringType

getNetworkID

public int getNetworkID()
Returns the networkId of the network. This method is only applicable if the SIInformation type returned with the getSIInformationType method is NETWORK.

Returns:
the networkId or -2 if not applicable for this event

getBouquetID

public int getBouquetID()
Returns the bouquetId of the bouquet. This method is only applicable if the SIInformation type returned with the getSIInformationType method is BOUQUET.

Returns:
the bouquetId or -2 if not applicable for this event

getOriginalNetworkID

public int getOriginalNetworkID()
Returns the originalNetworkId of the SIInformation objects This method is only applicable if the SIInformation type returned with the getSIInformationType method is SERVICE, PMT_SERVICE, PRESENT_FOLLOWING_EVENT or SCHEDULED_EVENT.

Returns:
the originalNetworkId or -2 if not applicable for this event

getTransportStreamID

public int getTransportStreamID()
Returns the transportStreamId of the SIInformation objects This method is only applicable if the SIInformation type returned with the getSIInformationType method is SERVICE, PMT_SERVICE, PRESENT_FOLLOWING_EVENT or SCHEDULED_EVENT.

Returns:
the transportStreamId or -2 if not applicable for this event

getServiceID

public int getServiceID()
Returns the serviceId of the SIInformation objects This method is only applicable if the SIInformation type returned with the getSIInformationType method is PMT_SERVICE, PRESENT_FOLLOWING_EVENT or SCHEDULED_EVENT.

Returns:
the serviceId or -2 if not applicable for this event

getStartTime

public java.util.Date getStartTime()
Returns the start time of the schedule period whose event information has changed. This method is only applicable if the SIInformation type returned with the getSIInformationType method is SCHEDULED_EVENT.

Returns:
the start time or null if not applicable for this event

getEndTime

public java.util.Date getEndTime()
Returns the end time of the schedule period whose event information has changed. This method is only applicable if the SIInformation type returned with the getSIInformationType method is SCHEDULED_EVENT.

Returns:
the end time or null if not applicable for this event