Package org.harctoolbox.irp
Class Flash
java.lang.Object
org.harctoolbox.irp.IrpObject
org.harctoolbox.irp.Duration
org.harctoolbox.irp.Flash
- All Implemented Interfaces:
Serializable
,Floatable
,IrStreamItem
,XmlExport
This class implements Flash 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
ConstructorDescriptionFlash
(double d) Flash
(NameOrNumber non, String unit) Flash
(ParserDriver parserDriver) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected Flash
evaluatedDuration
(GeneralSpec generalSpec, NameEngine nameEngine) Deliver an "evaluated" Duration (variables resolved) of the same subclass.double
evaluateWithSign
(GeneralSpec generalSpec, NameEngine nameEngine, double elapsed) int
hashCode()
protected boolean
isOn()
propertiesMap
(int noProperites) 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.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, toIrpString, weight
Methods inherited from class org.harctoolbox.irp.IrpObject
createParameterSpecs, getParseTree, numberOfBitSpecs, numberOfInfiniteRepeats, prerender, propertiesMap, toDocument, toIrpString, toString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewer, updateStateWhenEntering, updateStateWhenExiting
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.harctoolbox.irp.IrStreamItem
createParameterSpecs, numberOfBitSpecs, numberOfInfiniteRepeats, propertiesMap, updateStateWhenEntering, updateStateWhenExiting
Methods inherited from interface org.harctoolbox.xml.XmlExport
toDocument
-
Constructor Details
-
Flash
-
Flash
-
Flash
-
Flash
-
Flash
public Flash(double d) -
Flash
-
-
Method Details
-
substituteConstantVariables
Description copied from interface:IrStreamItem
Returns 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 NameUnassignedException, IrpInvalidArgumentException - Specified by:
evaluateWithSign
in classDuration
- Throws:
NameUnassignedException
IrpInvalidArgumentException
-
isOn
protected boolean isOn() -
hashCode
public int hashCode() -
evaluatedDuration
protected Flash evaluatedDuration(GeneralSpec generalSpec, NameEngine nameEngine) throws NameUnassignedException, IrpInvalidArgumentException Description copied from class:Duration
Deliver an "evaluated" Duration (variables resolved) of the same subclass.- Specified by:
evaluatedDuration
in classDuration
- Returns:
- Throws:
NameUnassignedException
IrpInvalidArgumentException
-
numberOfBitSpecs
Integer numberOfBitSpecs() -
propertiesMap
-