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

A factor graph generator. More...

Inheritance diagram for frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >:

Public Member Functions

 FactorGraphGen (DCOPProblemInterface< V, U > problem, Element params)
 Constructor.
 FactorGraphGen (Element params, DCOPProblemInterface< V, U > problem)
 Constructor in stats gatherer mode.
void notifyIn (Message msg)
void setQueue (Queue queue)
Collection< MessageTypegetMsgTypes ()
void getStatsFromQueue (Queue queue)
void setSilent (boolean silent)
void reset ()
Public Member Functions inherited from frodo2.communication.IncomingMsgPolicyInterface< T >
default void notifyIn (Message msg, Object toAgent)
 Notifies the listener of an incoming message.

Static Public Attributes

static final MessageType OUTPUT_MSG_TYPE = new MessageType ("VarOrdering", "FactorGraphGen", "FactorGraph")
 The type of the output message.

Private Member Functions

String factorGraphToDOT (final boolean addUnaryConstraints)

Private Attributes

DCOPProblemInterface< V, U > problem
 The problem.
Queue queue
 This agent's queue.
final boolean compile
 Whether the agent must compile all its function nodes into one.
final double maxPerturb
 The maximum amplitude of the perturbation unary constraints.
final String VAR_PREFIX = "var_"
 The prefix appended to variable node names to avoid name clashes with function node names.
final String FUNC_PREFIX = "func_"
 The prefix appended to function node names to avoid name clashes with variable node names.

Detailed Description

A factor graph generator.

Author
Thomas Leaute
Parameters
<V>the type used for variable values
<U>the type used for utility values in stats gatherer mode

Constructor & Destructor Documentation

◆ FactorGraphGen() [1/2]

frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.FactorGraphGen ( DCOPProblemInterface< V, U > problem,
Element params )

Constructor.

Parameters
problemthis agent's problem
paramsthe parameters for this module

References problem.

◆ FactorGraphGen() [2/2]

frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.FactorGraphGen ( Element params,
DCOPProblemInterface< V, U > problem )

Constructor in stats gatherer mode.

Parameters
paramsthe parameters
problemthe overall problem

References factorGraphToDOT(), and problem.

Here is the call graph for this function:

Member Function Documentation

◆ factorGraphToDOT()

◆ getMsgTypes()

◆ getStatsFromQueue()

void frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.getStatsFromQueue ( Queue queue)

◆ notifyIn()

◆ reset()

◆ setQueue()

◆ setSilent()

void frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.setSilent ( boolean silent)

Member Data Documentation

◆ compile

final boolean frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.compile
private

Whether the agent must compile all its function nodes into one.

◆ FUNC_PREFIX

final String frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.FUNC_PREFIX = "func_"
private

The prefix appended to function node names to avoid name clashes with variable node names.

Referenced by factorGraphToDOT().

◆ maxPerturb

final double frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.maxPerturb
private

The maximum amplitude of the perturbation unary constraints.

◆ OUTPUT_MSG_TYPE

◆ problem

DCOPProblemInterface<V, U> frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.problem
private

The problem.

Referenced by FactorGraphGen(), and FactorGraphGen().

◆ queue

Queue frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.queue
private

This agent's queue.

Referenced by getStatsFromQueue(), and setQueue().

◆ VAR_PREFIX

final String frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.VAR_PREFIX = "var_"
private

The prefix appended to variable node names to avoid name clashes with function node names.

Referenced by factorGraphToDOT().


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