|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.agmodel.physical.GeneralSequenceImpl
|
+--net.agmodel.weatherData.GeneralMetSequenceImpl
|
+--net.agmodel.weatherData.MultiImpl
|
+--net.agmodel.weatherData.WindProfileImpl
Stores a sequence of wind readings including speed and/or direction at various heights. Wind speeds are stored internally in m/s. If height index is not specified (eg in methods implementing the Wind interface) height[0] data is used.
if you only want to deal with surface wind.,
Serialized Form| Field Summary |
| Fields inherited from class net.agmodel.weatherData.GeneralMetSequenceImpl |
rb |
| Fields inherited from class net.agmodel.physical.GeneralSequenceImpl |
dateRange, maximumTemporalInterpolation, summaryHistory |
| Constructor Summary | |
WindProfileImpl(Interval dateRange,
SummaryHistory composition,
double[] heights,
String heightUnits)
Creates a set of wind sequences which can store speed and/or direction at various heights. |
|
| Method Summary | |
WindProfileImpl |
average(Duration newResolution)
Creates a new wind profile sequence, averaging winds to a lower resolution. |
JigsawQuantity |
getAverageSpeed(Interval interval)
Returns the average wind speed over the interval. |
JigsawQuantity |
getAverageSpeed(int index,
Interval interval)
|
String |
getColumnHeading()
Returned a localized label for the Sequence |
String |
getContentsAsString(Date time,
String delimiter)
Returns the measurement associated with a particular time as a string. |
String |
getHeightUnits()
Gets the units for the wind measurement height. |
JigsawQuantity |
getInstantDirection(Date time)
Returns the instantaneous wind speed at a particular point in time. |
JigsawQuantity |
getInstantDirection(int index,
Date time)
|
JigsawQuantity |
getInstantSpeed(Date time)
Returns the instantaneous wind speed at a particular point in time. |
JigsawQuantity |
getInstantSpeed(int index,
Date time)
|
JigsawQuantity |
getMaxSpeed(Interval interval)
Returns the maximum wind speed over the interval. |
JigsawQuantity |
getMaxSpeed(int index,
Interval interval)
|
double |
getMeasurementHeight()
Gets the height of the wind measurement |
double |
getMeasurementHeight(int index)
|
double[] |
getMeasurementHeights()
|
JigsawQuantity |
getMinSpeed(Interval interval)
Returns the minimum wind speed over the interval. |
JigsawQuantity |
getMinSpeed(int index,
Interval interval)
|
int |
getNumberOfSubComponents()
Get the number of sub-components in the sequence. |
float[] |
getRose(Interval interval,
int divisions)
Returns the distribution of wind directions as an array. |
float[] |
getRose(int index,
Interval interval,
int divisions)
|
String |
getSubHeading(int index)
Gets a brief description of the data stored in a Sequence subcomponent in the language of the default locale. |
JigsawQuantity |
getWindRun(Interval interval)
Returns the total windrun over the interval. |
JigsawQuantity |
getWindRun(int index,
Interval interval)
|
boolean |
hasDirection()
Returns whether wind direction data are stored in the sequence |
boolean |
hasDirection(int index)
|
boolean |
hasSpeed()
Returns whether wind speed data are stored in the sequence |
boolean |
hasSpeed(int index)
|
void |
putInstantDirection(int index,
Date time,
float value)
Records the instantaneous wind direction. |
void |
putInstantSpeed(int index,
Date time,
float value)
Records the instantaneous wind speed at the lowest height at a particular time |
void |
putSpeedOverInterval(int index,
Interval interval,
float value)
Records the average wind speed at the lowest height over some subinterval. |
void |
putWindRun(int index,
Interval interval,
float valuekm)
Records the wind run over some subinterval. |
protected void |
setDirectionStore(int index,
Store newDir)
|
void |
setSubHeading(int index,
String aHeading)
Does nothing |
MetSequence |
summarize(Duration longerResolution)
Creates a lower resolution sequence which summarizes this sequence |
| Methods inherited from class net.agmodel.weatherData.MultiImpl |
clone, getAverage, getCoverage, getData, getInstant, getMaximum, getMinimum, getStore, putInstantValue, putValueOverInterval, setStore |
| Methods inherited from class net.agmodel.weatherData.GeneralMetSequenceImpl |
getName, getSequenceElement, getSequenceHeading, getUnitsHeading, setColumnHeading, setName, setSequenceHeading, setUnitsHeading |
| Methods inherited from class net.agmodel.physical.GeneralSequenceImpl |
cancelTemporalInterpolation, dumpSequence, getAllCoverage, getAllData, getCurrentResolution, getDateRange, getMaximumTemporalInterpolation, getResolution, getSubHeading, getSummaryHistory, getSummaryKind, getTemporalInterpolation, getUnitsHeading, setTemporalInterpolation |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.agmodel.weatherData.MetSequence |
getSequenceElement |
| Methods inherited from interface net.agmodel.physical.CompoundSequence |
cancelTemporalInterpolation, getAllCoverage, getAllData, getCoverage, getData, getMaximumTemporalInterpolation, getTemporalInterpolation, getUnitsHeading, setSequenceHeading, setTemporalInterpolation, setUnitsHeading |
| Methods inherited from interface net.agmodel.physical.Sequence |
clone, dumpSequence, getCurrentResolution, getDateRange, getName, getResolution, getSequenceHeading, getSubHeading, getSummaryKind, getUnitsHeading, setColumnHeading, setName |
| Constructor Detail |
public WindProfileImpl(Interval dateRange,
SummaryHistory composition,
double[] heights,
String heightUnits)
dateRange - the interval over which wind speeds can be storedcomposition - a record of how raw wind data has been summarised to make the sequence.heights - an array containing measurement heights in ascending order.heightUnits - the units for height (at this stage just a string).| Method Detail |
protected void setDirectionStore(int index,
Store newDir)
public boolean hasSpeed()
Wind
hasSpeed in interface Windpublic boolean hasDirection()
Wind
hasDirection in interface Windpublic boolean hasSpeed(int index)
public boolean hasDirection(int index)
public double[] getMeasurementHeights()
public double getMeasurementHeight(int index)
public String getHeightUnits()
Wind
getHeightUnits in interface Wind
public void putInstantSpeed(int index,
Date time,
float value)
index - the height of interesttime - the point in timevalue - the wind speed at that time
IllegalArgumentException - if the time is outside the interval that the period is intended to store
public void putSpeedOverInterval(int index,
Interval interval,
float value)
index - the height of interestinterval - the period of time over which the measurement was taken.value - the average wind speed over that interval
IllegalArgumentException - if the subinterval is outside the interval that the sequence was constructed to store
public void putWindRun(int index,
Interval interval,
float valuekm)
interval - the period of time over which the measurement was taken.valuekm - the wind run in km over that interval
IllegalArgumentException - if the subinterval is outside the interval that the sequence was constructed to store
public JigsawQuantity getMinSpeed(int index,
Interval interval)
public JigsawQuantity getMaxSpeed(int index,
Interval interval)
public JigsawQuantity getInstantSpeed(int index,
Date time)
public JigsawQuantity getAverageSpeed(int index,
Interval interval)
public JigsawQuantity getWindRun(int index,
Interval interval)
public void putInstantDirection(int index,
Date time,
float value)
time - the that the direction was measured.value - the wind direction at that time.
IllegalArgumentException - if the subinterval is outside the interval that the sequence was constructed to store
public float[] getRose(int index,
Interval interval,
int divisions)
public JigsawQuantity getInstantDirection(int index,
Date time)
public String getColumnHeading()
Sequence
getColumnHeading in interface SequencegetColumnHeading in class GeneralMetSequenceImpl
public String getContentsAsString(Date time,
String delimiter)
Sequence
getContentsAsString in interface SequencegetContentsAsString in class MultiImpltime - the time of interest.delimiter - a string to use between values if required.public WindProfileImpl average(Duration newResolution)
newResolution - the target resolution required.
public double getMeasurementHeight()
Wind
getMeasurementHeight in interface WindWind.getHeightUnits()public JigsawQuantity getMinSpeed(Interval interval)
Wind
getMinSpeed in interface Windpublic JigsawQuantity getMaxSpeed(Interval interval)
Wind
getMaxSpeed in interface Windpublic JigsawQuantity getInstantSpeed(Date time)
Wind
getInstantSpeed in interface Windpublic JigsawQuantity getInstantDirection(Date time)
Wind
getInstantDirection in interface Windpublic JigsawQuantity getAverageSpeed(Interval interval)
Wind
getAverageSpeed in interface Windpublic JigsawQuantity getWindRun(Interval interval)
Wind
getWindRun in interface Wind
public float[] getRose(Interval interval,
int divisions)
Wind
getRose in interface Windinterval - the period of interest.divisions - the number of classes in the resulting array
public MetSequence summarize(Duration longerResolution)
MetSequence
summarize in interface MetSequencelongerResolution - the new resolution to summarize to
public int getNumberOfSubComponents()
Sequence
getNumberOfSubComponents in interface SequencegetNumberOfSubComponents in class MultiImplSequence.getSequenceHeading(String)public String getSubHeading(int index)
CompoundSequence
getSubHeading in interface CompoundSequencegetSubHeading in class MultiImplSequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String)
public void setSubHeading(int index,
String aHeading)
setSubHeading in interface CompoundSequencesetSubHeading in class MultiImplaHeading - the new headingindex - the zero-based index of the headingSequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||