Package org.harctoolbox.irp
Class ParameterSpecs
java.lang.Object
org.harctoolbox.irp.IrpObject
org.harctoolbox.irp.ParameterSpecs
- All Implemented Interfaces:
Serializable,Iterable<ParameterSpec>,Comparator<String>,AggregateLister,XmlExport
public final class ParameterSpecs
extends IrpObject
implements Iterable<ParameterSpec>, AggregateLister, Comparator<String>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParameterSpecs(String parameter_specs) ParameterSpecs(List<ParameterSpec> list) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefaulteds(Map<String, Long> params) bitmasks()code(CodeGenerator codeGenerator) intbooleangetNames()getParameterDefault(String parameterName) longgetParameterMax(String parameterName) longgetParameterMin(String parameterName) getParameterSpec(String name) inthashCode()booleanbooleanhasParameter(String name) booleanhasParameterDefault(String parameterName) booleanhasParameterMemory(String parameterName) booleanisEmpty()iterator()propertiesMap(GeneralSpec generalSpec, NameEngine nameEngine) random()voidremoveDefaulteds(Map<String, Long> namesMap) voidremoveNotInParameterSpec(Map<String, Long> namesMap) voidreplace(ParameterSpecs newParameterSpecs) intsize()toIrpString(int radix) Returns a computed IRP (-segment) string representation of current IrpObject.toIrpString(int radix, String separator) voidintweight()Returns a (somewhat arbitrary) measure of the complexity of the object.Methods inherited from class org.harctoolbox.irp.IrpObject
createParameterSpecs, getParseTree, numberOfBits, numberOfBitSpecs, numberOfInfiniteRepeats, prerender, propertiesMap, toDocument, toIrpString, toString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewer, updateStateWhenEntering, updateStateWhenExitingMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ParameterSpecs
public ParameterSpecs() -
ParameterSpecs
-
ParameterSpecs
-
ParameterSpecs
-
ParameterSpecs
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<String>
-
sort
-
equals
- Specified by:
equalsin interfaceComparator<String>- Specified by:
equalsin classIrpObject
-
replace
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
getNames
-
getParams
-
getParameterSpec
-
bitmask
-
bitmasks
-
toIrpString
Description copied from class:IrpObjectReturns a computed IRP (-segment) string representation of current IrpObject. Numerical parameters, but not durations etc, will be printed using the radix in the argument.- Specified by:
toIrpStringin classIrpObject- Parameters:
radix- Radix for parameters.- Returns:
- Formatted string.
-
toIrpString
-
toElement
-
random
-
random
-
randomUsingDefaults
-
randomUsingDefaults
-
iterator
- Specified by:
iteratorin interfaceIterable<ParameterSpec>
-
weight
public int weight()Description copied from class:IrpObjectReturns a (somewhat arbitrary) measure of the complexity of the object. Can be used for determining if a decode is "simpler" than another decode. -
removeDefaulteds
-
addDefaulteds
-
removeNotInParameterSpec
-
code
-
propertiesMap
- Specified by:
propertiesMapin interfaceAggregateLister
-
hasParameter
-
hasParameterMemory
-
getParameterDefault
-
hasParameterDefault
-
getParameterMax
- Throws:
NullPointerException
-
getParameterMin
- Throws:
NullPointerException
-
hasNonStandardParameters
public boolean hasNonStandardParameters() -
size
public int size() -
tweak
- Throws:
InvalidNameException
-