public class Remote extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Remote.CompareNameCaseInsensitive |
static class |
Remote.CompareNameCaseSensitive |
static class |
Remote.MetaData |
Constructor and Description |
---|
Remote(Element element)
XML import function.
|
Remote(IrSignal irSignal,
String name,
String comment,
String deviceName)
This constructor constructs a Remote from one single IrSignal.
|
Remote(Remote.MetaData metaData,
String comment,
String notes,
HashMap<String,Command> commands,
HashMap<String,HashMap<String,String>> applicationParameters)
Convenience version of the general constructor, with default values.
|
Remote(Remote.MetaData metaData,
String comment,
String notes,
HashMap<String,Command> commands,
HashMap<String,HashMap<String,String>> applicationParameters,
String protocol,
HashMap<String,Long> parameters)
Construct a Remote from its arguments, general case.
|
Modifier and Type | Method and Description |
---|---|
void |
addFormat(Command.CommandTextFormat format,
int repeatCount)
Applies the format argument to all Command's in the Remote.
|
HashMap<String,HashMap<String,String>> |
getApplicationParameters() |
Command |
getCommand(String commandName) |
HashMap<String,Command> |
getCommands() |
String |
getComment() |
String |
getDeviceClass() |
String |
getDisplayName() |
String |
getManufacturer() |
Remote.MetaData |
getMetaData() |
String |
getModel() |
String |
getName() |
String |
getNotes() |
String |
getRemoteName() |
boolean |
hasThisProtocol(String protocolName)
Returns true if and only if all contained commands has the protocol in the argument.
|
Element |
xmlExport(Document doc,
boolean fatRaw,
boolean generateRaw,
boolean generateCcf,
boolean generateParameters)
XML export function.
|
public Remote(Element element) throws ParseException
element
- Element to read from.ParseException
public Remote(Remote.MetaData metaData, String comment, String notes, HashMap<String,Command> commands, HashMap<String,HashMap<String,String>> applicationParameters, String protocol, HashMap<String,Long> parameters)
metaData
- comment
- notes
- commands
- applicationParameters
- protocol
- parameters
- public Remote(Remote.MetaData metaData, String comment, String notes, HashMap<String,Command> commands, HashMap<String,HashMap<String,String>> applicationParameters)
metaData
- comment
- notes
- commands
- applicationParameters
- public Element xmlExport(Document doc, boolean fatRaw, boolean generateRaw, boolean generateCcf, boolean generateParameters)
doc
- fatRaw
- generateRaw
- generateCcf
- generateParameters
- public void addFormat(Command.CommandTextFormat format, int repeatCount)
format
- repeatCount
- public boolean hasThisProtocol(String protocolName) throws IrpMasterException
protocolName
- IrpMasterException
public Remote.MetaData getMetaData()
public String getName()
public String getDisplayName()
public String getComment()
public HashMap<String,HashMap<String,String>> getApplicationParameters()
public String getManufacturer()
public String getModel()
public String getDeviceClass()
public String getRemoteName()
public String getNotes()
Copyright © 2016. All rights reserved.