org.dvb.dsmcc
Class NPTRateChangeEvent
java.lang.Object
java.util.EventObject
org.dvb.dsmcc.NPTRateChangeEvent
- All Implemented Interfaces:
- Serializable
public class NPTRateChangeEvent
- extends EventObject
Sent only when the rate of an NPT time-base changes value.
- Since:
- MHP 1.0.1
- See Also:
- Serialized Form
Method Summary |
NPTRate |
getRate()
Return the new rate of the stream immediately after the change. |
Object |
getSource()
Return the stream whose rate changed. |
NPTRateChangeEvent
public NPTRateChangeEvent(DSMCCStream source,
NPTRate rate)
- Construct an event.
- Parameters:
source
- the stream whose rate changedrate
- the new rate of that stream immediately following the change
getSource
public Object getSource()
- Return the stream whose rate changed.
- Overrides:
getSource
in class EventObject
- Returns:
- the
DSMCCStream
object on which the rate change has occurred.
getRate
public NPTRate getRate()
- Return the new rate of the stream immediately after the change.
- Returns:
- a
NPTRate
object encapsulating the new rate