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
ConstructorDescriptionParameterSpecs
(String parameter_specs) ParameterSpecs
(List<ParameterSpec> list) -
Method Summary
Modifier and TypeMethodDescriptionbitmasks()
code
(CodeGenerator codeGenerator) int
boolean
getNames()
getParameterDefault
(String parameterName) long
getParameterMax
(String parameterName) long
getParameterMin
(String parameterName) getParameterSpec
(String name) int
hashCode()
boolean
boolean
hasParameter
(String name) boolean
hasParameterDefault
(String parameterName) boolean
hasParameterMemory
(String parameterName) boolean
isEmpty()
iterator()
propertiesMap
(GeneralSpec generalSpec, NameEngine nameEngine) random()
void
removeDefaulteds
(Map<String, Long> namesMap) void
removeNotInParameterSpec
(Map<String, Long> namesMap) void
replace
(ParameterSpecs newParameterSpecs) int
size()
toIrpString
(int radix) Returns a computed IRP (-segment) string representation of current IrpObject.toIrpString
(int radix, String separator) void
int
weight()
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, updateStateWhenExiting
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ParameterSpecs
public ParameterSpecs() -
ParameterSpecs
-
ParameterSpecs
-
ParameterSpecs
-
ParameterSpecs
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<String>
-
sort
-
equals
- Specified by:
equals
in interfaceComparator<String>
- Specified by:
equals
in classIrpObject
-
replace
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
getNames
-
getParams
-
getParameterSpec
-
bitmask
-
bitmasks
-
toIrpString
Description copied from class:IrpObject
Returns 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:
toIrpString
in classIrpObject
- Parameters:
radix
- Radix for parameters.- Returns:
- Formatted string.
-
toIrpString
-
toElement
-
random
-
random
-
randomUsingDefaults
-
randomUsingDefaults
-
iterator
- Specified by:
iterator
in interfaceIterable<ParameterSpec>
-
weight
public int weight()Description copied from class:IrpObject
Returns a (somewhat arbitrary) measure of the complexity of the object. Can be used for determining if a decode is "simpler" than another decode. -
removeDefaulteds
-
removeNotInParameterSpec
-
code
-
propertiesMap
- Specified by:
propertiesMap
in interfaceAggregateLister
-
hasParameter
-
hasParameterMemory
-
getParameterDefault
-
hasParameterDefault
-
getParameterMax
- Throws:
NullPointerException
-
getParameterMin
- Throws:
NullPointerException
-
hasNonStandardParameters
public boolean hasNonStandardParameters() -
size
public int size() -
tweak
- Throws:
InvalidNameException
-