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

A variable node in a factor graph. More...

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

Public Member Functions

 VariableNode (String varName, String agent, V[] dom)
 Constructor.
String toString ()
void addFunction (FunctionNode< V, U > function)
 Adds a function in which this variable is involved.
String getVarName ()
V[] getDom ()
ArrayList< FunctionNode< V, U > > getFunctions ()
String getAgent ()

Protected Attributes

final String varName
 The name of this variable.
final V[] dom
 The domain of the variable.

Private Attributes

final String agent
 The agent that controls this variable node.
final ArrayList< FunctionNode< V, U > > functions = new ArrayList< FunctionNode<V, U> > ()
 The functions this variable is involved in.

Detailed Description

A variable node in a factor graph.

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

Constructor & Destructor Documentation

◆ VariableNode()

frodo2.algorithms.varOrdering.factorgraph.VariableNode< V extends Addable< V >, U extends Addable< U > >.VariableNode ( String varName,
String agent,
V[] dom )

Constructor.

Parameters
varNamethe variable name
agentthe agent controlling this variable node
domthe variable domain

References agent, dom, and varName.

Member Function Documentation

◆ addFunction()

◆ getAgent()

String frodo2.algorithms.varOrdering.factorgraph.VariableNode< V extends Addable< V >, U extends Addable< U > >.getAgent ( )
Returns
the agent controlling this variable node

References agent.

Referenced by frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn().

◆ getDom()

V[] frodo2.algorithms.varOrdering.factorgraph.VariableNode< V extends Addable< V >, U extends Addable< U > >.getDom ( )
Returns
The domain of the variable

References dom.

Referenced by frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn().

◆ getFunctions()

ArrayList< FunctionNode< V, U > > frodo2.algorithms.varOrdering.factorgraph.VariableNode< V extends Addable< V >, U extends Addable< U > >.getFunctions ( )
Returns
The functions this variable is involved in

References functions.

Referenced by frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn().

◆ getVarName()

String frodo2.algorithms.varOrdering.factorgraph.VariableNode< V extends Addable< V >, U extends Addable< U > >.getVarName ( )

◆ toString()

String frodo2.algorithms.varOrdering.factorgraph.VariableNode< V extends Addable< V >, U extends Addable< U > >.toString ( )
See also
java.lang.Object#toString()

Member Data Documentation

◆ agent

final String frodo2.algorithms.varOrdering.factorgraph.VariableNode< V extends Addable< V >, U extends Addable< U > >.agent
private

◆ dom

◆ functions

final ArrayList< FunctionNode<V, U> > frodo2.algorithms.varOrdering.factorgraph.VariableNode< V extends Addable< V >, U extends Addable< U > >.functions = new ArrayList< FunctionNode<V, U> > ()
private

◆ varName


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