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

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

Inheritance diagram for frodo2.solutionSpaces.AddableBigDecimal.PlusInfinity:

Public Member Functions

 PlusInfinity ()
int intValue ()
double doubleValue ()
PlusInfinity add (final AddableBigDecimal o)
AddableDelayed< AddableBigDecimaladdDelayed ()
PlusInfinity subtract (final AddableBigDecimal o)
AddableBigDecimal multiply (final AddableBigDecimal o)
PlusInfinity divide (final AddableBigDecimal o)
PlusInfinity abs ()
int compareTo (final AddableBigDecimal o)
int compareTo (final AddableBigDecimal o, double error)
boolean equals (final Object o)
boolean equals (final AddableBigDecimal that, double error)
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.AddableBigDecimal
 AddableBigDecimal ()
 Empty constructor.
 AddableBigDecimal (double value)
 Constructor.
final boolean externalize ()
AddableBigDecimal fromString (String str)
AddableBigDecimal fromInt (int nbr)
AddableBigDecimal getMinInfinity ()
AddableBigDecimal getPlusInfinity ()
AddableBigDecimal getZero ()
AddableBigDecimal max (AddableBigDecimal o)
AddableBigDecimal min (AddableBigDecimal o)
Addable< AddableBigDecimal >[] range (AddableBigDecimal begin, AddableBigDecimal end)
Public Member Functions inherited from frodo2.solutionSpaces.Addable< AddableBigDecimal >
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.

Additional Inherited Members

Protected Member Functions inherited from frodo2.solutionSpaces.AddableBigDecimal
 AddableBigDecimal (BigDecimal val)
 Constructor.

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.AddableBigDecimal.PlusInfinity.abs ( )
See also
AddableBigDecimal.abs()

Reimplemented from frodo2.solutionSpaces.AddableBigDecimal.

References PlusInfinity().

Here is the call graph for this function:

◆ add()

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

◆ addDelayed()

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

◆ compareTo() [1/2]

int frodo2.solutionSpaces.AddableBigDecimal.PlusInfinity.compareTo ( final AddableBigDecimal o)

◆ compareTo() [2/2]

int frodo2.solutionSpaces.AddableBigDecimal.PlusInfinity.compareTo ( final AddableBigDecimal o,
double error )

◆ divide()

◆ doubleValue()

double frodo2.solutionSpaces.AddableBigDecimal.PlusInfinity.doubleValue ( )

◆ equals() [1/2]

boolean frodo2.solutionSpaces.AddableBigDecimal.PlusInfinity.equals ( final AddableBigDecimal that,
double error )

◆ equals() [2/2]

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

Reimplemented from frodo2.solutionSpaces.AddableBigDecimal.

References PLUS_INF.

◆ flipSign()

MinInfinity frodo2.solutionSpaces.AddableBigDecimal.PlusInfinity.flipSign ( )

◆ hashCode()

int frodo2.solutionSpaces.AddableBigDecimal.PlusInfinity.hashCode ( )

◆ intValue()

int frodo2.solutionSpaces.AddableBigDecimal.PlusInfinity.intValue ( )

◆ multiply()

◆ readExternal()

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

Reimplemented from frodo2.solutionSpaces.AddableBigDecimal.

◆ readResolve()

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

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

Returns
singleton object

Reimplemented from frodo2.solutionSpaces.AddableBigDecimal.

References PLUS_INF.

◆ subtract()

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

◆ toString()

String frodo2.solutionSpaces.AddableBigDecimal.PlusInfinity.toString ( )

◆ writeExternal()

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

Reimplemented from frodo2.solutionSpaces.AddableBigDecimal.

Member Data Documentation

◆ PLUS_INF


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