public class LircExport extends Object
| Constructor and Description |
|---|
LircExport(String name,
String comment,
double frequency) |
LircExport(String name,
String comment,
String user,
String manufacturer,
String model,
String tool,
String toolVersion,
double frequency)
Constructor for the class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSignal(HashMap<String,Long> parameters,
IrSignal irSignal)
Adds a signal to the export, to be a command in the remote.
|
void |
addSignal(HashMap<String,Long> parameters,
IrSignal irSignal,
int reps)
Adds a signal to the export, to be a command in the remote.
|
void |
addSignal(String name,
int[] data,
int frequency)
Adds a signal to the export, to be a command in the remote.
|
void |
addSignal(String name,
IrSignal irSignal)
Adds a signal to the export, to be a command in the remote.
|
void |
write(File file)
Write the instance to a the file in the argument.
|
void |
write(PrintStream stream)
Write the instance to a the PrintStream in the argument.
|
public LircExport(String name, String comment, String user, String manufacturer, String model, String tool, String toolVersion, double frequency)
name - Name of the "remote", as in the name file in the LIRC remotecomment - String Comment to go into the generated file.user - manufacturer - model - tool - toolVersion - frequency - Modulation frequency in Hz.public void addSignal(String name, int[] data, int frequency)
name - Name of the commanddata - frequency - public void addSignal(HashMap<String,Long> parameters, IrSignal irSignal, int reps)
parameters - Parameters, to form a name of the LIRC commandirSignal - IrSignal to be the data of the command.reps - Number of repetitionspublic void addSignal(HashMap<String,Long> parameters, IrSignal irSignal)
parameters - Parameters, to form a name of the LIRC commandirSignal - IrSignal to be the data of the command.public void addSignal(String name, IrSignal irSignal)
name - irSignal - public void write(File file) throws FileNotFoundException
file - File to be written.FileNotFoundExceptionpublic void write(PrintStream stream)
stream - PrintStream, should be ready for writing.Copyright © 2015. All rights reserved.