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

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

Inheritance diagram for frodo2.solutionSpaces.AddableInteger.PlusInfinity:

Public Member Functions

 PlusInfinity ()
String toString ()
PlusInfinity add (final AddableInteger o)
PlusInfinity add (int o)
 Adds an int to the value of this AddableInteger.
PlusInfinity subtract (final AddableInteger o)
PlusInfinity subtract (int o)
AddableInteger multiply (final AddableInteger o)
AddableInteger divide (final AddableInteger o)
AddableInteger abs ()
int compareTo (final AddableInteger 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.
AddableInteger flipSign ()
AddableDelayed< AddableIntegeraddDelayed ()
Public Member Functions inherited from frodo2.solutionSpaces.AddableInteger
 AddableInteger ()
 Empty constructor for creating zero, plus and minus infinity.
 AddableInteger (int integer)
void writeExternal (ObjectOutput arg0) throws IOException
void readExternal (ObjectInput arg0) throws IOException, ClassNotFoundException
final boolean externalize ()
AddableInteger fromString (final String str)
AddableInteger fromInt (int nbr)
int intValue ()
double doubleValue ()
AddableInteger min (final AddableInteger o)
 Computes the min of two AddableIntegers.
AddableInteger max (final AddableInteger o)
 Computes the max of two AddableIntegers.
AddableInteger getZero ()
AddableInteger getPlusInfinity ()
AddableInteger getMinInfinity ()
Addable< AddableInteger >[] range (AddableInteger begin, AddableInteger end)
Public Member Functions inherited from frodo2.solutionSpaces.Addable< AddableInteger >
int intValue ()
double doubleValue ()
fromString (String str)
 Parses a string to construct a new instance.
fromInt (int nbr)
 Creates an instance from an int.
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.
subtract (T o)
 Subtracts an object from this object.
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.
getZero ()
 Returns a neutral object for the addition operation ("zero").
getPlusInfinity ()
 Returns the "+infinity" object.
getMinInfinity ()
 Returns the "-infinity" object.
abs ()
divide (T o)
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.

Static Public Attributes

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

Static Private Attributes

static final long serialVersionUID = -8186521368014629929L
 Used for serialization.

Detailed Description

This class implements the plus infinity element.

Adding or subtracting anything still results in the infinity element.

Author
brammert

Constructor & Destructor Documentation

◆ PlusInfinity()

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

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

Member Function Documentation

◆ abs()

AddableInteger frodo2.solutionSpaces.AddableInteger.PlusInfinity.abs ( )
See also
AddableInteger.abs()

Reimplemented from frodo2.solutionSpaces.AddableInteger.

References frodo2.solutionSpaces.AddableInteger.AddableInteger().

Here is the call graph for this function:

◆ add() [1/2]

PlusInfinity frodo2.solutionSpaces.AddableInteger.PlusInfinity.add ( final AddableInteger o)

◆ add() [2/2]

PlusInfinity frodo2.solutionSpaces.AddableInteger.PlusInfinity.add ( int o)

Adds an int to the value of this AddableInteger.

Parameters
othe int value
Returns
the infinite value

Reimplemented from frodo2.solutionSpaces.AddableInteger.

References PLUS_INF, and PlusInfinity().

Here is the call graph for this function:

◆ addDelayed()

AddableDelayed< AddableInteger > frodo2.solutionSpaces.AddableInteger.PlusInfinity.addDelayed ( )

◆ compareTo()

int frodo2.solutionSpaces.AddableInteger.PlusInfinity.compareTo ( final AddableInteger 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.AddableInteger.

References frodo2.solutionSpaces.AddableInteger.AddableInteger(), and PLUS_INF.

Here is the call graph for this function:

◆ divide()

AddableInteger frodo2.solutionSpaces.AddableInteger.PlusInfinity.divide ( final AddableInteger o)

◆ equals()

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

Reimplemented from frodo2.solutionSpaces.AddableInteger.

References PLUS_INF.

◆ flipSign()

AddableInteger frodo2.solutionSpaces.AddableInteger.PlusInfinity.flipSign ( )

◆ hashCode()

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

Reimplemented from frodo2.solutionSpaces.AddableInteger.

◆ multiply()

◆ readResolve()

Object frodo2.solutionSpaces.AddableInteger.PlusInfinity.readResolve ( )

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

Returns
singleton object

Reimplemented from frodo2.solutionSpaces.AddableInteger.

References PLUS_INF.

◆ subtract() [1/2]

PlusInfinity frodo2.solutionSpaces.AddableInteger.PlusInfinity.subtract ( final AddableInteger o)

◆ subtract() [2/2]

PlusInfinity frodo2.solutionSpaces.AddableInteger.PlusInfinity.subtract ( int o)
See also
AddableInteger.subtract(int)

Reimplemented from frodo2.solutionSpaces.AddableInteger.

References PLUS_INF, and PlusInfinity().

Here is the call graph for this function:

◆ toString()

String frodo2.solutionSpaces.AddableInteger.PlusInfinity.toString ( )
See also
java.lang.Object#toString()

Reimplemented from frodo2.solutionSpaces.AddableInteger.

Member Data Documentation

◆ PLUS_INF

final PlusInfinity frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF = new PlusInfinity()
static

The singleton PlusInfinity.

Referenced by frodo2.solutionSpaces.AddableInteger.MinInfinity.abs(), frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.add(), frodo2.solutionSpaces.AddableInteger.add(), frodo2.solutionSpaces.AddableInteger.MinInfinity.add(), add(), add(), frodo2.solutionSpaces.AddableInteger.AddableIntegerDelayed.addDelayed(), frodo2.algorithms.adopt.test.testPreprocessing.calculateDP1(), frodo2.algorithms.adopt.test.testPreprocessing.calculateDP2(), frodo2.solutionSpaces.AddableInteger.compareTo(), compareTo(), frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.decrypt(), frodo2.solutionSpaces.crypto.ElGamalScheme.decrypt(), frodo2.algorithms.dpop.privacy.test.FakeCryptoSchemeTest.decryptInfinity(), frodo2.solutionSpaces.AddableInteger.divide(), frodo2.solutionSpaces.AddableInteger.MinInfinity.divide(), divide(), frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.encrypt(), frodo2.solutionSpaces.crypto.ElGamalScheme.encrypt(), frodo2.solutionSpaces.AddableInteger.equals(), equals(), frodo2.solutionSpaces.AddableInteger.MinInfinity.flipSign(), frodo2.solutionSpaces.AddableInteger.fromInt(), frodo2.solutionSpaces.AddableInteger.fromString(), frodo2.solutionSpaces.AddableInteger.getPlusInfinity(), frodo2.solutionSpaces.crypto.ElGamalSchemeTest.infinity(), frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.init(), frodo2.benchmarks.meetings.MeetingScheduling.main(), frodo2.solutionSpaces.crypto.ElGamalSchemeTest.min(), frodo2.algorithms.mpc_discsp.MPC_DisWCSP4< V extends Addable< V > >.MPC_DisWCSP4(), frodo2.solutionSpaces.AddableInteger.MinInfinity.multiply(), frodo2.solutionSpaces.AddableInteger.multiply(), multiply(), frodo2.solutionSpaces.AddableInteger.AddableIntegerDelayed.multiplyDelayed(), readResolve(), frodo2.solutionSpaces.AddableInteger.readResolve(), frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.recordCandidateSol(), frodo2.solutionSpaces.AddableInteger.AddableIntegerDelayed.resolve(), frodo2.algorithms.adopt.test.testADOPT.simulateUTIL(), subtract(), subtract(), frodo2.solutionSpaces.AddableInteger.subtract(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testCompose(), frodo2.solutionSpaces.hypercube.tests.HypercubeIterBestFirstTest.testMaximize(), and frodo2.solutionSpaces.hypercube.tests.HypercubeIterBestFirstTest.testMinimize().

◆ serialVersionUID

final long frodo2.solutionSpaces.AddableInteger.PlusInfinity.serialVersionUID = -8186521368014629929L
staticprivate

Used for serialization.


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