|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgorithm.matching.MatchList
public class MatchList
Data structure to hold assignments found in assignment algorithms. saving the matching partners in a list, as well as saving the total costs for this assignment. The matchings are saved in an order according to their matching costs.
| Field Summary | |
|---|---|
private org.apache.log4j.Logger |
logger
logger instance |
private java.util.Queue<Matching> |
matchlist
holding all matchings, order according to their matching costs |
private double |
totalcost
the totalcost for all matchings |
| Constructor Summary | |
|---|---|
MatchList()
constructor. |
|
| Method Summary | |
|---|---|
void |
addMatching(int partnerid1,
int partnerid2,
double cost)
add a new matching. |
boolean |
contains(Matching matching)
check if a matchlist contains a specified matching |
boolean |
equals(MatchList compare)
check if a given matchlist contains the same matchings as the current instance. |
java.util.Queue<Matching> |
getMatchlist()
return matchlist - list containing all found matches. |
double |
getMean()
Get the average matching costs of this match list. |
double |
getMedian()
|
double |
getStandardDeviation()
|
double |
getTotalcost()
get this matching's total cost |
void |
setTotalcost(double totalcost)
set this matching's total cost. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final java.util.Queue<Matching> matchlist
private double totalcost
private final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public MatchList()
| Method Detail |
|---|
public double getTotalcost()
public void setTotalcost(double totalcost)
totalcost -
public void addMatching(int partnerid1,
int partnerid2,
double cost)
partnerid1 - - id of the first partnerpartnerid2 - - if of the snd partnercost - public boolean contains(Matching matching)
matching -
public double getMean()
public double getStandardDeviation()
public double getMedian()
public boolean equals(MatchList compare)
compare - the matchlist to be compared
public java.util.Queue<Matching> getMatchlist()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||