FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger Class Reference

A wrapper around a BigInteger so that it implements AddableLimited. More...

Inheritance diagram for frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger:

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 >
add (A other)
 Addition.
min (M other)
 Minimum.
max (M other)
 Maximum.

Private Attributes

BigInteger bigInt
 The underlying BigInteger.

Detailed Description

A wrapper around a BigInteger so that it implements AddableLimited.

Constructor & Destructor Documentation

◆ FakeEncryptedInteger() [1/3]

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().

◆ FakeEncryptedInteger() [2/3]

frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.FakeEncryptedInteger ( BigInteger bigInt)

Constructor.

Parameters
bigInta BigInteger

References bigInt.

◆ FakeEncryptedInteger() [3/3]

frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.FakeEncryptedInteger ( String string)

Constructor from a string representation.

Parameters
stringa string representation

References frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.cleartextPlusInf, and equals().

Here is the call graph for this function:

Member Function Documentation

◆ add() [1/2]

◆ add() [2/2]

FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.add ( FakeEncryptedInteger other)

Addition.

Parameters
otheranother number
Returns
the sum of the two numbers

References bigInt, and FakeEncryptedInteger().

Here is the call graph for this function:

◆ compareTo()

int frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.compareTo ( FakeEncryptedInteger o)
See also
java.lang.Comparable#compareTo(java.lang.Object)

References bigInt, and FakeEncryptedInteger().

Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.decrypt().

Here is the call graph for this function:

◆ equals()

boolean frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.equals ( Object o)
See also
java.lang.Object#equals(java.lang.Object)

References bigInt, and FakeEncryptedInteger().

Referenced by FakeEncryptedInteger(), and frodo2.algorithms.dpop.privacy.test.FakeCryptoSchemeTest.partialyDecrypt().

Here is the call graph for this function:

◆ externalize()

final boolean frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.externalize ( )

◆ max()

FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.max ( FakeEncryptedInteger other)
See also
AddableLimited#max(AddableLimited)

References bigInt, and FakeEncryptedInteger().

Here is the call graph for this function:

◆ min()

FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.min ( FakeEncryptedInteger other)
See also
AddableLimited#min(AddableLimited)

References bigInt, and FakeEncryptedInteger().

Here is the call graph for this function:

◆ mod()

FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.mod ( FakeEncryptedInteger other)

◆ multiply()

FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.multiply ( FakeEncryptedInteger other)

Multiplication.

Parameters
otheranother number
Returns
the product of the two numbers

References bigInt, and FakeEncryptedInteger().

Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoSchemeTest.partialyDecrypt().

Here is the call graph for this function:

◆ readExternal()

void frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.readExternal ( ObjectInput arg0) throws IOException, ClassNotFoundException
See also
java.io.Externalizable#readExternal(java.io.ObjectInput)

◆ readResolve()

Object frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.readResolve ( )

◆ subtract()

FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.subtract ( FakeEncryptedInteger other)

Subtraction.

Parameters
otheranother number
Returns
the difference of the two numbers

References bigInt, and FakeEncryptedInteger().

Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.partialDecrypt().

Here is the call graph for this function:

◆ toString()

String frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.toString ( )
See also
java.lang.Object#toString()

◆ writeExternal()

void frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.writeExternal ( ObjectOutput arg0) throws IOException
See also
java.io.Externalizable#writeExternal(java.io.ObjectOutput)

Member Data Documentation

◆ bigInt

BigInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.bigInt
private

The documentation for this class was generated from the following file: