|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
An Addable number based on a BigInteger. More...

Classes | |
| class | MinInfinity |
| This class implements the minus infinity element. More... | |
| class | PlusInfinity |
| This class implements the plus infinity element. More... | |
| class | AddableBigIntegerDelayed |
| Class used to speed up n-ary additions and multiplications. More... | |
Public Member Functions | |
| AddableBigInteger () | |
| Empty constructor. | |
| AddableBigInteger (String val) | |
| Constructor from a String. | |
| AddableBigInteger (int numBits, Random rnd) | |
| Random constructor. | |
| AddableBigInteger (BigInteger val) | |
| Constructor. | |
| AddableBigInteger (int val) | |
| Constructor. | |
| void | writeExternal (ObjectOutput out) throws IOException |
| void | readExternal (ObjectInput in) throws IOException, ClassNotFoundException |
| Object | readResolve () |
| final boolean | externalize () |
| AddableBigInteger | abs () |
| AddableBigInteger | add (AddableBigInteger o) |
| AddableDelayed< AddableBigInteger > | addDelayed () |
| int | compareTo (AddableBigInteger o) |
| AddableBigInteger | divide (AddableBigInteger o) |
| boolean | equals (Object o) |
| AddableBigInteger | flipSign () |
| AddableBigInteger | fromString (String str) |
| AddableBigInteger | fromInt (int nbr) |
| AddableBigInteger | getMinInfinity () |
| AddableBigInteger | getPlusInfinity () |
| AddableBigInteger | getZero () |
| int | hashCode () |
| AddableBigInteger | max (AddableBigInteger o) |
| AddableBigInteger | min (AddableBigInteger o) |
| int | intValue () |
| double | doubleValue () |
| boolean | isPositive () |
| AddableBigInteger | multiply (AddableBigInteger o) |
| AddableBigInteger | subtract (AddableBigInteger o) |
| Addable< AddableBigInteger >[] | range (AddableBigInteger begin, AddableBigInteger end) |
| String | toString () |
| Public Member Functions inherited from frodo2.solutionSpaces.Addable< T extends Addable< T > > | |
| T | add (T o) |
| Adds an object to this object. | |
| T | subtract (T o) |
| Subtracts an object from this object. | |
| T | multiply (T o) |
| Multiplies an object with this object. | |
| T | divide (T o) |
| 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. | |
Private Member Functions | |
| boolean | warnTruncation (String str) |
| Warns for truncation. | |
Private Attributes | |
| BigInteger | val |
| the BigIntger | |
Static Private Attributes | |
| static final AddableBigInteger | ZERO = new AddableBigInteger(BigInteger.ZERO) |
| ZERO. | |
An Addable number based on a BigInteger.
| frodo2.solutionSpaces.crypto.AddableBigInteger.AddableBigInteger | ( | ) |
Empty constructor.
Referenced by abs(), add(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.add(), frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.add(), frodo2.solutionSpaces.crypto.AddableBigInteger.AddableBigIntegerDelayed.addDelayed(), compareTo(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.compareTo(), frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.compareTo(), divide(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.divide(), frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.divide(), equals(), flipSign(), fromInt(), fromString(), getMinInfinity(), getPlusInfinity(), getZero(), max(), min(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.multiply(), multiply(), frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.multiply(), frodo2.solutionSpaces.crypto.AddableBigInteger.AddableBigIntegerDelayed.multiplyDelayed(), range(), frodo2.solutionSpaces.crypto.AddableBigInteger.AddableBigIntegerDelayed.resolve(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.subtract(), frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.subtract(), and subtract().
| frodo2.solutionSpaces.crypto.AddableBigInteger.AddableBigInteger | ( | String | val | ) |
Constructor from a String.
| val | String representation of an AddableBigInteger, in which "-infinity" and "infinity" are allowed |
References val.
| frodo2.solutionSpaces.crypto.AddableBigInteger.AddableBigInteger | ( | int | numBits, |
| Random | rnd ) |
Random constructor.
| numBits | number of bits of this AddableBigInteger |
| rnd | random number generator |
References val.
| frodo2.solutionSpaces.crypto.AddableBigInteger.AddableBigInteger | ( | BigInteger | val | ) |
| frodo2.solutionSpaces.crypto.AddableBigInteger.AddableBigInteger | ( | int | val | ) |
| AddableBigInteger frodo2.solutionSpaces.crypto.AddableBigInteger.abs | ( | ) |
Implements frodo2.solutionSpaces.Addable< T extends Addable< T > >.
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
References AddableBigInteger().

| AddableBigInteger frodo2.solutionSpaces.crypto.AddableBigInteger.add | ( | AddableBigInteger | o | ) |
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
References AddableBigInteger(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.MIN_INF, frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.PLUS_INF, and val.

| AddableDelayed< AddableBigInteger > frodo2.solutionSpaces.crypto.AddableBigInteger.addDelayed | ( | ) |
| int frodo2.solutionSpaces.crypto.AddableBigInteger.compareTo | ( | AddableBigInteger | o | ) |
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
References AddableBigInteger(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.MIN_INF, frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.PLUS_INF, and val.
Referenced by isPositive(), max(), and min().

| AddableBigInteger frodo2.solutionSpaces.crypto.AddableBigInteger.divide | ( | AddableBigInteger | o | ) |
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
References AddableBigInteger(), equals(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.MIN_INF, frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.PLUS_INF, val, and ZERO.

| double frodo2.solutionSpaces.crypto.AddableBigInteger.doubleValue | ( | ) |
Implements frodo2.solutionSpaces.Addable< T extends Addable< T > >.
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
References intValue().

| boolean frodo2.solutionSpaces.crypto.AddableBigInteger.equals | ( | Object | o | ) |
Implements frodo2.solutionSpaces.Addable< T extends Addable< T > >.
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
References AddableBigInteger(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.MIN_INF, frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.PLUS_INF, and val.
Referenced by divide(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.divide(), frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.divide(), fromString(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.multiply(), multiply(), frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.multiply(), and frodo2.algorithms.dpop.privacy.P_DPOPsolver< V extends Addable< V > >.setUtilClass().

| final boolean frodo2.solutionSpaces.crypto.AddableBigInteger.externalize | ( | ) |
| AddableBigInteger frodo2.solutionSpaces.crypto.AddableBigInteger.flipSign | ( | ) |
Implements frodo2.solutionSpaces.Addable< T extends Addable< T > >.
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
References AddableBigInteger().
Referenced by frodo2.algorithms.dpop.privacy.VariableObfuscation< V extends Addable< V >, U extends Addable< U > >.decryptMySelfUtility(), and frodo2.algorithms.dpop.privacy.VariableObfuscation< V extends Addable< V >, U extends Addable< U > >.decryptUtility().

| AddableBigInteger frodo2.solutionSpaces.crypto.AddableBigInteger.fromInt | ( | int | nbr | ) |
Implements frodo2.solutionSpaces.Addable< T extends Addable< T > >.
References AddableBigInteger().

| AddableBigInteger frodo2.solutionSpaces.crypto.AddableBigInteger.fromString | ( | String | str | ) |
Implements frodo2.solutionSpaces.Addable< T extends Addable< T > >.
References AddableBigInteger(), equals(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.MIN_INF, frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.PLUS_INF, and warnTruncation().

| AddableBigInteger frodo2.solutionSpaces.crypto.AddableBigInteger.getMinInfinity | ( | ) |
Implements frodo2.solutionSpaces.Addable< T extends Addable< T > >.
References AddableBigInteger(), and frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.MIN_INF.

| AddableBigInteger frodo2.solutionSpaces.crypto.AddableBigInteger.getPlusInfinity | ( | ) |
Implements frodo2.solutionSpaces.Addable< T extends Addable< T > >.
References AddableBigInteger(), and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.PLUS_INF.

| AddableBigInteger frodo2.solutionSpaces.crypto.AddableBigInteger.getZero | ( | ) |
Implements frodo2.solutionSpaces.Addable< T extends Addable< T > >.
References AddableBigInteger(), and ZERO.

| int frodo2.solutionSpaces.crypto.AddableBigInteger.hashCode | ( | ) |
Implements frodo2.solutionSpaces.Addable< T extends Addable< T > >.
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
| int frodo2.solutionSpaces.crypto.AddableBigInteger.intValue | ( | ) |
Implements frodo2.solutionSpaces.Addable< T extends Addable< T > >.
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
Referenced by doubleValue().
| boolean frodo2.solutionSpaces.crypto.AddableBigInteger.isPositive | ( | ) |
References compareTo().
Referenced by multiply(), and frodo2.solutionSpaces.crypto.AddableBigInteger.AddableBigIntegerDelayed.multiplyDelayed().

| AddableBigInteger frodo2.solutionSpaces.crypto.AddableBigInteger.max | ( | AddableBigInteger | o | ) |
References AddableBigInteger(), and compareTo().

| AddableBigInteger frodo2.solutionSpaces.crypto.AddableBigInteger.min | ( | AddableBigInteger | o | ) |
References AddableBigInteger(), and compareTo().

| AddableBigInteger frodo2.solutionSpaces.crypto.AddableBigInteger.multiply | ( | AddableBigInteger | o | ) |
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
References AddableBigInteger(), equals(), isPositive(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.MIN_INF, frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.PLUS_INF, and val.

| Addable< AddableBigInteger >[] frodo2.solutionSpaces.crypto.AddableBigInteger.range | ( | AddableBigInteger | begin, |
| AddableBigInteger | end ) |
References AddableBigInteger().

| void frodo2.solutionSpaces.crypto.AddableBigInteger.readExternal | ( | ObjectInput | in | ) | throws IOException, ClassNotFoundException |
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
| Object frodo2.solutionSpaces.crypto.AddableBigInteger.readResolve | ( | ) |
| AddableBigInteger frodo2.solutionSpaces.crypto.AddableBigInteger.subtract | ( | AddableBigInteger | o | ) |
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
References AddableBigInteger(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.MIN_INF, frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.PLUS_INF, and val.

| String frodo2.solutionSpaces.crypto.AddableBigInteger.toString | ( | ) |
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
|
private |
| void frodo2.solutionSpaces.crypto.AddableBigInteger.writeExternal | ( | ObjectOutput | out | ) | throws IOException |
Reimplemented in frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity, and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.
|
private |
the BigIntger
Referenced by add(), AddableBigInteger(), AddableBigInteger(), AddableBigInteger(), AddableBigInteger(), frodo2.solutionSpaces.crypto.AddableBigInteger.AddableBigIntegerDelayed.addDelayed(), compareTo(), divide(), equals(), multiply(), frodo2.solutionSpaces.crypto.AddableBigInteger.AddableBigIntegerDelayed.multiplyDelayed(), and subtract().
|
staticprivate |
ZERO.
Referenced by divide(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.divide(), frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.divide(), getZero(), frodo2.solutionSpaces.crypto.AddableBigInteger.MinInfinity.multiply(), and frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.multiply().