|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|

Classes | |
| class | PlusInfinity |
| This class implements the plus infinity element. More... | |
| class | MinInfinity |
| This class implements the minus infinity element. More... | |
| class | AddableIntegerDelayed |
| Class used to make the addition of a large number of integers more efficient. More... | |
Public Member Functions | |
| 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 () |
| Object | readResolve () |
| AddableInteger | fromString (final String str) |
| AddableInteger | fromInt (int nbr) |
| int | intValue () |
| double | doubleValue () |
| String | toString () |
| AddableInteger | add (final AddableInteger o) |
| Adds this AddableInteger with another AddableInteger. | |
| AddableInteger | add (int o) |
| Adds an int to the value of this AddableInteger. | |
| AddableInteger | subtract (final AddableInteger o) |
| Subtracts another AddableInteger from this AddableInteger. | |
| AddableInteger | subtract (int o) |
| Subtracts an integer from this addable integer. | |
| AddableInteger | multiply (final AddableInteger o) |
| Multiplies this AddableInteger with another AddableInteger. | |
| AddableInteger | divide (final AddableInteger o) |
| AddableInteger | min (final AddableInteger o) |
| Computes the min of two AddableIntegers. | |
| AddableInteger | max (final AddableInteger o) |
| Computes the max of two AddableIntegers. | |
| AddableInteger | abs () |
| int | compareTo (final AddableInteger o) |
| Compares this AddableInteger with another. | |
| boolean | equals (final Object o) |
| int | hashCode () |
| AddableInteger | getZero () |
| AddableInteger | getPlusInfinity () |
| AddableInteger | getMinInfinity () |
| AddableInteger | flipSign () |
| Addable< AddableInteger >[] | range (AddableInteger begin, AddableInteger end) |
| AddableDelayed< AddableInteger > | addDelayed () |
| 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. | |
Private Member Functions | |
| boolean | warnTruncation (String str) |
| Warns for truncation. | |
Private Attributes | |
| int | integer |
| The value. | |
| frodo2.solutionSpaces.AddableInteger.AddableInteger | ( | ) |
Empty constructor for creating zero, plus and minus infinity.
References integer.
Referenced by abs(), frodo2.solutionSpaces.AddableInteger.MinInfinity.abs(), frodo2.solutionSpaces.AddableInteger.PlusInfinity.abs(), add(), add(), frodo2.solutionSpaces.AddableInteger.MinInfinity.add(), frodo2.solutionSpaces.AddableInteger.PlusInfinity.add(), frodo2.solutionSpaces.AddableInteger.AddableIntegerDelayed.addDelayed(), compareTo(), frodo2.solutionSpaces.AddableInteger.MinInfinity.compareTo(), frodo2.solutionSpaces.AddableInteger.PlusInfinity.compareTo(), divide(), frodo2.solutionSpaces.AddableInteger.MinInfinity.divide(), frodo2.solutionSpaces.AddableInteger.PlusInfinity.divide(), equals(), flipSign(), frodo2.solutionSpaces.AddableInteger.MinInfinity.flipSign(), frodo2.solutionSpaces.AddableInteger.PlusInfinity.flipSign(), fromInt(), fromString(), getMinInfinity(), getPlusInfinity(), getZero(), max(), min(), frodo2.solutionSpaces.AddableInteger.MinInfinity.multiply(), multiply(), frodo2.solutionSpaces.AddableInteger.PlusInfinity.multiply(), frodo2.solutionSpaces.AddableInteger.AddableIntegerDelayed.multiplyDelayed(), range(), frodo2.solutionSpaces.AddableInteger.AddableIntegerDelayed.resolve(), frodo2.solutionSpaces.AddableInteger.MinInfinity.subtract(), frodo2.solutionSpaces.AddableInteger.PlusInfinity.subtract(), subtract(), and subtract().
| frodo2.solutionSpaces.AddableInteger.AddableInteger | ( | int | integer | ) |
| integer | the integer value |
References integer.
| AddableInteger frodo2.solutionSpaces.AddableInteger.abs | ( | ) |
Reimplemented in frodo2.solutionSpaces.AddableInteger.MinInfinity, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.
References AddableInteger(), and integer.
Referenced by frodo2.algorithms.maxsum.tests.MaxSumTests< V extends Addable< V >, U extends Addable< U > >.test().

