FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity Class Reference

This class implements the plus infinity element. More...

Inheritance diagram for frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity:

Public Member Functions

 PlusInfinity ()
int intValue ()
double doubleValue ()
PlusInfinity add (final AddableBigInteger o)
AddableDelayed< AddableBigIntegeraddDelayed ()
PlusInfinity subtract (final AddableBigInteger o)
AddableBigInteger multiply (final AddableBigInteger o)
PlusInfinity divide (final AddableBigInteger o)
PlusInfinity abs ()
int compareTo (final AddableBigInteger o)
 Compares this AddableInteger with another.
boolean equals (final Object o)
int hashCode ()
Object readResolve ()
 Method to deserialize the object in such a way that the singleton property is retained.
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
void writeExternal (ObjectOutput out) throws IOException
MinInfinity flipSign ()
String toString ()
Public Member Functions inherited from frodo2.solutionSpaces.crypto.AddableBigInteger
 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.
final boolean externalize ()
AddableBigInteger fromString (String str)
AddableBigInteger fromInt (int nbr)
AddableBigInteger getMinInfinity ()
AddableBigInteger getPlusInfinity ()
AddableBigInteger getZero ()
AddableBigInteger max (AddableBigInteger o)
AddableBigInteger min (AddableBigInteger o)
boolean isPositive ()
Addable< AddableBigInteger >[] range (AddableBigInteger begin, AddableBigInteger end)
Public Member Functions inherited from frodo2.solutionSpaces.Addable< T extends Addable< T > >
add (T o)
 Adds an object to this object.
subtract (T o)
 Subtracts an object from this object.
multiply (T o)
 Multiplies an object with this object.
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 >
add (A other)
 Addition.
min (M other)
 Minimum.
max (M other)
 Maximum.
boolean externalize ()
Object readResolve ()
 Method called just after deserialization.

Static Public Attributes

static final PlusInfinity PLUS_INF = new PlusInfinity()
 The singleton PlusInfinity.

Detailed Description

This class implements the plus infinity element.

Adding or subtracting anything still results in the infinity element.

Constructor & Destructor Documentation

◆ PlusInfinity()

Warning
DO NOT USE THIS CONSTRUCTOR! Use the instance PlusInfinity.PLUS_INF

Referenced by abs(), add(), divide(), and subtract().

Member Function Documentation

◆ abs()

PlusInfinity frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.abs ( )
See also
AddableBigInteger.abs()

Reimplemented from frodo2.solutionSpaces.crypto.AddableBigInteger.

References PlusInfinity().

Here is the call graph for this function:

◆ add()

◆ addDelayed()

AddableDelayed< AddableBigInteger > frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.addDelayed ( )

◆ compareTo()

int frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.compareTo ( final AddableBigInteger o)

Compares this AddableInteger with another.

Parameters
oanother AddableInteger
Returns
0 if they are equal, a positive number if this AddableInteger is greater than the input

Reimplemented from frodo2.solutionSpaces.crypto.AddableBigInteger.

References frodo2.solutionSpaces.crypto.AddableBigInteger.AddableBigInteger(), and PLUS_INF.

Referenced by multiply().

Here is the call graph for this function:

◆ divide()

◆ doubleValue()

double frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.doubleValue ( )

◆ equals()

boolean frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.equals ( final Object o)
See also
AddableBigInteger.equals(java.lang.Object)

Reimplemented from frodo2.solutionSpaces.crypto.AddableBigInteger.

References PLUS_INF.

◆ flipSign()

MinInfinity frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.flipSign ( )

◆ hashCode()

int frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.hashCode ( )
See also
java.lang.Object#hashCode()

Reimplemented from frodo2.solutionSpaces.crypto.AddableBigInteger.

◆ intValue()

int frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.intValue ( )

◆ multiply()

◆ readExternal()

void frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.readExternal ( ObjectInput in) throws IOException, ClassNotFoundException
See also
java.io.Externalizable#readExternal(java.io.ObjectInput)

Reimplemented from frodo2.solutionSpaces.crypto.AddableBigInteger.

◆ readResolve()

Object frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.readResolve ( )

Method to deserialize the object in such a way that the singleton property is retained.

Returns
singleton object

Reimplemented from frodo2.solutionSpaces.crypto.AddableBigInteger.

References PLUS_INF.

◆ subtract()

PlusInfinity frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.subtract ( final AddableBigInteger o)

◆ toString()

String frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.toString ( )

◆ writeExternal()

void frodo2.solutionSpaces.crypto.AddableBigInteger.PlusInfinity.writeExternal ( ObjectOutput out) throws IOException
See also
java.io.Externalizable#writeExternal(java.io.ObjectOutput)

Reimplemented from frodo2.solutionSpaces.crypto.AddableBigInteger.

Member Data Documentation

◆ PLUS_INF


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