org.flexiblepower.ral.values
public final class UncertainMeasurableProfile<Q extends javax.measure.quantity.Quantity> extends Profile<UncertainMeasure<Q>>
Profile
. By parameterizing this class with the billable quantity (BQ) and the flow
quantity (FQ) it can be validated whether all commodity profile elements are of the same commodity. CommodityProfile
does not have any additional attributes.Modifier and Type | Class and Description |
---|---|
static class |
UncertainMeasurableProfile.Builder<Q extends javax.measure.quantity.Quantity>
The Builder object that will be used to easily create
UncertainMeasurableProfile s. |
Profile.Element<T>
Constructor and Description |
---|
UncertainMeasurableProfile(Profile.Element<UncertainMeasure<Q>>... elements)
Constructor of the
UncertainMeasurableProfile , using the elements given. |
Modifier and Type | Method and Description |
---|---|
static <Q extends javax.measure.quantity.Quantity> |
create(javax.measure.unit.Unit<Q> defaultUnit) |
Profile<UncertainMeasure<Q>> |
subProfile(javax.measure.Measurable<javax.measure.quantity.Duration> offset,
javax.measure.Measurable<javax.measure.quantity.Duration> duration)
An extension of the profile should implement this method to be able to split the profile up into parts.
|
get, getElementAtOffset, getTotalDuration, size
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
public UncertainMeasurableProfile(Profile.Element<UncertainMeasure<Q>>... elements)
UncertainMeasurableProfile
, using the elements given. The elements will be copied into
a new array.elements
- The elements that are stored in this profilepublic static <Q extends javax.measure.quantity.Quantity> UncertainMeasurableProfile.Builder<Q> create(javax.measure.unit.Unit<Q> defaultUnit)
UncertainMeasurableProfile
s.public Profile<UncertainMeasure<Q>> subProfile(javax.measure.Measurable<javax.measure.quantity.Duration> offset, javax.measure.Measurable<javax.measure.quantity.Duration> duration)
Profile
subProfile
in class Profile<UncertainMeasure<Q extends javax.measure.quantity.Quantity>>
offset
- The offset of where the subsection of the profile should start. This should always be >= 0.duration
- The total duration of the new profile. The offset + duration should never be more than the total
duration of this profile.Profile
implementation that represents the selected subprofile.