| AddableInteger frodo2.solutionSpaces.AddableInteger.add | ( | final AddableInteger | o | ) |
Adds this AddableInteger with another AddableInteger.
| o | the AddableInteger to be added |
Reimplemented in frodo2.solutionSpaces.AddableInteger.MinInfinity, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.
References AddableInteger(), integer, frodo2.solutionSpaces.AddableInteger.MinInfinity.MIN_INF, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.
Referenced by frodo2.solutionSpaces.crypto.ElGamalSchemeTest.add(), frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.checkOutput(), frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.project(), frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.recordCandidateSol(), frodo2.algorithms.mpc_discsp.MPC_DisWCSP4< V extends Addable< V > >.recordCandidateSol(), frodo2.algorithms.adopt.test.testADOPT.test(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testApplySliceRandom(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testCompose(), and frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testSliceRandom().

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

| AddableDelayed< AddableInteger > frodo2.solutionSpaces.AddableInteger.addDelayed | ( | ) |
Reimplemented in frodo2.solutionSpaces.AddableInteger.MinInfinity, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.
| int frodo2.solutionSpaces.AddableInteger.compareTo | ( | final AddableInteger | o | ) |
Compares this AddableInteger with another.
| o | another AddableInteger |
Reimplemented in frodo2.solutionSpaces.AddableInteger.MinInfinity, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.
References AddableInteger(), integer, frodo2.solutionSpaces.AddableInteger.MinInfinity.MIN_INF, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.
Referenced by frodo2.solutionSpaces.crypto.ElGamalSchemeTest.add(), max(), min(), frodo2.solutionSpaces.crypto.ElGamalSchemeTest.min(), frodo2.solutionSpaces.hypercube.tests.HypercubeIterBestFirstTest.testMaximize(), frodo2.solutionSpaces.hypercube.tests.HypercubeIterBestFirstTest.testMinimize(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testProjectAllRandom(), and frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testSplittingRandom().

| AddableInteger frodo2.solutionSpaces.AddableInteger.divide | ( | final AddableInteger | o | ) |
| o | the integer to divide with |
Reimplemented in frodo2.solutionSpaces.AddableInteger.MinInfinity, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.
References AddableInteger(), integer, frodo2.solutionSpaces.AddableInteger.MinInfinity.MIN_INF, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.

| double frodo2.solutionSpaces.AddableInteger.doubleValue | ( | ) |
| boolean frodo2.solutionSpaces.AddableInteger.equals | ( | final Object | o | ) |
Reimplemented in frodo2.solutionSpaces.AddableInteger.MinInfinity, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.
References AddableInteger(), integer, frodo2.solutionSpaces.AddableInteger.MinInfinity.MIN_INF, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.
Referenced by frodo2.solutionSpaces.crypto.ElGamalSchemeTest.add(), frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.checkOutput(), frodo2.algorithms.dpop.privacy.test.FakeCryptoSchemeTest.decrypt(), frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.encrypt(), frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.getUtility(), frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.getUtility(), frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIter< U extends Addable< U > >.JaCoPutilSpaceIter(), frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.join(), frodo2.solutionSpaces.crypto.ElGamalSchemeTest.min(), frodo2.solutionSpaces.crypto.ElGamalSchemeTest.partialEncrypt(), frodo2.solutionSpaces.crypto.ElGamalSchemeTest.randomDecrypt(), frodo2.solutionSpaces.crypto.ElGamalSchemeTest.randomDecryptOnce(), frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.recordCandidateSol(), frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.slice(), frodo2.algorithms.maxsum.tests.MaxSumTests< V extends Addable< V >, U extends Addable< U > >.test(), frodo2.solutionSpaces.hypercube.tests.HypercubeIterBestFirstTest.testMaximize(), frodo2.solutionSpaces.hypercube.tests.HypercubeIterBestFirstTest.testMinimize(), frodo2.algorithms.dpop.count.test.TestCountSolutions.testRandom(), and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.VRPiterator.VRPiterator().

| final boolean frodo2.solutionSpaces.AddableInteger.externalize | ( | ) |
| AddableInteger frodo2.solutionSpaces.AddableInteger.flipSign | ( | ) |
Reimplemented in frodo2.solutionSpaces.AddableInteger.MinInfinity, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.
References AddableInteger(), and integer.

| AddableInteger frodo2.solutionSpaces.AddableInteger.fromInt | ( | int | nbr | ) |
References AddableInteger(), frodo2.solutionSpaces.AddableInteger.MinInfinity.MIN_INF, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.
Referenced by frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.project().

| AddableInteger frodo2.solutionSpaces.AddableInteger.fromString | ( | final String | str | ) |
References AddableInteger(), frodo2.solutionSpaces.AddableInteger.MinInfinity.MIN_INF, frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF, and warnTruncation().
Referenced by frodo2.benchmarks.meetings.MeetingScheduling.main(), and frodo2.algorithms.test.XCSPparserTest.testGetDomain().

| AddableInteger frodo2.solutionSpaces.AddableInteger.getMinInfinity | ( | ) |
References AddableInteger(), and frodo2.solutionSpaces.AddableInteger.MinInfinity.MIN_INF.

| AddableInteger frodo2.solutionSpaces.AddableInteger.getPlusInfinity | ( | ) |
References AddableInteger(), and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.
Referenced by frodo2.algorithms.maxsum.tests.MaxSumTests< V extends Addable< V >, U extends Addable< U > >.test().

| AddableInteger frodo2.solutionSpaces.AddableInteger.getZero | ( | ) |
References AddableInteger().
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.readExternal().

| int frodo2.solutionSpaces.AddableInteger.hashCode | ( | ) |
Reimplemented in frodo2.solutionSpaces.AddableInteger.MinInfinity, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.
References integer.
| int frodo2.solutionSpaces.AddableInteger.intValue | ( | ) |
References integer.
Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.add(), frodo2.solutionSpaces.crypto.ElGamalBigInteger.add(), frodo2.solutionSpaces.crypto.ElGamalBigInteger.ElGamalBigInteger(), frodo2.solutionSpaces.crypto.ElGamalScheme.encrypt(), frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getUtility(), frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getUtility(), frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.getUtility(), frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.getUtility(), frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.ground(), frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.readExternal(), frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.recordCandidateSol(), frodo2.algorithms.mpc_discsp.MPC_DisWCSP4< V extends Addable< V > >.recordCandidateSol(), frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.slice(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testSplittingRandom(), and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.VRPiterator.VRPiterator().
| AddableInteger frodo2.solutionSpaces.AddableInteger.max | ( | final AddableInteger | o | ) |
Computes the max of two AddableIntegers.
| o | the AddableInteger to compare to |
References AddableInteger(), and compareTo().

| AddableInteger frodo2.solutionSpaces.AddableInteger.min | ( | final AddableInteger | o | ) |
Computes the min of two AddableIntegers.
| o | the AddableInteger to compare to |
References AddableInteger(), and compareTo().
Referenced by frodo2.algorithms.mpc_discsp.MPC_DisWCSP4< V extends Addable< V > >.recordCandidateSol().

| AddableInteger frodo2.solutionSpaces.AddableInteger.multiply | ( | final AddableInteger | o | ) |
Multiplies this AddableInteger with another AddableInteger.
| o | the AddableInteger to be multiplied with |
Reimplemented in frodo2.solutionSpaces.AddableInteger.MinInfinity, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.
References AddableInteger(), integer, frodo2.solutionSpaces.AddableInteger.MinInfinity.MIN_INF, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.
Referenced by frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.test().

| Addable< AddableInteger >[] frodo2.solutionSpaces.AddableInteger.range | ( | AddableInteger | begin, |
| AddableInteger | end ) |
References AddableInteger(), integer, and range().
Referenced by range().

| void frodo2.solutionSpaces.AddableInteger.readExternal | ( | ObjectInput | arg0 | ) | throws IOException, ClassNotFoundException |
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.readExternal().
| Object frodo2.solutionSpaces.AddableInteger.readResolve | ( | ) |
Reimplemented in frodo2.solutionSpaces.AddableInteger.MinInfinity, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.
References frodo2.solutionSpaces.AddableInteger.MinInfinity.MIN_INF, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.readExternal().
| AddableInteger frodo2.solutionSpaces.AddableInteger.subtract | ( | final AddableInteger | o | ) |
Subtracts another AddableInteger from this AddableInteger.
| o | the other AddableInteger |
Reimplemented in frodo2.solutionSpaces.AddableInteger.MinInfinity, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.
References AddableInteger(), integer, frodo2.solutionSpaces.AddableInteger.MinInfinity.MIN_INF, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF.

| AddableInteger frodo2.solutionSpaces.AddableInteger.subtract | ( | int | o | ) |
Subtracts an integer from this addable integer.
| o | the integer to subtract |
Reimplemented in frodo2.solutionSpaces.AddableInteger.MinInfinity, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.
References AddableInteger(), and integer.

| String frodo2.solutionSpaces.AddableInteger.toString | ( | ) |
Reimplemented in frodo2.solutionSpaces.AddableInteger.MinInfinity, and frodo2.solutionSpaces.AddableInteger.PlusInfinity.
Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoSchemeTest.decrypt(), frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.encrypt(), frodo2.solutionSpaces.crypto.ElGamalSchemeTest.randomDecrypt(), and frodo2.benchmarks.meetings.MeetingScheduling.toXCSP().
|
private |
| void frodo2.solutionSpaces.AddableInteger.writeExternal | ( | ObjectOutput | arg0 | ) | throws IOException |
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.writeExternal().
|
private |
The value.
Referenced by abs(), add(), add(), AddableInteger(), AddableInteger(), frodo2.solutionSpaces.AddableInteger.AddableIntegerDelayed.addDelayed(), compareTo(), divide(), equals(), flipSign(), hashCode(), intValue(), frodo2.solutionSpaces.AddableInteger.MinInfinity.multiply(), multiply(), frodo2.solutionSpaces.AddableInteger.PlusInfinity.multiply(), frodo2.solutionSpaces.AddableInteger.AddableIntegerDelayed.multiplyDelayed(), range(), subtract(), and subtract().