source: PerfectFit/Web/src/main/java/perfectfit/StimAnswer.java

Last change on this file was 7, checked in by Wouter Pasman, 11 months ago

#124 release PerfectFit sources

File size: 785 bytes
Line 
1package perfectfit;
2
3import com.fasterxml.jackson.annotation.JsonAutoDetect;
4import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
5
6import tudelft.dialogmanager.answertypes.AnswerType;
7import tudelft.dialogmanager.stimuli.Stimulus;
8
9/**
10 * Contains the stimulus and answer type
11 */
12@JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE, isGetterVisibility = Visibility.NONE)
13public class StimAnswer {
14 private final Stimulus stimulus;
15 private final AnswerType answertype;
16
17 public StimAnswer(Stimulus stimulus, AnswerType answertype) {
18 this.stimulus = stimulus;
19 this.answertype = answertype;
20 }
21
22 @Override
23 public String toString() {
24 return "StimAnswer[" + stimulus + "," + answertype + "]";
25 }
26}
Note: See TracBrowser for help on using the repository browser.