public class Remote extends Object implements Serializable
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(String name,
String manufacturer,
String model,
String deviceClass,
String remoteName,
String comment,
String notes,
HashMap<String,Command> commands,
HashMap<String,HashMap<String,String>> applicationParameters)
Convenience version of the general constructor, with default values.
|
Remote(String name,
String manufacturer,
String model,
String deviceClass,
String remoteName,
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 |
getManufacturer() |
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, IrpMasterException
element
- Element to read from.ParseException
IrpMasterException
public Remote(String name, String manufacturer, String model, String deviceClass, String remoteName, String comment, String notes, HashMap<String,Command> commands, HashMap<String,HashMap<String,String>> applicationParameters, String protocol, HashMap<String,Long> parameters)
name
- manufacturer
- model
- deviceClass
- remoteName
- comment
- notes
- commands
- applicationParameters
- protocol
- parameters
- public Remote(String name, String manufacturer, String model, String deviceClass, String remoteName, String comment, String notes, HashMap<String,Command> commands, HashMap<String,HashMap<String,String>> applicationParameters)
name
- manufacturer
- model
- deviceClass
- remoteName
- comment
- notes
- commands
- applicationParameters
- public Element xmlExport(Document doc, boolean fatRaw, boolean generateRaw, boolean generateCcf, boolean generateParameters) throws IrpMasterException
doc
- fatRaw
- generateRaw
- generateCcf
- generateParameters
- IrpMasterException
public void addFormat(Command.CommandTextFormat format, int repeatCount) throws IrpMasterException
format
- repeatCount
- IrpMasterException
public boolean hasThisProtocol(String protocolName)
protocolName
- public String getName()
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 © 2015. All rights reserved.