|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A convenience class used to store information about a variable. More...
Public Member Functions | |
| VariableInfo (String self) | |
| Constructor. | |
| String | toString () |
| String | decode (String codeName) |
| Decodes the input variable codename. | |
| String | encode (String variable) |
| Looks up the codename for a variable. | |
| V[] | getDomain (String var) |
| Looks up the true domain for the input variable. | |
| V[] | getEncryptDomain (String var) |
| Returns the obfuscated domain for the input variable. | |
| void | setFinalSpace (UtilitySolutionSpaceLimited< V, U, E > finalSpace) |
| Set the finalSpace received by a root. | |
| void | reset () |
| Call this method at the end of an iteration to prepare this VariableInfo for the next iteration. | |
| void | setOptimalValue (int index) |
| Set the optimal value from its index in the finalSpace. | |
| boolean | hasBeenRoot () |
| E | encrypt (U value) |
| Encrypt a value with the cryptoScheme. | |
| E | encryptCompact (U value) |
| Encrypt compactly a value with the cryptoScheme. | |
| E | reencrypt (E value) |
| Reencrypt a value with the cryptoScheme. | |
| E | minFromTo (int from, int to) |
Public Attributes | |
| String | self = null |
| The variable this info corresponds to. | |
| V | value = null |
| The optimal value for this variable or null if this variable doesn't know its value yet. | |
| List< String > | children = null |
| Children of this variable in the DFS. | |
| LinkedList< UtilitySolutionSpace< V, U > > | localSpaces = new LinkedList< UtilitySolutionSpace<V, U> > () |
| The list of spaces this variable is responsible for enforcing. | |
| UtilitySolutionSpaceLimited< V, U, E > | finalSpace |
| The received solution space by a root. | |
| int | iteration = 1 |
| The number of iterations of the algo. | |
| CryptoScheme< U, E,?> | cs |
| CryptoScheme for this variable. | |
| int | lowerB = 0 |
| Under bound value used to remember the dichotomy search of the ideal value. | |
| int | upperB |
| Upper bound value used to remember the dichotomy search of the ideal value. | |
| Map< String, String > | cns = new HashMap<String,String> () |
| Map of the codeNames of all neighbors. | |
| Map< String, String > | reversetable = new HashMap<String,String> () |
| Reverse map with the codeNames of all neighbors. | |
| Map< String, V[][]> | domain = new HashMap<String,V[][]> () |
| Map for all domains of neighbor variables received in codeNameMsg Clear text domain in position 0. | |
Private Attributes | |
| U | optUtil |
| The optimal utility for the corresponding component. | |
| boolean | root = false |
| Whether this variable is the current root. | |
A convenience class used to store information about a variable.
| frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.VariableInfo | ( | String | self | ) |
Constructor.
| self | the variable name |
| String frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.decode | ( | String | codeName | ) |
Decodes the input variable codename.
| codeName | the codename for a neighboring variable |
References reversetable.
| String frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.encode | ( | String | variable | ) |
Looks up the codename for a variable.
| variable | the variable |
References cns.
| E frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.encrypt | ( | U | value | ) |
| E frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.encryptCompact | ( | U | value | ) |
| V[] frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.getDomain | ( | String | var | ) |
Looks up the true domain for the input variable.
| var | the variable |
References domain.
| V[] frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.getEncryptDomain | ( | String | var | ) |
Returns the obfuscated domain for the input variable.
| var | the variable |
References domain.
| boolean frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.hasBeenRoot | ( | ) |
| E frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.minFromTo | ( | int | from, |
| int | to ) |
| from | the lower bound of the wanted interval |
| to | the upper bound of the wanted interval |

| E frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.reencrypt | ( | E | value | ) |
| void frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.reset | ( | ) |
Call this method at the end of an iteration to prepare this VariableInfo for the next iteration.
References iteration.
Referenced by frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.sendOutput(), and frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.sendToParent().
| void frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.setFinalSpace | ( | UtilitySolutionSpaceLimited< V, U, E > | finalSpace | ) |
Set the finalSpace received by a root.
| finalSpace | the space received by a root in a UTIL msg |
References finalSpace.
| void frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.setOptimalValue | ( | int | index | ) |
Set the optimal value from its index in the finalSpace.
| index | the index of the optimal value in the finalSpace |
| String frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.toString | ( | ) |
References value.
| List<String> frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.children = null |
Children of this variable in the DFS.
| Map<String,String> frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.cns = new HashMap<String,String> () |
Map of the codeNames of all neighbors.
Referenced by encode().
| CryptoScheme<U,E,?> frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.cs |
| Map<String,V[][]> frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.domain = new HashMap<String,V[][]> () |
Map for all domains of neighbor variables received in codeNameMsg Clear text domain in position 0.
Obfuscated domain in position 1
Referenced by getDomain(), and getEncryptDomain().
| UtilitySolutionSpaceLimited<V,U,E> frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.finalSpace |
The received solution space by a root.
Referenced by setFinalSpace().
| int frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.iteration = 1 |
The number of iterations of the algo.
Referenced by reset(), and frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.sendOutput().
| LinkedList< UtilitySolutionSpace<V, U> > frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.localSpaces = new LinkedList< UtilitySolutionSpace<V, U> > () |
The list of spaces this variable is responsible for enforcing.
Referenced by frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.record().
| int frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.lowerB = 0 |
Under bound value used to remember the dichotomy search of the ideal value.
|
private |
The optimal utility for the corresponding component.
| Map<String,String> frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.reversetable = new HashMap<String,String> () |
Reverse map with the codeNames of all neighbors.
Referenced by decode().
|
private |
Whether this variable is the current root.
| String frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.self = null |
The variable this info corresponds to.
| int frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.upperB |
Upper bound value used to remember the dichotomy search of the ideal value.
| V frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.VariableInfo.value = null |
The optimal value for this variable or null if this variable doesn't know its value yet.
Referenced by encrypt(), encryptCompact(), reencrypt(), and toString().