|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.dvbcentral.lib.Tune
public final class Tune
Class that encapsulates frequency and other aspects of a DVB broadcast.
The class is immutable. Once created all the information in it remain.
There is a support for creation of clones with some modified values, while
basing the others on the defaults provided by the original (like frequency method).
There is a support for creation of completely new and empty Tune by
calling createNew() or one can create a tune most suitable to his
local settings (based on default locale) by calling createTelestrial(java.util.Locale).
| Nested Class Summary | |
|---|---|
static class |
Tune.Bandwidth
Constants representing possible bandwidth values. |
static class |
Tune.CodeRate
Enumerates possible values for code rate. |
static class |
Tune.GuardInterval
Enumerates possible values for guard interval. |
static class |
Tune.Hierarchy
Set of hierarchy constants. |
static class |
Tune.Modulation
Enumeration of constants for modulation. |
static class |
Tune.SpectralInversion
Value for spectral inversion. |
static class |
Tune.TransmitMode
Constants for transmit mode. |
| Method Summary | |
|---|---|
Tune |
bandwidth(Tune.Bandwidth b)
New clone of the tune with changed bandwidth is created. |
Tune |
codeRate(boolean highPriorityStream,
Tune.CodeRate codeRate)
Creates new clonned tune with different code rate than this one has. |
static Tune |
createNew()
Creates new completely empty tune. |
static Tune |
createTelestrial(Locale l)
Creates a tune predefined with values according to the usual DVB-T settings in a location identified by the provided locale. |
boolean |
equals(Object o)
|
Tune |
frequency(int hz)
Creates new tune with all values equal to this instance, just with changes frequency. |
Tune.Bandwidth |
getBandwidth()
Getter for bandwidth in MHz. |
int |
getFrequency()
Getter for the frequency |
Tune.GuardInterval |
getGuardInterval()
Getter for guard interval. |
Tune.Hierarchy |
getHierarchy()
Getter for hierarchy. |
Tune.CodeRate |
getHPCodeRate()
Getter for frontend's high priority stream code rate. |
Tune.CodeRate |
getLPCodeRate()
Getter for frontend's low priority stream code rate. |
Tune.Modulation |
getModulation()
Getter for type of modulation. |
Tune.SpectralInversion |
getSpectralInversion()
Spectral inversion getter. |
Tune.TransmitMode |
getTransmitMode()
Getter for transmit mode. |
Tune |
guardInterval(Tune.GuardInterval g)
New cloned tune with changed guard interval. |
int |
hashCode()
|
Tune |
hierarchy(Tune.Hierarchy h)
New cloned tune with changed hierachy. |
Tune |
inversion(Tune.SpectralInversion si)
New cloned tune with inversion set to new value. |
Tune |
modulation(Tune.Modulation m)
New cloned tune with different modulation |
Tune |
transmitMode(Tune.TransmitMode mode)
New cloned tune with changed transmition mode. |
static Tune |
valueOf(String value,
Locale locale)
Support for parsing tunes. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Object
public static Tune valueOf(String value,
Locale locale)
value - the textual representation of the tunelocale - use defaults for given localepublic int getFrequency()
public Tune.SpectralInversion getSpectralInversion()
public Tune.CodeRate getHPCodeRate()
public Tune.CodeRate getLPCodeRate()
public Tune.Modulation getModulation()
public Tune.TransmitMode getTransmitMode()
public Tune.Bandwidth getBandwidth()
public Tune.GuardInterval getGuardInterval()
public Tune.Hierarchy getHierarchy()
public static Tune createNew()
public static Tune createTelestrial(Locale l)
l - the locale to get the defaults from
public Tune frequency(int hz)
public Tune inversion(Tune.SpectralInversion si)
si - the inversion to set
public Tune codeRate(boolean highPriorityStream,
Tune.CodeRate codeRate)
highPriorityStream - true if the rate shall apply to high priority stream or false when
the low priority shall be changedcodeRate - one of the Tune.CodeRate constant values or null for auto detectionpublic Tune bandwidth(Tune.Bandwidth b)
b - the bandWidth to associate with new tunepublic Tune modulation(Tune.Modulation m)
m - one of Tune.Modulation constantspublic Tune transmitMode(Tune.TransmitMode mode)
mode - the mode to setpublic Tune guardInterval(Tune.GuardInterval g)
g - the new guard intervalpublic Tune hierarchy(Tune.Hierarchy h)
h - new hierachy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||