|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A patient-donor pair. More...
Public Member Functions | |
| PatientDonorPair (int id, boolean husbandDonor, ABO patientABO, ABO donorABO, PRA pra) | |
| Generates a pair according to the description and calculates its compatibility. | |
| boolean | canGiveTo (PatientDonorPair p2) |
| Whether this pair's donor can give to the input pair's patient. | |
| String | toString () |
Public Attributes | |
| Integer | id |
| The pair's ID. | |
| ABO | patientABO |
| The patient's blood type. | |
| ABO | donorABO |
| The donor's blood type. | |
| PRA | pra |
| The patient's PRA level. | |
| boolean | compatible |
| Whether the patient is compatible with the donor. | |
| HashMap< Integer, Boolean > | relations = new HashMap<Integer,Boolean>() |
| Stores compatibility with other PatientDonor pairs. | |
A patient-donor pair.
| frodo2.benchmarks.kidneys.KidneyExchange.PatientDonorPair.PatientDonorPair | ( | int | id, |
| boolean | husbandDonor, | ||
| ABO | patientABO, | ||
| ABO | donorABO, | ||
| PRA | pra ) |
Generates a pair according to the description and calculates its compatibility.
| id | the pair ID |
| husbandDonor | whether the donor is the patient's husband |
| patientABO | the patient's blood type |
| donorABO | the donor's blood type |
| pra | the patient's PRA level |
References donorABO, id, frodo2.benchmarks.kidneys.KidneyExchange.KidneyExchange(), patientABO, and pra.
Referenced by canGiveTo().

| boolean frodo2.benchmarks.kidneys.KidneyExchange.PatientDonorPair.canGiveTo | ( | PatientDonorPair | p2 | ) |
Whether this pair's donor can give to the input pair's patient.
| p2 | the receiving PatientDonorPair |
true iff this can donate to p2 References compatible, id, frodo2.benchmarks.kidneys.KidneyExchange.KidneyExchange(), patientABO, PatientDonorPair(), and pra.
Referenced by frodo2.benchmarks.kidneys.KidneyExchange.generateProblem().

| String frodo2.benchmarks.kidneys.KidneyExchange.PatientDonorPair.toString | ( | ) |
| boolean frodo2.benchmarks.kidneys.KidneyExchange.PatientDonorPair.compatible |
Whether the patient is compatible with the donor.
Referenced by canGiveTo(), and frodo2.benchmarks.kidneys.KidneyExchange.KidneyExchange().
| ABO frodo2.benchmarks.kidneys.KidneyExchange.PatientDonorPair.donorABO |
The donor's blood type.
Referenced by PatientDonorPair().
| Integer frodo2.benchmarks.kidneys.KidneyExchange.PatientDonorPair.id |
The pair's ID.
Referenced by canGiveTo(), and PatientDonorPair().
| ABO frodo2.benchmarks.kidneys.KidneyExchange.PatientDonorPair.patientABO |
The patient's blood type.
Referenced by canGiveTo(), and PatientDonorPair().
| PRA frodo2.benchmarks.kidneys.KidneyExchange.PatientDonorPair.pra |
The patient's PRA level.
Referenced by canGiveTo(), and PatientDonorPair().
| HashMap<Integer,Boolean> frodo2.benchmarks.kidneys.KidneyExchange.PatientDonorPair.relations = new HashMap<Integer,Boolean>() |
Stores compatibility with other PatientDonor pairs.