Package org.harctoolbox.irp
Class Gap
java.lang.Object
org.harctoolbox.irp.IrpObject
org.harctoolbox.irp.Duration
org.harctoolbox.irp.Gap
- All Implemented Interfaces:
Serializable,Floatable,IrStreamItem,XmlExport
This class implements Gap as per Chapter 3.
- See Also:
-
Field Summary
Fields inherited from class org.harctoolbox.irp.Duration
nameOrNumber, time_periods, time_units, unit, us -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected GapevaluatedDuration(GeneralSpec generalSpec, NameEngine nameEngine) Deliver an "evaluated" Duration (variables resolved) of the same subclass.doubleevaluateWithSign(GeneralSpec generalSpec, NameEngine nameEngine, double elapsed) inthashCode()protected booleanisOn()propertiesMap(int noProperties) 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.toIrpString(int radix) Returns a computed IRP (-segment) string representation of current IrpObject.Methods inherited from class org.harctoolbox.irp.Duration
allDurationsInMicros, assignmentVariables, constant, decode, endingDurationType, evaluate, evaluate, evaluate, extractPass, getTimeInUnits, getUnit, guessParameterLength, hasExtent, interleavingOk, interleavingOk, isEmpty, isOn, microSeconds, newDuration, newDuration, newDuration, newDuration, nonConstantBitFieldLength, numberOfBareDurations, numberOfBits, numberOfDurations, propertiesMap, recognize, render, startingDuratingType, toElement, toFloat, weightMethods inherited from class org.harctoolbox.irp.IrpObject
createParameterSpecs, getParseTree, numberOfBitSpecs, numberOfInfiniteRepeats, prerender, propertiesMap, toDocument, toIrpString, toString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewer, updateStateWhenEntering, updateStateWhenExitingMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.harctoolbox.irp.IrStreamItem
createParameterSpecs, numberOfBitSpecs, numberOfInfiniteRepeats, propertiesMap, updateStateWhenEntering, updateStateWhenExitingMethods inherited from interface org.harctoolbox.xml.XmlExport
toDocument
-
Constructor Details
-
Gap
-
Gap
public Gap(double us) -
Gap
-
Gap
-
-
Method Details
-
substituteConstantVariables
Description copied from interface:IrStreamItemReturns an IrStreamItem of the same type with all occurrences of the variables in the dictionary replaced by their values in the dictionary. Does not change the containing object. May return the object itself, or share sub-objects with it.- Parameters:
constantVariables- Map<String, Long> of variables to replace.- Returns:
- IrStreamItem of the same type.
-
equals
-
evaluateWithSign
public double evaluateWithSign(GeneralSpec generalSpec, NameEngine nameEngine, double elapsed) throws IrpInvalidArgumentException, NameUnassignedException - Specified by:
evaluateWithSignin classDuration- Throws:
IrpInvalidArgumentExceptionNameUnassignedException
-
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 interfaceFloatable- Specified by:
toIrpStringin interfaceIrStreamItem- Overrides:
toIrpStringin classDuration- Parameters:
radix- Radix for parameters.- Returns:
- Formatted string.
-
isOn
protected boolean isOn() -
hashCode
public int hashCode() -
evaluatedDuration
protected Gap evaluatedDuration(GeneralSpec generalSpec, NameEngine nameEngine) throws NameUnassignedException, IrpInvalidArgumentException Description copied from class:DurationDeliver an "evaluated" Duration (variables resolved) of the same subclass.- Specified by:
evaluatedDurationin classDuration- Parameters:
generalSpec-nameEngine-- Returns:
- Throws:
NameUnassignedExceptionIrpInvalidArgumentException
-
numberOfBitSpecs
Integer numberOfBitSpecs() -
propertiesMap
-