|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
Defines the methods add() and also multiply(). More...

Public Member Functions | |
| int | intValue () |
| double | doubleValue () |
| T | fromString (String str) |
| Parses a string to construct a new instance. | |
| T | fromInt (int nbr) |
| Creates an instance from an int. | |
| T | add (T o) |
| Adds an object to this object. | |
| AddableDelayed< T > | addDelayed () |
| Creates an object with the same value as this object, used to delay the resolution of a large number of additions. | |
| T | subtract (T o) |
| Subtracts an object from this object. | |
| T | multiply (T o) |
| Multiplies an object with this object. | |
| boolean | equals (Object o) |
| The equals function must be implemented so that the hashmap storing the steps for each value can find the proper step for the provided value. | |
| int | hashCode () |
| The hashCode function must be implemented so that the hashmap storing the steps for each value can find the proper step for the provided value. | |
| T | getZero () |
| Returns a neutral object for the addition operation ("zero"). | |
| T | getPlusInfinity () |
| Returns the "+infinity" object. | |
| T | getMinInfinity () |
| Returns the "-infinity" object. | |
| T | abs () |
| T | divide (T o) |
| T | flipSign () |
| Flip the sign of this number. | |
| Addable< T >[] | range (T begin, T end) |
Returns an array containing all the values between begin and end. | |
| Public Member Functions inherited from frodo2.solutionSpaces.AddableLimited< T, T > | |
| M | add (A other) |
| Addition. | |
| M | min (M other) |
| Minimum. | |
| M | max (M other) |
| Maximum. | |
| boolean | externalize () |
| Object | readResolve () |
| Method called just after deserialization. | |
Defines the methods add() and also multiply().
| <T> | the type of objects to be added to or multiplied with an object of this class |
| T frodo2.solutionSpaces.Addable< T extends Addable< T > >.abs | ( | ) |
Implemented in frodo2.solutionSpaces.crypto.AddableBigInteger, frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
| T frodo2.solutionSpaces.Addable< T extends Addable< T > >.add | ( | T | o | ) |
Adds an object to this object.
| o | the object to be added |
| AddableDelayed< T > frodo2.solutionSpaces.Addable< T extends Addable< T > >.addDelayed | ( | ) |
Creates an object with the same value as this object, used to delay the resolution of a large number of additions.
Implemented in frodo2.solutionSpaces.crypto.AddableBigInteger, frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
| T frodo2.solutionSpaces.Addable< T extends Addable< T > >.divide | ( | T | o | ) |
| o | the number to divide with |
| double frodo2.solutionSpaces.Addable< T extends Addable< T > >.doubleValue | ( | ) |
Implemented in frodo2.solutionSpaces.crypto.AddableBigInteger, frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
| boolean frodo2.solutionSpaces.Addable< T extends Addable< T > >.equals | ( | Object | o | ) |
The equals function must be implemented so that the hashmap storing the steps for each value can find the proper step for the provided value.
| o | the object to be checked for equality |
Implemented in frodo2.solutionSpaces.crypto.AddableBigInteger, frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
| T frodo2.solutionSpaces.Addable< T extends Addable< T > >.flipSign | ( | ) |
Flip the sign of this number.
Implemented in frodo2.solutionSpaces.crypto.AddableBigInteger, frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
| T frodo2.solutionSpaces.Addable< T extends Addable< T > >.fromInt | ( | int | nbr | ) |
Creates an instance from an int.
| nbr | the int |
Implemented in frodo2.solutionSpaces.crypto.AddableBigInteger.
| T frodo2.solutionSpaces.Addable< T extends Addable< T > >.fromString | ( | String | str | ) |
Parses a string to construct a new instance.
| str | the string |
Implemented in frodo2.solutionSpaces.crypto.AddableBigInteger.
| T frodo2.solutionSpaces.Addable< T extends Addable< T > >.getMinInfinity | ( | ) |
Returns the "-infinity" object.
Adding -infinity to any object (except +infinity) should always return -infinity. The -infinity object should be a singleton, so that one can use == to check if an object is -infinity.
Implemented in frodo2.solutionSpaces.crypto.AddableBigInteger.
| T frodo2.solutionSpaces.Addable< T extends Addable< T > >.getPlusInfinity | ( | ) |
Returns the "+infinity" object.
Adding +infinity to any object (except -infinity) should always return +infinity. The +infinity object should be a singleton, so that one can use == to check if an object is +infinity.
Implemented in frodo2.solutionSpaces.crypto.AddableBigInteger.
| T frodo2.solutionSpaces.Addable< T extends Addable< T > >.getZero | ( | ) |
Returns a neutral object for the addition operation ("zero").
Implemented in frodo2.solutionSpaces.crypto.AddableBigInteger.
| int frodo2.solutionSpaces.Addable< T extends Addable< T > >.hashCode | ( | ) |
The hashCode function must be implemented so that the hashmap storing the steps for each value can find the proper step for the provided value.
Implemented in frodo2.solutionSpaces.crypto.AddableBigInteger, frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
| int frodo2.solutionSpaces.Addable< T extends Addable< T > >.intValue | ( | ) |
Implemented in frodo2.solutionSpaces.crypto.AddableBigInteger, frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
| T frodo2.solutionSpaces.Addable< T extends Addable< T > >.multiply | ( | T | o | ) |
Multiplies an object with this object.
| o | the object to be multiplied with |
| Addable< T >[] frodo2.solutionSpaces.Addable< T extends Addable< T > >.range | ( | T | begin, |
| T | end ) |
Returns an array containing all the values between begin and end.
| begin | the smallest element of the range |
| end | the biggest element of the range |
| T frodo2.solutionSpaces.Addable< T extends Addable< T > >.subtract | ( | T | o | ) |
Subtracts an object from this object.
| o | the object to be subtracted |