JScience v2.0

org.jscience.mathematics.matrices
Interface Operable<T extends Operable<T>>

All Superinterfaces:
Realtime
All Known Subinterfaces:
Numeric<T>
All Known Implementing Classes:
Acceleration, AmountOfSubstance, Angle, AngularAcceleration, AngularVelocity, Area, CatalyticActivity, Complex, Constant, DataAmount, DataRate, Dimensionless, DiscreteFunction, Duration, ElectricCapacitance, ElectricCharge, ElectricConductance, ElectricCurrent, ElectricInductance, ElectricPotential, ElectricResistance, Energy, Float32, Float64, Force, Frequency, Function, Illuminance, Integer32, Integer64, LargeInteger, Length, LuminousFlux, LuminousIntensity, MagneticFlux, MagneticFluxDensity, Mass, Matrix, Money, Number, Polynomial, Power, Pressure, Quantity, RadiationDoseAbsorbed, RadiationDoseEffective, RadioactiveActivity, Rational, RationalFunction, Real, SolidAngle, Temperature, Torque, Vector, Velocity, Volume, VolumetricDensity

public interface Operable<T extends Operable<T>>
extends Realtime

This interface abstracts the fundamental arithmetic operations: plus (+), times (*), opposite (-) and reciprocal (1/).

If the set of objects implementing this interface is commutative under addition and associative under multiplication and the two operations are related by distributive laws, then it forms a mathematical ring (linear algebra). System of linear equations involving these objects can be resolved using the Matrix class.

Version:
2.0, June 6, 2004
Author:
Jean-Marie Dautelle

Nested Class Summary
 
Nested classes/interfaces inherited from interface javolution.realtime.Realtime
Realtime.ObjectSpace
 
Method Summary
 T opposite()
          Returns the additive inverse of this object.
 T plus(T that)
          Returns the sum of this object with the one specified.
 T reciprocal()
          Returns the multiplicative inverse of this object.
 T times(T that)
          Returns the product of this object with the one specified.
 
Methods inherited from interface javolution.realtime.Realtime
move, toText
 

Method Detail

plus

T plus(T that)
Returns the sum of this object with the one specified.

Parameters:
that - the object to be added.
Returns:
this + that.

opposite

T opposite()
Returns the additive inverse of this object. It is the object such as this.plus(this.opposite()) == ZERO, with ZERO being the additive identity.

Returns:
-this.

times

T times(T that)
Returns the product of this object with the one specified.

Parameters:
that - the object multiplier.
Returns:
this * that.

reciprocal

T reciprocal()
Returns the multiplicative inverse of this object. It it the object such as this.times(this.reciprocal()) == ONE , with ONE being the multiplicative identity.

Returns:
ONE / this.

JScience v2.0

Copyright © 2005 JScience.