Mercurial > hg > anteater
comparison src/de/mpiwg/anteater/results/ApplicantResult.java @ 0:036535fcd179
anteater
author | jdamerow |
---|---|
date | Fri, 14 Sep 2012 10:30:43 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:036535fcd179 |
---|---|
1 package de.mpiwg.anteater.results; | |
2 | |
3 import de.mpiwg.anteater.persons.APerson; | |
4 import de.mpiwg.anteater.persons.PersonsExtraction; | |
5 import de.mpiwg.anteater.text.TextInformation; | |
6 | |
7 public class ApplicantResult implements IResult<PersonsExtraction, APerson> { | |
8 | |
9 private PersonsExtraction personResult; | |
10 private APerson person; | |
11 private TextInformation textInfo; | |
12 private double prediction; | |
13 | |
14 /* (non-Javadoc) | |
15 * @see de.mpiwg.anteater.ml.IResult#setPersonResult(de.mpiwg.anteater.persons.PersonsResult) | |
16 */ | |
17 @Override | |
18 public void setResult(PersonsExtraction personResult) { | |
19 this.personResult = personResult; | |
20 } | |
21 /* (non-Javadoc) | |
22 * @see de.mpiwg.anteater.ml.IResult#getPersonResult() | |
23 */ | |
24 @Override | |
25 public PersonsExtraction getResult() { | |
26 return personResult; | |
27 } | |
28 /* (non-Javadoc) | |
29 * @see de.mpiwg.anteater.ml.IResult#setPerson(de.mpiwg.anteater.persons.APerson) | |
30 */ | |
31 @Override | |
32 public void setFinding(APerson person) { | |
33 this.person = person; | |
34 } | |
35 /* (non-Javadoc) | |
36 * @see de.mpiwg.anteater.ml.IResult#getPerson() | |
37 */ | |
38 @Override | |
39 public APerson getFinding() { | |
40 return person; | |
41 } | |
42 /* (non-Javadoc) | |
43 * @see de.mpiwg.anteater.ml.IResult#setPrediction(double) | |
44 */ | |
45 @Override | |
46 public void setPrediction(double prediction) { | |
47 this.prediction = prediction; | |
48 } | |
49 /* (non-Javadoc) | |
50 * @see de.mpiwg.anteater.ml.IResult#getPrediction() | |
51 */ | |
52 @Override | |
53 public double getPrediction() { | |
54 return prediction; | |
55 } | |
56 /* (non-Javadoc) | |
57 * @see de.mpiwg.anteater.ml.IResult#setTextInfo(de.mpiwg.anteater.text.TextInformation) | |
58 */ | |
59 @Override | |
60 public void setTextInfo(TextInformation textInfo) { | |
61 this.textInfo = textInfo; | |
62 } | |
63 /* (non-Javadoc) | |
64 * @see de.mpiwg.anteater.ml.IResult#getTextInfo() | |
65 */ | |
66 @Override | |
67 public TextInformation getTextInfo() { | |
68 return textInfo; | |
69 } | |
70 | |
71 } |