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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetMax()intgetMin()inthashCode()booleanbooleanstatic RepeatMarkernewRepeatMarker(char ch) inttoIrpString(int radix) Returns a computed IRP (-segment) string representation of current IrpObject.intweight()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:
numberOfInfiniteRepeatsin classIrpObject
-
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.
-
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:IrpObjectReturns a (somewhat arbitrary) measure of the complexity of the object. Can be used for determining if a decode is "simpler" than another decode.
-