Package pulse.problem.laser
Class NumericPulseData
- java.lang.Object
-
- pulse.util.UpwardsNavigable
-
- pulse.util.Group
-
- pulse.util.Accessible
-
- pulse.util.PropertyHolder
-
- pulse.AbstractData
-
- pulse.problem.laser.NumericPulseData
-
- All Implemented Interfaces:
Serializable,DiscreteInput,Descriptive
public class NumericPulseData extends AbstractData implements DiscreteInput
An instance of theAbstractDataclass, which also declares anexternalID. Use to store numeric data of the pulse for each measurement imported from an external source.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class pulse.AbstractData
signal, time
-
-
Constructor Summary
Constructors Constructor Description NumericPulseData(int id)Storesidand calls super-constructorNumericPulseData(NumericPulseData data)Copies everything, including the id number.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPoint(double time, double power)Adds a data point to the internal storage and increments counter.intgetExternalID()Gets the external ID usually specified in the experimental files.IndexRangegetIndexRange()List<Double>getX()List<Double>getY()doublepulseWidth()-
Methods inherited from class pulse.AbstractData
actualNumPoints, apparentMaximum, clear, equals, getName, getNumPoints, getSignalData, getTimeSequence, ignoreSiblings, incrementCount, isFull, listedKeywords, remove, set, setName, setNumPoints, setSignalAt, setTimeAt, signalAt, timeAt, timeLimit, toString
-
Methods inherited from class pulse.util.PropertyHolder
addListener, areDetailsHidden, data, describe, firePropertyChanged, getDescriptor, getListeners, getPrefix, initListeners, isListedNumericType, isListedParameter, listedTypes, numericData, parameterListChanged, removeListeners, setPrefix, updateProperties, updateProperty
-
Methods inherited from class pulse.util.Accessible
accessibleChildren, genericProperties, genericProperty, numericProperties, numericProperty, property, update, update
-
Methods inherited from class pulse.util.UpwardsNavigable
addHierarchyListener, getHierarchyListeners, getParent, identify, removeHierarchyListener, removeHierarchyListeners, setParent, specificAncestor, tellParent
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface pulse.DiscreteInput
bounds
-
-
-
-
Constructor Detail
-
NumericPulseData
public NumericPulseData(int id)
Storesidand calls super-constructor- Parameters:
id- an external ID defined in the imported file
-
NumericPulseData
public NumericPulseData(NumericPulseData data)
Copies everything, including the id number.- Parameters:
data- another object
-
-
Method Detail
-
addPoint
public void addPoint(double time, double power)Adds a data point to the internal storage and increments counter.- Overrides:
addPointin classAbstractData- Parameters:
time- the time valuepower- the signal value attime
-
getExternalID
public int getExternalID()
Gets the external ID usually specified in the experimental files. Note this is not aNumericProperty- Returns:
- an integer, representing the external ID
-
pulseWidth
public double pulseWidth()
-
getX
public List<Double> getX()
- Specified by:
getXin interfaceDiscreteInput
-
getY
public List<Double> getY()
- Specified by:
getYin interfaceDiscreteInput
-
getIndexRange
public IndexRange getIndexRange()
- Specified by:
getIndexRangein interfaceDiscreteInput
-
-