Package org.harctoolbox.irp
Class RepeatMarker
java.lang.Object
org.harctoolbox.irp.IrpObject
org.harctoolbox.irp.RepeatMarker
- All Implemented Interfaces:
Serializable
,XmlExport
This class implements Repeatmarker as per Chapter 8.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getMax()
int
getMin()
int
hashCode()
boolean
boolean
static RepeatMarker
newRepeatMarker
(char ch) int
toIrpString
(int radix) Returns a computed IRP (-segment) string representation of current IrpObject.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, prerender, propertiesMap, toDocument, toIrpString, toString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewer, updateStateWhenEntering, updateStateWhenExiting
-
Constructor Details
-
RepeatMarker
-
RepeatMarker
-
RepeatMarker
public RepeatMarker(int min, int max) -
RepeatMarker
public RepeatMarker(int n) -
RepeatMarker
public RepeatMarker()
-
-
Method Details
-
newRepeatMarker
-
equals
-
hashCode
public int hashCode() -
isInfinite
public boolean isInfinite() -
numberOfInfiniteRepeats
public int numberOfInfiniteRepeats()- Overrides:
numberOfInfiniteRepeats
in classIrpObject
-
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.
-
getMin
public int getMin()- Returns:
- the min
-
getMax
public int getMax()- Returns:
- the max
-
toElement
-
isTrivial
public boolean isTrivial() -
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.
-