|
||||||||||
| 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.SolarRadiationImpl
Implements a solar radiation sequence using an array of Stores store values==null is used to indicate that no data of that type is available Radiation values are stored internally in W/m2 (except for PPFD in (µmol s-1m-2))
| Field Summary |
| Fields inherited from class net.agmodel.weatherData.GeneralMetSequenceImpl |
rb |
| Fields inherited from class net.agmodel.physical.GeneralSequenceImpl |
dateRange, maximumTemporalInterpolation, summaryHistory |
| Constructor Summary | |
SolarRadiationImpl(Interval dateRange,
SummaryHistory composition)
|
|
| Method Summary | |
SolarRadiationImpl |
average(Duration newResolution)
Creates a new solar radiation sequence, averaging to a lower resolution. |
Object |
clone()
|
JigsawQuantity |
getAverage(RadiationKind kind,
Interval interval)
Returns the average solar radiation over the 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. |
float[] |
getCoverage(int index)
Indicates which array elements returned by getData(int) are missing.
|
double[] |
getData(int index)
Creates a one-dimensional array containing one subcomponent of the data. |
JigsawQuantity |
getInstant(RadiationKind kind,
Date time)
Returns the instantaneous solar radiation at a particular point in time. |
JigsawQuantity |
getMaximum(RadiationKind kind,
Interval interval)
Returns the maximum solar radiation over the interval. |
JigsawQuantity |
getMinimum(RadiationKind kind,
Interval interval)
Returns the minimum solar radiation over the interval. |
int |
getNumberOfSubComponents()
Get the number of sub-components in the sequence. |
protected Store |
getStore(RadiationKind rK)
|
String |
getSubHeading(int index)
Gets a brief description of the data stored in a Sequence subcomponent in the language of the default locale. |
JigsawQuantity |
getTotal(RadiationKind kind,
Interval interval)
Returns the accumulated solar energy over the interval in MJ/m2. |
String |
getUnitsHeading(int index)
Gets a string representation of the measurement units of the column. |
boolean |
hasKind(RadiationKind kind)
Returns true if the specified kind of radiation is available |
void |
makeStore(RadiationKind kind)
|
void |
putAverageRadiationOverInterval(RadiationKind kind,
Interval interval,
float valueW)
Records the average solar radiation over some subinterval. |
void |
putInstantRadiation(RadiationKind kind,
Date time,
float valueW)
Records the instantaneous solar radiation at a particular time |
void |
putTotalRadiationOverInterval(RadiationKind kind,
Interval interval,
float valueMJ)
Records the solar radiation over some subinterval. |
protected void |
setStore(RadiationKind rK,
Store newStore)
|
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.GeneralMetSequenceImpl |
getName, getSequenceElement, getSequenceHeading, 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, getMaximumTemporalInterpolation, getTemporalInterpolation, setSequenceHeading, setTemporalInterpolation, setUnitsHeading |
| Methods inherited from interface net.agmodel.physical.Sequence |
dumpSequence, getCurrentResolution, getDateRange, getName, getResolution, getSequenceHeading, getSubHeading, getSummaryKind, getUnitsHeading, setColumnHeading, setName |
| Constructor Detail |
public SolarRadiationImpl(Interval dateRange,
SummaryHistory composition)
| Method Detail |
protected void setStore(RadiationKind rK,
Store newStore)
protected Store getStore(RadiationKind rK)
public void makeStore(RadiationKind kind)
public void putInstantRadiation(RadiationKind kind,
Date time,
float valueW)
time - the point in timevalueW - the solar radiation at that time in W/m2
IllegalArgumentException - if the time is outside the interval that the period is intended to store
public void putAverageRadiationOverInterval(RadiationKind kind,
Interval interval,
float valueW)
interval - the period of time over which the measurement was taken.valueW - the averagesolar radiation over that interval in W/m2
IllegalArgumentException - if the subinterval is outside the interval that the sequence was constructed to store
public void putTotalRadiationOverInterval(RadiationKind kind,
Interval interval,
float valueMJ)
interval - the period of time over which the measurement was taken.valueMJ - the total solar radiation over that interval in MJ/m2
IllegalArgumentException - if the subinterval is outside the interval that the sequence was constructed to storepublic boolean hasKind(RadiationKind kind)
SolarRadiation
hasKind in interface SolarRadiationkind - a constant corresponding to the type of solar radiation
public JigsawQuantity getMinimum(RadiationKind kind,
Interval interval)
SolarRadiation
getMinimum in interface SolarRadiationkind - a constant corresponding to the type of solar radiation
public JigsawQuantity getMaximum(RadiationKind kind,
Interval interval)
SolarRadiation
getMaximum in interface SolarRadiationkind - a constant corresponding to the type of solar radiation
public JigsawQuantity getInstant(RadiationKind kind,
Date time)
SolarRadiation
getInstant in interface SolarRadiationkind - a constant corresponding to the type of solar radiation
public JigsawQuantity getAverage(RadiationKind kind,
Interval interval)
SolarRadiation
getAverage in interface SolarRadiationkind - a constant corresponding to the type of solar radiation
public JigsawQuantity getTotal(RadiationKind kind,
Interval interval)
SolarRadiation
getTotal in interface SolarRadiationkind - a constant corresponding to the type of solar radiation
public String getColumnHeading()
Sequence
getColumnHeading in interface SequencegetColumnHeading in class GeneralMetSequenceImplpublic int getNumberOfSubComponents()
Sequence
getNumberOfSubComponents in interface SequencegetNumberOfSubComponents in class GeneralMetSequenceImplSequence.getSequenceHeading(String)public String getSubHeading(int index)
CompoundSequence
getSubHeading in interface CompoundSequencegetSubHeading in class GeneralMetSequenceImplSequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String)public String getUnitsHeading(int index)
CompoundSequence
getUnitsHeading in interface CompoundSequencegetUnitsHeading in class GeneralMetSequenceImplSequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String),
CompoundSequence.getSubHeading(int)
public void setSubHeading(int index,
String aHeading)
setSubHeading in interface CompoundSequencesetSubHeading in class GeneralMetSequenceImplaHeading - the new headingindex - the zero-based index of the headingSequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String)
public String getContentsAsString(Date time,
String delimiter)
Sequence
getContentsAsString in interface SequencegetContentsAsString in class GeneralSequenceImpltime - the time of interest.delimiter - a string to use between values if required.public SolarRadiationImpl average(Duration newResolution)
newResolution - the target resolution required.
public MetSequence summarize(Duration longerResolution)
MetSequence
summarize in interface MetSequencelongerResolution - the new resolution to summarize to
public double[] getData(int index)
CompoundSequenceCompoundSequence.getCoverage(int) to test for missing values
(at present these are returned as Double.NaN but don't rely on this).
getData in interface CompoundSequencegetData in class GeneralSequenceImplindex - the zero-based index of the subcomponent
Sequence.getNumberOfSubComponents()public float[] getCoverage(int index)
CompoundSequenceCompoundSequence.getData(int) are missing.
Coverage values are in the range JigsawQuantity.DEVOID to JigsawQuantity.COMPLETE.
getCoverage in interface CompoundSequencegetCoverage in class GeneralSequenceImplindex - the zero-based index of the subcomponent
public Object clone()
clone in interface Sequenceclone in class GeneralSequenceImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||