Package org.tensorics.core.quantity.lang
Class QuantityExpressionSupport<V>
- java.lang.Object
-
- org.tensorics.core.quantity.lang.QuantityExpressionSupport<V>
-
- Type Parameters:
V
- the type of the elements of the field on which all the operations are based on.
- Direct Known Subclasses:
QuantityIterableExpressionSupport
public class QuantityExpressionSupport<V> extends java.lang.Object
Provide tensoric eDSL elements which serve as starting point for descriptions of expressions of quantities.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QuantityExpressionSupport(QuantityEnvironment<V> environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OngoingDeferredQuantifiedScalarOperation<V>
calculate(Expression<QuantifiedValue<V>> scalar)
OngoingDeferredQuantifiedScalarOperation<V>
calculate(V value, javax.measure.unit.Unit<?> unit)
Expression<QuantifiedValue<V>>
inverseOf(QuantifiedValue<V> element)
Expression<QuantifiedValue<V>>
inverseOf(Expression<QuantifiedValue<V>> element)
Expression<QuantifiedValue<V>>
negativeOf(QuantifiedValue<V> element)
Expression<QuantifiedValue<V>>
negativeOf(Expression<QuantifiedValue<V>> element)
QuantifiedValue<V>
one()
QuantifiedValue<V>
two()
Expression<QuantifiedValue<V>>
valueOf(V value, javax.measure.unit.Unit<?> unit)
Expression<QuantifiedValue<V>>
valueOf(V value, Unit unit)
QuantifiedValue<V>
zero()
-
-
-
Constructor Detail
-
QuantityExpressionSupport
protected QuantityExpressionSupport(QuantityEnvironment<V> environment)
-
-
Method Detail
-
valueOf
public Expression<QuantifiedValue<V>> valueOf(V value, Unit unit)
-
valueOf
public Expression<QuantifiedValue<V>> valueOf(V value, javax.measure.unit.Unit<?> unit)
-
calculate
public OngoingDeferredQuantifiedScalarOperation<V> calculate(V value, javax.measure.unit.Unit<?> unit)
-
calculate
public OngoingDeferredQuantifiedScalarOperation<V> calculate(Expression<QuantifiedValue<V>> scalar)
-
negativeOf
public Expression<QuantifiedValue<V>> negativeOf(QuantifiedValue<V> element)
-
negativeOf
public Expression<QuantifiedValue<V>> negativeOf(Expression<QuantifiedValue<V>> element)
-
inverseOf
public Expression<QuantifiedValue<V>> inverseOf(QuantifiedValue<V> element)
-
inverseOf
public Expression<QuantifiedValue<V>> inverseOf(Expression<QuantifiedValue<V>> element)
-
one
public QuantifiedValue<V> one()
-
zero
public QuantifiedValue<V> zero()
-
two
public QuantifiedValue<V> two()
-
-