Class QuantityOperationRepository<S>
- java.lang.Object
-
- org.tensorics.core.quantity.operations.QuantityOperationRepository<S>
-
- Type Parameters:
S
- the type of the scalar values (elements of the field)
public class QuantityOperationRepository<S> extends java.lang.Object
A repository for operations on quantified values. This way, one instance of each can be re-used all the times.
-
-
Constructor Summary
Constructors Constructor Description QuantityOperationRepository(QuantityEnvironment<S> environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnaryOperation<QuantifiedValue<S>>
absoluteValue()
BinaryOperation<QuantifiedValue<S>>
addition()
UnaryOperation<QuantifiedValue<S>>
additiveInversion()
BinaryOperation<QuantifiedValue<S>>
division()
QuantityEnvironment<S>
environment()
BinaryOperation<QuantifiedValue<S>>
multiplication()
UnaryOperation<QuantifiedValue<S>>
multiplicativeInversion()
QuantifiedValue<S>
one()
BinaryOperation<QuantifiedValue<S>>
power()
BinaryOperation<QuantifiedValue<S>>
root()
BinaryOperation<QuantifiedValue<S>>
subtraction()
QuantifiedValue<S>
two()
QuantifiedValue<S>
zero()
-
-
-
Constructor Detail
-
QuantityOperationRepository
public QuantityOperationRepository(QuantityEnvironment<S> environment)
-
-
Method Detail
-
addition
public BinaryOperation<QuantifiedValue<S>> addition()
-
additiveInversion
public UnaryOperation<QuantifiedValue<S>> additiveInversion()
-
absoluteValue
public UnaryOperation<QuantifiedValue<S>> absoluteValue()
-
subtraction
public BinaryOperation<QuantifiedValue<S>> subtraction()
-
zero
public QuantifiedValue<S> zero()
-
multiplication
public BinaryOperation<QuantifiedValue<S>> multiplication()
-
power
public BinaryOperation<QuantifiedValue<S>> power()
-
root
public BinaryOperation<QuantifiedValue<S>> root()
-
division
public BinaryOperation<QuantifiedValue<S>> division()
-
multiplicativeInversion
public UnaryOperation<QuantifiedValue<S>> multiplicativeInversion()
-
one
public QuantifiedValue<S> one()
-
two
public QuantifiedValue<S> two()
-
environment
public QuantityEnvironment<S> environment()
-
-