Package org.harctoolbox.irp
Class RecognizeData
java.lang.Object
org.harctoolbox.irp.Traverser
org.harctoolbox.irp.RecognizeData
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields inherited from class org.harctoolbox.irp.Traverser
nameEngine
-
Constructor Summary
ConstructorDescriptionRecognizeData
(GeneralSpec generalSpec, NameEngine definitions, ParameterSpecs parameterSpecs, IrSequence irSequence, int position, boolean interleaving, ParameterCollector parameterCollector, double absoluteTolerance, double relativeTolerance, double minimumLeadout, IrSignal.Pass pass) RecognizeData
(GeneralSpec generalSpec, NameEngine definitions, ParameterSpecs parameterSpecs, IrSequence irSequence, int beginPos, boolean interleavingOk, ParameterCollector names, Decoder.DecoderParameters params, IrSignal.Pass pass) RecognizeData
(NameEngine nameEngine) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
add
(String name, BitwiseParameter parameter) void
add
(Name name, BitwiseParameter value) boolean
void
assignment
(String nameString, long val) boolean
check
(boolean on) clone()
Returns a shallow copy, except for the NameEngine, which is copied with NameEngine.clone().void
consume()
void
consume
(double amount) double
elapsed()
double
get()
double
double
double
int
getLevel()
getPass()
int
double
boolean
isOn()
boolean
leadoutOk
(boolean isLast) void
void
setHasConsumed
(double hasConsumed) void
setLevel
(int level) void
setParameterCollector
(ParameterCollector parameterCollector) void
setPosition
(int position) toBitwiseParameter
(String name) Methods inherited from class org.harctoolbox.irp.Traverser
getGeneralSpec, getNameEngine
-
Constructor Details
-
RecognizeData
public RecognizeData(GeneralSpec generalSpec, NameEngine definitions, ParameterSpecs parameterSpecs, IrSequence irSequence, int position, boolean interleaving, ParameterCollector parameterCollector, double absoluteTolerance, double relativeTolerance, double minimumLeadout, IrSignal.Pass pass) -
RecognizeData
public RecognizeData(GeneralSpec generalSpec, NameEngine definitions, ParameterSpecs parameterSpecs, IrSequence irSequence, int beginPos, boolean interleavingOk, ParameterCollector names, Decoder.DecoderParameters params, IrSignal.Pass pass) -
RecognizeData
public RecognizeData() -
RecognizeData
-
-
Method Details
-
clone
Returns a shallow copy, except for the NameEngine, which is copied with NameEngine.clone(). -
getPosition
public int getPosition()- Returns:
- the position
-
setPosition
public void setPosition(int position) - Parameters:
position
- the position to set
-
getParameterCollector
- Returns:
- the parameterCollector
-
setParameterCollector
- Parameters:
parameterCollector
- the parameterCollector to set
-
add
- Throws:
ParameterInconsistencyException
-
add
- Throws:
ParameterInconsistencyException
-
add
- Throws:
ParameterInconsistencyException
-
remove
-
isOn
public boolean isOn() -
get
public double get() -
consume
public void consume() -
consume
public void consume(double amount) -
markExtentStart
public void markExtentStart() -
getHasConsumed
public double getHasConsumed()- Returns:
- the hasConsumed
-
setHasConsumed
public void setHasConsumed(double hasConsumed) - Parameters:
hasConsumed
- the hasConsumed to set
-
leadoutOk
- Throws:
SignalRecognitionException
-
check
public boolean check(boolean on) -
elapsed
public double elapsed() -
getExtentDuration
public double getExtentDuration() -
allowChopping
public boolean allowChopping() -
getAbsoluteTolerance
public double getAbsoluteTolerance()- Returns:
- the absoluteTolerance
-
getRelativeTolerance
public double getRelativeTolerance()- Returns:
- the relativeTolerance
-
getLevel
public int getLevel() -
setLevel
public void setLevel(int level) -
getLogLevel
-
getPass
-
logRecordEnterWithIrStream
-
assignment
- Throws:
InvalidNameException
-
toBitwiseParameter
-