public class HDHRTuner extends Object
Constructor and Description |
---|
HDHRTuner(InetAddress address)
Sole public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
channel(int tuner,
int key,
int channel)
Method to tune the specified tuner,
|
void |
channel(int tuner,
int key,
int channel,
int program)
Method to tune the specified tuner,
|
void |
channel(int tuner,
int key,
String channel)
Method to tune the specified tuner,
|
void |
channel(int tuner,
int key,
String channel,
int program)
Method to tune the specified tuner,
|
String |
channelmap(int tuner,
int key)
Method to get the
/tuner<n>/channelmap value on the specified
tuner, |
void |
channelmap(int tuner,
int key,
String string)
Method to specify the
/tuner<n>/channelmap on the specified
tuner, |
static Map<Integer,HDHRTuner> |
discover()
Static method to determine the HDHomeRun tuners on the network.
|
String |
get(int key,
String name)
Method to get an option value from this
HDHRTuner . |
HDHRPrimeClient |
getClient() |
int |
getCount() |
Map<String,Set<String>> |
getFeature() |
int |
getID() |
InetAddress |
getInetAddress() |
List<LineupEntry> |
getLineup() |
String |
getModel() |
URI |
getURI() |
int |
lock(int tuner)
Method to obtain a lock on a tuner.
|
InetAddress |
locker(int tuner,
int key)
Method to get a tuner lock owner.
|
SortedSet<String> |
options()
Method to get the configuration options supported by this
HDHRTuner . |
void |
program(int tuner,
int key,
int program)
Method to tune the specified tuner,
|
List<HDHRProgram> |
scan()
Method to scan the first tuner available and return a
List of
HDHRProgram s found. |
List<HDHRProgram> |
scan(int tuner,
int key)
Method to scan the specified tuner and return a
List of
HDHRProgram s found. |
void |
set(int key,
String name,
String value,
String... pairs)
Method to set an option value for this
HDHRTuner . |
void |
target(int tuner,
int key,
URI locator)
Method to set the tuner target,
|
String |
toString() |
void |
unlock(int tuner,
int key)
Method to unlock a tuner.
|
public HDHRTuner(InetAddress address)
address
- The InetAddress
.public static Map<Integer,HDHRTuner> discover()
public int getID()
public int getCount()
public InetAddress getInetAddress()
InetAddress
public Map<String,Set<String>> getFeature()
/sys/features
public HDHRPrimeClient getClient()
HDHRPrimeClient
public List<LineupEntry> getLineup()
HDHRPrimeClient.getLineup()
public int lock(int tuner) throws IOException
tuner
- The tuner number.IOException
- If the tuner cannot be locked.public void unlock(int tuner, int key) throws IOException
tuner
- The tuner number.key
- The key value.IOException
- If the tuner cannot be unlocked.public InetAddress locker(int tuner, int key) throws IOException
tuner
- The tuner number.key
- The key value.InetAddress
of the owner (or null
if
there is none).IOException
- If the tuner locker cannot be determined.public String get(int key, String name) throws IOException
HDHRTuner
.key
- The tuner lockkey (if set).name
- The option name.IOException
- If the option cannot be retrieved.public void set(int key, String name, String value, String... pairs) throws IOException
HDHRTuner
.key
- The tuner lockkey (if set).name
- The option name.value
- The option value.pairs
- Optional name/value pairs.IOException
- If the option(s) cannot be set.public SortedSet<String> options() throws IOException
HDHRTuner
.SortedSet
of options.IOException
- If the options cannot be retrieved.public List<HDHRProgram> scan() throws IOException
List
of
HDHRProgram
s found.List
of HDHRProgram
s found.IOException
- If the HDHRProgram
s cannot be
retrieved.public List<HDHRProgram> scan(int tuner, int key) throws IOException
List
of
HDHRProgram
s found.tuner
- The tuner to scan.key
- The key value.List
of HDHRProgram
s found.IOException
- If the HDHRProgram
s cannot be
retrieved.public String channelmap(int tuner, int key) throws IOException
/tuner<n>/channelmap
value on the specified
tuner,tuner
- The tuner to scan.key
- The key value./tuner<n>/channelmap
.IOException
- If the channel map name cannot be
retrieved.public void channelmap(int tuner, int key, String string) throws IOException
/tuner<n>/channelmap
on the specified
tuner,tuner
- The tuner to scan.key
- The key value.string
- The name of the /tuner<n>/channelmap
.IOException
- If the channel map name cannot be
specified.public void channel(int tuner, int key, String channel, int program) throws IOException
tuner
- The tuner to scan.key
- The key value.channel
- The channel specification (number or
frequency with optional modulation).program
- The program (subchannel) specification.IOException
- If the tuner cannot be tuned.channel(int,int,String)
,
program(int,int,int)
public void channel(int tuner, int key, int channel, int program) throws IOException
tuner
- The tuner to scan.key
- The key value.channel
- The channel specification (number or
frequency).program
- The program (subchannel) specification.IOException
- If the tuner cannot be tuned.channel(int,int,int)
,
program(int,int,int)
public void channel(int tuner, int key, String channel) throws IOException
tuner
- The tuner to scan.key
- The key value.channel
- The channel specification (number or
frequency with optional modulation).IOException
- If the tuner cannot be tuned.public void channel(int tuner, int key, int channel) throws IOException
tuner
- The tuner to scan.key
- The key value.channel
- The channel specification (number or
frequency).IOException
- If the tuner cannot be tuned.public void program(int tuner, int key, int program) throws IOException
tuner
- The tuner to scan.key
- The key value.program
- The program (subchannel) specification.IOException
- If the tuner cannot be tuned.public void target(int tuner, int key, URI locator) throws IOException
tuner
- The tuner to scan.key
- The key value.locator
- The target URI
.IOException
- If the tuner target cannot be set.Copyright © 2015–2020 Allen D. Ball. All rights reserved.