FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo Class Reference

Convenient class to store information about a variable of this agent. More...

Public Member Functions

String toString ()
 VariableInfo (String self)
 Constructor.
void createVector (final int order, final int declaredOrder, final int size)
 Create the vector of this variable.
remove ()
void shuffle (ArrayList< E > vector)
 Shuffles the input vector.
void encryptVector (ArrayList< E > vector)
 Encrypts a vector already encrypted.

Public Attributes

String self
 My name.
String codeName
 My codeName.
int order
 Order of this variable.
int declaredOrder
 The order for this variable that it declared to the next variable.
Boolean root = null
 If this variable is a new root.
boolean waitCrypto = false
 If a reroot request is received and this variable hasn't received its CryptoScheme.
int total = -1
 Believed total number of variables in this component.
int[] permutation
 A random permutation used to shuffle the vectors.
boolean hasBeenRoot = false
 Has this variable already been root ?
CryptoScheme< C, E,?> cs
 CryptoScheme used to encrypt vectors.
ArrayList< VectorMsg< C, E > > waitingVector
 Pending VectorMsgs waiting for the cryptoscheme to be received.
ArrayList< E > vector
 The vector of this variable.

Private Attributes

Message pendingDone
 A Done message waiting to be forwarded until I know I am not the new root.

Detailed Description

Convenient class to store information about a variable of this agent.

Constructor & Destructor Documentation

◆ VariableInfo()

frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.VariableInfo ( String self)

Constructor.

Parameters
selfthe variable

Member Function Documentation

◆ createVector()

void frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.createVector ( final int order,
final int declaredOrder,
final int size )

◆ encryptVector()

void frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.encryptVector ( ArrayList< E > vector)

Encrypts a vector already encrypted.

Parameters
vectorThe vector to re-encrypt

References cs, and vector.

◆ remove()

E frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.remove ( )
Returns
remove and return the head element of this variable's vector

References vector.

Referenced by frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.processVectorMsg().

◆ shuffle()

void frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.shuffle ( ArrayList< E > vector)

Shuffles the input vector.

Parameters
vectorthe vector to shuffle

References vector.

Referenced by frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.processVectorMsg().

◆ toString()

String frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.toString ( )
See also
java.lang.Object#toString()

Member Data Documentation

◆ codeName

◆ cs

◆ declaredOrder

int frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.declaredOrder

◆ hasBeenRoot

boolean frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.hasBeenRoot = false

Has this variable already been root ?

◆ order

◆ pendingDone

Message frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.pendingDone
private

A Done message waiting to be forwarded until I know I am not the new root.

◆ permutation

int [] frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.permutation

A random permutation used to shuffle the vectors.

◆ root

Boolean frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.root = null

If this variable is a new root.

◆ self

◆ total

int frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.total = -1

Believed total number of variables in this component.

◆ vector

ArrayList<E> frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.vector

The vector of this variable.

Referenced by encryptVector(), remove(), and shuffle().

◆ waitCrypto

boolean frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.waitCrypto = false

If a reroot request is received and this variable hasn't received its CryptoScheme.

◆ waitingVector

ArrayList<VectorMsg<C,E> > frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.VariableInfo.waitingVector

Pending VectorMsgs waiting for the cryptoscheme to be received.


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