FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.benchmarks.party.PartyGame.PartyInstance Class Reference

An instance of a party game. More...

Public Member Functions

 PartyInstance (Graph graph, TreeMap< String, Double > privateCosts, TreeMap< String, TreeMap< String, Double > > likes)
 Constructor.
String toString ()

Public Attributes

TreeMap< String, Double > privateCosts
 Each player's private cost incurred by attending the party.
TreeMap< String, TreeMap< String, Double > > likes
 For each player, for each neighbor, the player's cost if they both attend the party.

Private Attributes

final String instanceName
 Name of the problem instance.
final Graph graph
 The underlying party graph.

Detailed Description

An instance of a party game.

Constructor & Destructor Documentation

◆ PartyInstance()

frodo2.benchmarks.party.PartyGame.PartyInstance.PartyInstance ( Graph graph,
TreeMap< String, Double > privateCosts,
TreeMap< String, TreeMap< String, Double > > likes )

Constructor.

Parameters
graphThe underlying party graph
privateCostsEach player's private cost incurred by attending the party
likesFor each player, for each neighbor, the player's cost if they both attend the party

References graph, likes, and privateCosts.

Member Function Documentation

◆ toString()

String frodo2.benchmarks.party.PartyGame.PartyInstance.toString ( )
See also
java.lang.Object#toString()

Member Data Documentation

◆ graph

final Graph frodo2.benchmarks.party.PartyGame.PartyInstance.graph
private

The underlying party graph.

Referenced by PartyInstance().

◆ instanceName

final String frodo2.benchmarks.party.PartyGame.PartyInstance.instanceName
private

Name of the problem instance.

◆ likes

TreeMap< String, TreeMap<String, Double> > frodo2.benchmarks.party.PartyGame.PartyInstance.likes

For each player, for each neighbor, the player's cost if they both attend the party.

Referenced by PartyInstance().

◆ privateCosts

TreeMap<String, Double> frodo2.benchmarks.party.PartyGame.PartyInstance.privateCosts

Each player's private cost incurred by attending the party.

Referenced by PartyInstance().


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