|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A wrapper around a BigInteger so that it implements AddableLimited. More...

Public Member Functions | |
| FakeEncryptedInteger () | |
| Empty constructor only used for externalization. | |
| FakeEncryptedInteger (BigInteger bigInt) | |
| Constructor. | |
| FakeEncryptedInteger (String string) | |
| Constructor from a string representation. | |
| void | writeExternal (ObjectOutput arg0) throws IOException |
| void | readExternal (ObjectInput arg0) throws IOException, ClassNotFoundException |
| Object | readResolve () |
| final boolean | externalize () |
| String | toString () |
| FakeEncryptedInteger | add (AddableInteger other) |
| FakeEncryptedInteger | max (FakeEncryptedInteger other) |
| FakeEncryptedInteger | min (FakeEncryptedInteger other) |
| FakeEncryptedInteger | multiply (FakeEncryptedInteger other) |
| Multiplication. | |
| int | compareTo (FakeEncryptedInteger o) |
| boolean | equals (Object o) |
| FakeEncryptedInteger | subtract (FakeEncryptedInteger other) |
| Subtraction. | |
| FakeEncryptedInteger | add (FakeEncryptedInteger other) |
| Addition. | |
| FakeEncryptedInteger | mod (FakeEncryptedInteger other) |
| Modulo. | |
| Public Member Functions inherited from frodo2.solutionSpaces.AddableLimited< A extends Addable< A >, M extends AddableLimited< A, M > | |
| M | add (A other) |
| Addition. | |
| M | min (M other) |
| Minimum. | |
| M | max (M other) |
| Maximum. | |
Private Attributes | |
| BigInteger | bigInt |
| The underlying BigInteger. | |
A wrapper around a BigInteger so that it implements AddableLimited.
| frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.FakeEncryptedInteger | ( | ) |
Empty constructor only used for externalization.
Referenced by add(), add(), compareTo(), equals(), max(), min(), mod(), multiply(), and subtract().
| frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.FakeEncryptedInteger | ( | BigInteger | bigInt | ) |
| frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.FakeEncryptedInteger | ( | String | string | ) |
Constructor from a string representation.
| string | a string representation |
References frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.cleartextPlusInf, and equals().

| FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.add | ( | AddableInteger | other | ) |
References frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.cleartextPlusInf, FakeEncryptedInteger(), frodo2.solutionSpaces.AddableInteger.intValue(), and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.
Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.encrypt(), frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.partialDecrypt(), and frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.reencrypt().

| FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.add | ( | FakeEncryptedInteger | other | ) |
Addition.
| other | another number |
References bigInt, and FakeEncryptedInteger().

| int frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.compareTo | ( | FakeEncryptedInteger | o | ) |
References bigInt, and FakeEncryptedInteger().
Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.decrypt().

| boolean frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.equals | ( | Object | o | ) |
References bigInt, and FakeEncryptedInteger().
Referenced by FakeEncryptedInteger(), and frodo2.algorithms.dpop.privacy.test.FakeCryptoSchemeTest.partialyDecrypt().

| final boolean frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.externalize | ( | ) |
| FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.max | ( | FakeEncryptedInteger | other | ) |
References bigInt, and FakeEncryptedInteger().

| FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.min | ( | FakeEncryptedInteger | other | ) |
References bigInt, and FakeEncryptedInteger().

| FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.mod | ( | FakeEncryptedInteger | other | ) |
Modulo.
| other | the base of the modulo |
References bigInt, and FakeEncryptedInteger().
Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.decrypt(), frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.partialDecrypt(), and frodo2.algorithms.dpop.privacy.test.FakeCryptoSchemeTest.partialyDecrypt().

| FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.multiply | ( | FakeEncryptedInteger | other | ) |
Multiplication.
| other | another number |
References bigInt, and FakeEncryptedInteger().
Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoSchemeTest.partialyDecrypt().

| void frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.readExternal | ( | ObjectInput | arg0 | ) | throws IOException, ClassNotFoundException |
| Object frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.readResolve | ( | ) |
| FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.subtract | ( | FakeEncryptedInteger | other | ) |
Subtraction.
| other | another number |
References bigInt, and FakeEncryptedInteger().
Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.partialDecrypt().

| String frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.toString | ( | ) |
| void frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.writeExternal | ( | ObjectOutput | arg0 | ) | throws IOException |
|
private |
The underlying BigInteger.
Referenced by add(), compareTo(), frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.decrypt(), equals(), FakeEncryptedInteger(), max(), min(), mod(), multiply(), and subtract().