public final class Extent extends Duration
nameOrNumber, time_periods, time_units, unit, us| Constructor and Description |
|---|
Extent(double d) |
Extent(double d,
String unit) |
Extent(IrpParser.ExtentContext ctx) |
Extent(NameOrNumber non,
String unit) |
Extent(ParserDriver parserDriver) |
Extent(String str) |
| Modifier and Type | Method and Description |
|---|---|
TreeSet<Double> |
allDurationsInMicros(GeneralSpec generalSpec,
NameEngine nameEngine)
Delivers a set of all the contained durations in microseconds.
|
void |
decode(RecognizeData recognizeData,
List<BitSpec> bitSpecStack,
boolean isLast) |
boolean |
equals(Object obj) |
double |
evaluate(GeneralSpec generalSpec,
NameEngine nameEngine,
double elapsed) |
protected Extent |
evaluatedDuration(GeneralSpec generalSpec,
NameEngine nameEngine)
Deliver an "evaluated" Duration (variables resolved) of the same subclass.
|
double |
evaluateWithSign(GeneralSpec generalSpec,
NameEngine nameEngine,
double elapsed) |
boolean |
hasExtent() |
int |
hashCode() |
protected boolean |
isOn() |
IrStreamItem |
substituteConstantVariables(Map<String,Long> constantVariables)
Returns an IrStreamItem of the same type with all occurrences of the
variables in the dictionary replaced by their values in the dictionary.
|
String |
toIrpString(int radix) |
assignmentVariables, constant, endingDurationType, evaluate, evaluate, extractPass, getTimeInUnits, getUnit, guessParameterLength, interleavingOk, interleavingOk, isEmpty, isOn, microSeconds, newDuration, newDuration, newDuration, newDuration, nonConstantBitFieldLength, numberOfBareDurations, numberOfBits, numberOfDurations, propertiesMap, recognize, render, startingDuratingType, toElement, toFloat, weightgetParseTree, numberOfBitSpecs, numberOfInfiniteRepeats, prerender, propertiesMap, stateWhenEntering, stateWhenExiting, toDocument, toIrpString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewerclone, finalize, getClass, notify, notifyAll, wait, wait, waitnewIrStreamItem, newIrStreamItem, newIrStreamItem, numberOfBitSpecs, numberOfInfiniteRepeats, propertiesMap, stateWhenEntering, stateWhenExitingtoDocumentnumberOfBitSpecs, propertiesMap, stateWhenEntering, stateWhenExitingpublic Extent(String str)
public Extent(ParserDriver parserDriver)
public Extent(IrpParser.ExtentContext ctx)
public Extent(double d,
String unit)
public Extent(double d)
public Extent(NameOrNumber non, String unit)
public IrStreamItem substituteConstantVariables(Map<String,Long> constantVariables)
IrStreamItemconstantVariables - Map<String, Long> of variables to replace.public double evaluate(GeneralSpec generalSpec, NameEngine nameEngine, double elapsed) throws NameUnassignedException, IrpInvalidArgumentException
evaluate in class DurationNameUnassignedExceptionIrpInvalidArgumentExceptionpublic double evaluateWithSign(GeneralSpec generalSpec, NameEngine nameEngine, double elapsed) throws NameUnassignedException, IrpInvalidArgumentException
evaluateWithSign in class DurationNameUnassignedExceptionIrpInvalidArgumentExceptionpublic String toIrpString(int radix)
toIrpString in interface FloatabletoIrpString in interface IrStreamItemtoIrpString in class Durationpublic void decode(RecognizeData recognizeData, List<BitSpec> bitSpecStack, boolean isLast) throws SignalRecognitionException
decode in interface IrStreamItemdecode in class DurationSignalRecognitionExceptionpublic boolean hasExtent()
hasExtent in interface IrStreamItemhasExtent in class Durationprotected Extent evaluatedDuration(GeneralSpec generalSpec, NameEngine nameEngine) throws NameUnassignedException, IrpInvalidArgumentException
DurationevaluatedDuration in class DurationNameUnassignedExceptionIrpInvalidArgumentExceptionpublic TreeSet<Double> allDurationsInMicros(GeneralSpec generalSpec, NameEngine nameEngine)
IrStreamItemallDurationsInMicros in interface IrStreamItemallDurationsInMicros in class DurationCopyright © 2019. All rights reserved.