Class Times
java.lang.Object
calculator.operations.Operation
calculator.operations.Times
- All Implemented Interfaces:
Expression
This class represents the arithmetic multiplication operation "*".
The class extends an abstract superclass Operation.
Other subclasses of Operation represent other arithmetic operations.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTimes(List<Expression> elist) Class constructor specifying a number of Expressions to multiply. -
Method Summary
Modifier and TypeMethodDescriptionAbstract method representing the actual binary arithmetic operation to compute on Complexesop(IntegerAtom i1, IntegerAtom i2) The actual computation of the (binary) arithmetic multiplication of two IntegersAbstract method representing the actual binary arithmetic operation to compute on RationnalsThe actual computation of the (binary) arithmetic multiplication of two Reals
-
Constructor Details
-
Times
Class constructor specifying a number of Expressions to multiply.- Parameters:
elist- The list of Expressions to multiply- Throws:
IllegalConstruction- If an empty list of expressions if passed as parameter- See Also:
-
-
Method Details
-
op
-
op
The actual computation of the (binary) arithmetic multiplication of two Integers -
op
Description copied from class:OperationAbstract method representing the actual binary arithmetic operation to compute on Complexes -
op
Description copied from class:OperationAbstract method representing the actual binary arithmetic operation to compute on Rationnals
-