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 SummaryConstructorsConstructorDescriptionParameterSpecs(String parameter_specs) ParameterSpecs(List<ParameterSpec> list) 
- 
Method SummaryModifier 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.IrpObjectcreateParameterSpecs, getParseTree, numberOfBits, numberOfBitSpecs, numberOfInfiniteRepeats, prerender, propertiesMap, toDocument, toIrpString, toString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewer, updateStateWhenEntering, updateStateWhenExitingMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparatorreversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
ParameterSpecspublic ParameterSpecs()
- 
ParameterSpecs
- 
ParameterSpecs
- 
ParameterSpecs
- 
ParameterSpecs
 
- 
- 
Method Details- 
compare- Specified by:
- comparein interface- Comparator<String>
 
- 
sort
- 
equals- Specified by:
- equalsin interface- Comparator<String>
- Specified by:
- equalsin class- IrpObject
 
- 
replace
- 
hashCodepublic int hashCode()
- 
isEmptypublic boolean isEmpty()
- 
getNames
- 
getParams
- 
getParameterSpec
- 
bitmask
- 
bitmasks
- 
toIrpStringDescription 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 class- IrpObject
- Parameters:
- radix- Radix for parameters.
- Returns:
- Formatted string.
 
- 
toIrpString
- 
toElement
- 
random
- 
random
- 
randomUsingDefaults
- 
randomUsingDefaults
- 
iterator- Specified by:
- iteratorin interface- Iterable<ParameterSpec>
 
- 
weightpublic 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 interface- AggregateLister
 
- 
hasParameter
- 
hasParameterMemory
- 
getParameterDefault
- 
hasParameterDefault
- 
getParameterMax- Throws:
- NullPointerException
 
- 
getParameterMin- Throws:
- NullPointerException
 
- 
hasNonStandardParameterspublic boolean hasNonStandardParameters()
- 
sizepublic int size()
- 
tweak- Throws:
- InvalidNameException
 
 
-