FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.afb.PA< V extends Addable< V >, U extends Addable< U > > Class Template Reference

Class holding a partial assignment for AFB. More...

Inheritance diagram for frodo2.algorithms.afb.PA< V extends Addable< V >, U extends Addable< U > >:

Public Member Functions

 PA (int nbClusters, @SuppressWarnings("rawtypes") Class classOfV, @SuppressWarnings("rawtypes") Class classOfU, U zero)
 PA ()
 Empty constructor used for externalization.
PA< V, U > clone ()
String toString ()
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
void writeExternal (ObjectOutput out) throws IOException

Package Attributes

V[][] assignments
 current assignments
c
 total cost given the assignments up to and including index.
zero
 The zero utility.
int index
 position in the assignments vector of the last assignment

Private Attributes

Class classOfV
 Class of the type used for variable values.
Class classOfU
 Class of the type used for variable values.

Detailed Description

Class holding a partial assignment for AFB.

Parameters
<V>the type used for variable values
<U>the type used for utility values
Author
Alexandra Olteanu, Thomas Leaute

Constructor & Destructor Documentation

◆ PA() [1/2]

frodo2.algorithms.afb.PA< V extends Addable< V >, U extends Addable< U > >.PA ( int nbClusters,
@SuppressWarnings("rawtypes") Class classOfV,
@SuppressWarnings("rawtypes") Class classOfU,
U zero )
Parameters
nbClustersThe number of clusters in the component.
classOfVClass of the type used for variable values
classOfUClass of the type used for variable values
zeroThe zero value for type U.

References classOfU, classOfV, PA(), and zero.

Referenced by clone(), and PA().

Here is the call graph for this function:

◆ PA() [2/2]

frodo2.algorithms.afb.PA< V extends Addable< V >, U extends Addable< U > >.PA ( )

Empty constructor used for externalization.

Member Function Documentation

◆ clone()

◆ readExternal()

void frodo2.algorithms.afb.PA< V extends Addable< V >, U extends Addable< U > >.readExternal ( ObjectInput in) throws IOException, ClassNotFoundException
See also
Externalizable#readExternal(java.io.ObjectInput)

References c, and readExternal().

Referenced by frodo2.algorithms.afb.AFBBaseMsg< V extends Addable< V >, U extends Addable< U > >.readExternal(), and readExternal().

Here is the call graph for this function:

◆ toString()

◆ writeExternal()

void frodo2.algorithms.afb.PA< V extends Addable< V >, U extends Addable< U > >.writeExternal ( ObjectOutput out) throws IOException
See also
Externalizable#writeExternal(java.io.ObjectOutput)

Referenced by frodo2.algorithms.afb.AFBBaseMsg< V extends Addable< V >, U extends Addable< U > >.writeExternal().

Member Data Documentation

◆ assignments

◆ c

◆ classOfU

Class frodo2.algorithms.afb.PA< V extends Addable< V >, U extends Addable< U > >.classOfU
private

Class of the type used for variable values.

Referenced by clone(), and PA().

◆ classOfV

Class frodo2.algorithms.afb.PA< V extends Addable< V >, U extends Addable< U > >.classOfV
private

Class of the type used for variable values.

Todo
Remove this field if it is no longer necessary.

Referenced by clone(), and PA().

◆ index

int frodo2.algorithms.afb.PA< V extends Addable< V >, U extends Addable< U > >.index
package

position in the assignments vector of the last assignment

◆ zero

U frodo2.algorithms.afb.PA< V extends Addable< V >, U extends Addable< U > >.zero
package

The zero utility.

Referenced by PA().


The documentation for this class was generated from the following file:
  • src/frodo2/algorithms/afb/PA.java