Package pulse.problem.statements
Class Pulse
- java.lang.Object
-
- pulse.util.UpwardsNavigable
-
- pulse.util.Group
-
- pulse.util.Accessible
-
- pulse.util.PropertyHolder
-
- pulse.problem.statements.Pulse
-
- All Implemented Interfaces:
Serializable,Descriptive
- Direct Known Subclasses:
Pulse2D
public class Pulse extends PropertyHolder
APulsestores the parameters of the laser pulse, but does not provide the calculation facilities.- See Also:
DiscretePulse, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pulsecopy()NumericPropertygetLaserEnergy()InstanceDescriptor<? extends PulseTemporalShape>getPulseDescriptor()PulseTemporalShapegetPulseShape()NumericPropertygetPulseWidth()voidinitFrom(Pulse pulse)voidinitListeners()Set<NumericPropertyKeyword>listedKeywords()The listed parameters forPulseare:PulseShape, PULSE_WIDTH, SPOT_DIAMETER.List<Property>listedTypes()By default, collects a list of default properties corresponding to types defined by listedKeywords().voidset(NumericPropertyKeyword type, NumericProperty property)An abstract method, which must be overriden to gain access over setting the values of all relevant (selected by the programmer)NumericProperties in subclasses ofAccessible.voidsetLaserEnergy(NumericProperty laserEnergy)voidsetPulseDescriptor(InstanceDescriptor<? extends PulseTemporalShape> shapeDescriptor)voidsetPulseShape(PulseTemporalShape pulseShape)voidsetPulseWidth(NumericProperty pulseWidth)StringtoString()-
Methods inherited from class pulse.util.PropertyHolder
addListener, areDetailsHidden, data, describe, firePropertyChanged, getDescriptor, getListeners, getPrefix, ignoreSiblings, isListedNumericType, isListedParameter, 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
-
-
-
-
Constructor Detail
-
Pulse
public Pulse()
Creates aPulsewith default values of pulse width and laser spot diameter (as per XML specification) and with a default pulse temporal shape (rectangular).
-
Pulse
public Pulse(Pulse p)
Copy constructor- Parameters:
p- the pulse, parameters of which will be copied.
-
-
Method Detail
-
initListeners
public void initListeners()
- Overrides:
initListenersin classPropertyHolder
-
copy
public Pulse copy()
-
initFrom
public void initFrom(Pulse pulse)
-
getPulseWidth
public NumericProperty getPulseWidth()
-
setPulseWidth
public void setPulseWidth(NumericProperty pulseWidth)
-
getLaserEnergy
public NumericProperty getLaserEnergy()
-
setLaserEnergy
public void setLaserEnergy(NumericProperty laserEnergy)
-
listedKeywords
public Set<NumericPropertyKeyword> listedKeywords()
The listed parameters forPulseare:PulseShape, PULSE_WIDTH, SPOT_DIAMETER.- Overrides:
listedKeywordsin classPropertyHolder- Returns:
- a set of
NumericPropertyKeywordinstances, which have been explicitly marked as a listed parameter for thisPropertyHolder.
-
listedTypes
public List<Property> listedTypes()
Description copied from class:PropertyHolderBy default, collects a list of default properties corresponding to types defined by listedKeywords(). However, this method is overridable to include non-numeric properties.
- Overrides:
listedTypesin classPropertyHolder- Returns:
- a list of
Propertyinstances, which have been explicitly marked as a listed parameter for thisPropertyHolder.
-
set
public void set(NumericPropertyKeyword type, NumericProperty property)
Description copied from class:AccessibleAn abstract method, which must be overriden to gain access over setting the values of all relevant (selected by the programmer)
NumericProperties in subclasses ofAccessible. Typically this involves aswitchstatement that goes through the different options for thetypeand invokes differentset(...)methods to update the matchingNumericPropertywithproperty.- Specified by:
setin classAccessible- Parameters:
type- the type, which must be equal by definition toproperty.getType().property- the property, which contains new information.
-
getPulseDescriptor
public InstanceDescriptor<? extends PulseTemporalShape> getPulseDescriptor()
-
setPulseDescriptor
public void setPulseDescriptor(InstanceDescriptor<? extends PulseTemporalShape> shapeDescriptor)
-
getPulseShape
public PulseTemporalShape getPulseShape()
-
setPulseShape
public void setPulseShape(PulseTemporalShape pulseShape)
-
-