|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
This class implements the minus infinity element. More...

Public Member Functions | |
| MinInfinity () | |
| String | toString () |
| MinInfinity | add (final AddableInteger o) |
| MinInfinity | add (int o) |
| Adds an int to the value of this AddableInteger. | |
| MinInfinity | subtract (final AddableInteger o) |
| MinInfinity | 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< AddableInteger > | addDelayed () |
| 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 () |
| T | fromString (String str) |
| Parses a string to construct a new instance. | |
| T | fromInt (int nbr) |
| Creates an instance from an int. | |
| T | 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. | |
| T | subtract (T o) |
| Subtracts an object from this object. | |
| T | 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. | |
| T | getZero () |
| Returns a neutral object for the addition operation ("zero"). | |
| T | getPlusInfinity () |
| Returns the "+infinity" object. | |
| T | getMinInfinity () |
| Returns the "-infinity" object. | |
| T | abs () |
| T | divide (T o) |
| T | 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 MinInfinity | MIN_INF = new MinInfinity() |
| The singleton MinInfinity. | |
Static Private Attributes | |
| static final long | serialVersionUID = -8186521368014629929L |
| Used for serialization. | |
This class implements the minus infinity element.
Adding or subtracting anything still results in the infinity element.
Referenced by add(), add(), subtract(), and subtract().
| AddableInteger frodo2.solutionSpaces.AddableInteger.MinInfinity.abs | ( | ) |
Reimplemented from frodo2.solutionSpaces.AddableInteger.
References frodo2.solutionSpaces.AddableInteger.AddableInteger(), and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.

| MinInfinity frodo2.solutionSpaces.AddableInteger.MinInfinity.add | ( | final AddableInteger | o | ) |
Reimplemented from frodo2.solutionSpaces.AddableInteger.
References frodo2.solutionSpaces.AddableInteger.AddableInteger(), MIN_INF, MinInfinity(), and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.

| MinInfinity frodo2.solutionSpaces.AddableInteger.MinInfinity.add | ( | int | o | ) |
Adds an int to the value of this AddableInteger.
| o | the int value |
Reimplemented from frodo2.solutionSpaces.AddableInteger.
References MIN_INF, and MinInfinity().

| AddableDelayed< AddableInteger > frodo2.solutionSpaces.AddableInteger.MinInfinity.addDelayed | ( | ) |
Reimplemented from frodo2.solutionSpaces.AddableInteger.
| int frodo2.solutionSpaces.AddableInteger.MinInfinity.compareTo | ( | final AddableInteger | o | ) |
Compares this AddableInteger with another.
| o | another AddableInteger |
Reimplemented from frodo2.solutionSpaces.AddableInteger.
References frodo2.solutionSpaces.AddableInteger.AddableInteger(), and MIN_INF.

| AddableInteger frodo2.solutionSpaces.AddableInteger.MinInfinity.divide | ( | final AddableInteger | o | ) |
Reimplemented from frodo2.solutionSpaces.AddableInteger.
References frodo2.solutionSpaces.AddableInteger.AddableInteger(), MIN_INF, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.

| boolean frodo2.solutionSpaces.AddableInteger.MinInfinity.equals | ( | final Object | o | ) |
Reimplemented from frodo2.solutionSpaces.AddableInteger.
References MIN_INF.
| AddableInteger frodo2.solutionSpaces.AddableInteger.MinInfinity.flipSign | ( | ) |
Reimplemented from frodo2.solutionSpaces.AddableInteger.
References frodo2.solutionSpaces.AddableInteger.AddableInteger(), and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.

| int frodo2.solutionSpaces.AddableInteger.MinInfinity.hashCode | ( | ) |
Reimplemented from frodo2.solutionSpaces.AddableInteger.
| AddableInteger frodo2.solutionSpaces.AddableInteger.MinInfinity.multiply | ( | final AddableInteger | o | ) |
Reimplemented from frodo2.solutionSpaces.AddableInteger.
References frodo2.solutionSpaces.AddableInteger.AddableInteger(), frodo2.solutionSpaces.AddableInteger.integer, MIN_INF, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.

| Object frodo2.solutionSpaces.AddableInteger.MinInfinity.readResolve | ( | ) |
Method to deserialize the object in such a way that the singleton property is retained.
Reimplemented from frodo2.solutionSpaces.AddableInteger.
References MIN_INF.
| MinInfinity frodo2.solutionSpaces.AddableInteger.MinInfinity.subtract | ( | final AddableInteger | o | ) |
Reimplemented from frodo2.solutionSpaces.AddableInteger.
References frodo2.solutionSpaces.AddableInteger.AddableInteger(), MIN_INF, and MinInfinity().

| MinInfinity frodo2.solutionSpaces.AddableInteger.MinInfinity.subtract | ( | int | o | ) |
Reimplemented from frodo2.solutionSpaces.AddableInteger.
References MIN_INF, and MinInfinity().

| String frodo2.solutionSpaces.AddableInteger.MinInfinity.toString | ( | ) |
Reimplemented from frodo2.solutionSpaces.AddableInteger.
|
static |
The singleton MinInfinity.
Referenced by frodo2.solutionSpaces.AddableInteger.add(), add(), add(), frodo2.solutionSpaces.AddableInteger.PlusInfinity.add(), frodo2.solutionSpaces.AddableInteger.AddableIntegerDelayed.addDelayed(), frodo2.solutionSpaces.AddableInteger.compareTo(), compareTo(), frodo2.solutionSpaces.AddableInteger.divide(), divide(), frodo2.solutionSpaces.AddableInteger.PlusInfinity.divide(), frodo2.solutionSpaces.AddableInteger.equals(), equals(), frodo2.solutionSpaces.AddableInteger.PlusInfinity.flipSign(), frodo2.solutionSpaces.AddableInteger.fromInt(), frodo2.solutionSpaces.AddableInteger.fromString(), frodo2.solutionSpaces.AddableInteger.getMinInfinity(), multiply(), frodo2.solutionSpaces.AddableInteger.multiply(), frodo2.solutionSpaces.AddableInteger.PlusInfinity.multiply(), frodo2.solutionSpaces.AddableInteger.AddableIntegerDelayed.multiplyDelayed(), readResolve(), frodo2.solutionSpaces.AddableInteger.readResolve(), frodo2.solutionSpaces.AddableInteger.AddableIntegerDelayed.resolve(), 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().
|
staticprivate |
Used for serialization.