Photon
An extension (subclass) to
Wave adding an energy property.
I don't really want to start modelling components of the universe, so perhaps this could be given a different name. Rather like Wave I just want a 'placeholder' that people can use as they see fit (ie, wavelength, frequency or energy). A different name (Jon's DataModelFravergy ?) might be more appropriate. - MCH
Interface
- Wave properties
- Energy : in eV ?
Implementation
A trivial extra method getEnergy() that does the appropriate multiplication from the wavelength/frequency of the
Wave superclass.
--
MartinHill - 21 May 2004