FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.heuristics.ScorePair< S1 extends Comparable< S1 > &Serializable, S2 extends Comparable< S2 > &Serializable > Class Template Reference

A pair of scores, the second being used for tiebreaking. More...

Inheritance diagram for frodo2.algorithms.heuristics.ScorePair< S1 extends Comparable< S1 > &Serializable, S2 extends Comparable< S2 > &Serializable >:

Public Member Functions

 ScorePair (S1 score1, S2 score2)
 Constructor.
int compareTo (ScorePair< S1, S2 > other)
boolean equals (Object object)
int hashCode ()
String toString ()

Private Attributes

S1 score1
 The first score.
S2 score2
 The tiebreaking score.

Static Private Attributes

static final long serialVersionUID = -1626612391889900606L
 Used for serialization.

Detailed Description

A pair of scores, the second being used for tiebreaking.

Parameters
<S1>the type used for the first score
<S2>the type used for the tiebreaking score

Constructor & Destructor Documentation

◆ ScorePair()

frodo2.algorithms.heuristics.ScorePair< S1 extends Comparable< S1 > &Serializable, S2 extends Comparable< S2 > &Serializable >.ScorePair ( S1 score1,
S2 score2 )

Constructor.

Parameters
score1the first score
score2the tiebreaking score

References score1, and score2.

Referenced by compareTo(), and equals().

Member Function Documentation

◆ compareTo()

int frodo2.algorithms.heuristics.ScorePair< S1 extends Comparable< S1 > &Serializable, S2 extends Comparable< S2 > &Serializable >.compareTo ( ScorePair< S1, S2 > other)
See also
java.lang.Comparable#compareTo(java.lang.Object)

References score1, score2, and ScorePair().

Here is the call graph for this function:

◆ equals()

boolean frodo2.algorithms.heuristics.ScorePair< S1 extends Comparable< S1 > &Serializable, S2 extends Comparable< S2 > &Serializable >.equals ( Object object)
See also
java.lang.Object#equals(java.lang.Object)

References score1, score2, and ScorePair().

Here is the call graph for this function:

◆ hashCode()

int frodo2.algorithms.heuristics.ScorePair< S1 extends Comparable< S1 > &Serializable, S2 extends Comparable< S2 > &Serializable >.hashCode ( )
See also
java.lang.Object#hashCode()

◆ toString()

String frodo2.algorithms.heuristics.ScorePair< S1 extends Comparable< S1 > &Serializable, S2 extends Comparable< S2 > &Serializable >.toString ( )
See also
java.lang.Object#toString()

Member Data Documentation

◆ score1

S1 frodo2.algorithms.heuristics.ScorePair< S1 extends Comparable< S1 > &Serializable, S2 extends Comparable< S2 > &Serializable >.score1
private

The first score.

Referenced by compareTo(), equals(), and ScorePair().

◆ score2

S2 frodo2.algorithms.heuristics.ScorePair< S1 extends Comparable< S1 > &Serializable, S2 extends Comparable< S2 > &Serializable >.score2
private

The tiebreaking score.

Referenced by compareTo(), equals(), and ScorePair().

◆ serialVersionUID

final long frodo2.algorithms.heuristics.ScorePair< S1 extends Comparable< S1 > &Serializable, S2 extends Comparable< S2 > &Serializable >.serialVersionUID = -1626612391889900606L
staticprivate

Used for serialization.


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