Difference: DataModelWave (1 vs. 3)

Revision 32012-06-26 - root

 
META TOPICPARENT name="DataModelPassband"

Wave

Probably an overkill way of modelling wavelength/frequency, but allows us to model it without worrying about which to use.

Interface

The published properties would be:

  • Frequency : Hz (real)
  • Wavelength : meters (real)

  • Ucd - I think

Implementation

This looks like a very simple object. Obviously we don't need to store both Frequency and Wavelength internally.

I think it makes sense for a Wave to be immutable (ie it can only be created with a set of characteristics, and thereafter is 'readonly'). The properties are all interdependent, so changing one without the other does not make sense.

-- MartinHill - 21 May 2004




Revision 22004-05-21 - MartinHill

 
META TOPICPARENT name="DataModelPassband"
Deleted:
<
<
Not finished (Work in progress)
 

Wave

Changed:
<
<
Probably an overkill way of modelling wavelength/frequency, but would allow users to work in either interchangably.
>
>
Probably an overkill way of modelling wavelength/frequency, but allows us to model it without worrying about which to use.
 
Changed:
<
<

Implementation

>
>

Interface

 
Changed:
<
<
factory methods:
>
>
The published properties would be:
 
Changed:
<
<
makeFromFreq(frequency)
>
>
  • Frequency : Hz (real)
Added:
>
>
  • Wavelength : meters (real)
 
Changed:
<
<
makeFromWavelength(wavelength)
>
>
 
Changed:
<
<
property getters:
>
>
  • Ucd - I think
 
Changed:
<
<
getFrequency() : Hz (real)
>
>

Implementation

Deleted:
<
<
getWavelength() : meters (real)
 
Changed:
<
<
getUcd() - I think
>
>
This looks like a very simple object. Obviously we don't need to store both Frequency and Wavelength internally.
 
Changed:
<
<
getAccuracy() - I think...
>
>
I think it makes sense for a Wave to be immutable (ie it can only be created with a set of characteristics, and thereafter is 'readonly'). The properties are all interdependent, so changing one without the other does not make sense.
 
Changed:
<
<
>
>
-- MartinHill - 21 May 2004
 


<--  
-->

Revision 12004-05-20 - MartinHill

 
META TOPICPARENT name="DataModelPassband"
Not finished (Work in progress)

Wave

Probably an overkill way of modelling wavelength/frequency, but would allow users to work in either interchangably.

Implementation

factory methods:

makeFromFreq(frequency)

makeFromWavelength(wavelength)

property getters:

getFrequency() : Hz (real) getWavelength() : meters (real)

getUcd() - I think

getAccuracy() - I think...




<--  
-->
 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback