Package org.tensorics.core.quantity.lang
Class QuantitySupport<V>
- java.lang.Object
-
- org.tensorics.core.quantity.lang.QuantitySupport<V>
-
- Type Parameters:
V
- the type of the scalar values (elements of the field which is used for the operations)
- Direct Known Subclasses:
QuantityDoubleSupport
,QuantityIterableSupport
public class QuantitySupport<V> extends java.lang.Object
Provides starting methods for tensoric language expressions that operate on quantities.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QuantitySupport(QuantityEnvironment<V> environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuantifiedValue<V>
absoluteValueOf(QuantifiedValue<V> element)
OngoingQuantifiedScalarOperation<V>
calculate(QuantifiedValue<V> scalar)
OngoingQuantifiedScalarOperation<V>
calculate(V value, javax.measure.unit.Unit<?> unit)
OngoingQuantifiedScalarConversion<V>
convert(QuantifiedValue<V> value)
QuantifiedValue<V>
inverseOf(QuantifiedValue<V> element)
QuantifiedValue<V>
negativeOf(QuantifiedValue<V> element)
QuantifiedValue<V>
one()
protected QuantityOperationRepository<V>
operationRepository()
protected QuantityPedicateRepository<V>
predicateRepository()
OngoingQuantifiedScalarBinaryPredicate<V>
testIf(QuantifiedValue<V> left)
QuantifiedValue<V>
two()
OngoingQuantityValueExtraction<V>
valueOf(QuantifiedValue<V> quantity)
QuantifiedValue<V>
valueOf(V value, javax.measure.unit.Unit<?> unit)
QuantifiedValue<V>
valueOf(V value, Unit unit)
QuantifiedValue<V>
zero()
-
-
-
Constructor Detail
-
QuantitySupport
protected QuantitySupport(QuantityEnvironment<V> environment)
-
-
Method Detail
-
valueOf
public QuantifiedValue<V> valueOf(V value, Unit unit)
-
valueOf
public QuantifiedValue<V> valueOf(V value, javax.measure.unit.Unit<?> unit)
-
calculate
public OngoingQuantifiedScalarOperation<V> calculate(V value, javax.measure.unit.Unit<?> unit)
-
calculate
public OngoingQuantifiedScalarOperation<V> calculate(QuantifiedValue<V> scalar)
-
negativeOf
public QuantifiedValue<V> negativeOf(QuantifiedValue<V> element)
-
inverseOf
public QuantifiedValue<V> inverseOf(QuantifiedValue<V> element)
-
absoluteValueOf
public QuantifiedValue<V> absoluteValueOf(QuantifiedValue<V> element)
-
one
public QuantifiedValue<V> one()
-
zero
public QuantifiedValue<V> zero()
-
two
public QuantifiedValue<V> two()
-
convert
public OngoingQuantifiedScalarConversion<V> convert(QuantifiedValue<V> value)
-
valueOf
public OngoingQuantityValueExtraction<V> valueOf(QuantifiedValue<V> quantity)
-
operationRepository
protected QuantityOperationRepository<V> operationRepository()
-
predicateRepository
protected QuantityPedicateRepository<V> predicateRepository()
-
testIf
public OngoingQuantifiedScalarBinaryPredicate<V> testIf(QuantifiedValue<V> left)
-
-