FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.adopt.ADOPT< Val extends Addable< Val >, U extends Addable< U > >.Version< Val extends Addable< Val >, U extends Serializable &Addable< U > > Interface Template Reference

The different versions of adopt handle some things differently. More...

Public Member Functions

void init (VariableInfo< Val, U > variable)
 This function is called when we received both the HEURISTICS_MSG_TYPE and the DFSgeneration.OUTPUT_MSG_TYPE message for the variable.
void notify (Message msg)
 Tells ADOPT how to respond to certain messages specific to this version.
Collection< MessageTypegetMsgTypes ()
 Returns a collection with messages this version is interested in.

Detailed Description

The different versions of adopt handle some things differently.

This interface defines what functions the different versions should implement.

Parameters
<Val>the type used for variable values
<U>the type used for utility values

Member Function Documentation

◆ getMsgTypes()

Collection< MessageType > frodo2.algorithms.adopt.ADOPT< Val extends Addable< Val >, U extends Addable< U > >.Version< Val extends Addable< Val >, U extends Serializable &Addable< U > >.getMsgTypes ( )

Returns a collection with messages this version is interested in.

Returns
a list of message id's

◆ init()

void frodo2.algorithms.adopt.ADOPT< Val extends Addable< Val >, U extends Addable< U > >.Version< Val extends Addable< Val >, U extends Serializable &Addable< U > >.init ( VariableInfo< Val, U > variable)

This function is called when we received both the HEURISTICS_MSG_TYPE and the DFSgeneration.OUTPUT_MSG_TYPE message for the variable.

Parameters
variablethe variable info

◆ notify()

void frodo2.algorithms.adopt.ADOPT< Val extends Addable< Val >, U extends Addable< U > >.Version< Val extends Addable< Val >, U extends Serializable &Addable< U > >.notify ( Message msg)

Tells ADOPT how to respond to certain messages specific to this version.

Parameters
msgthe message

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