|
JScience v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Operable<T extends Operable<T>>
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.
| 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 |
|---|
T plus(T that)
that - the object to be added.
this + that.T opposite()
this.plus(this.opposite()) == ZERO,
with ZERO being the additive identity.
-this.T times(T that)
that - the object multiplier.
this * that.T reciprocal()
this.times(this.reciprocal()) == ONE ,
with ONE being the multiplicative identity.
ONE / this.
|
JScience v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||