edu.cmu.sv.domain.smart_house.GUI.GUIPerson Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yoda Show documentation
Show all versions of yoda Show documentation
A library that allows rapid prototyping of dialog systems (language understanding, discourse modelling, dialog management, language generation).
package edu.cmu.sv.domain.smart_house.GUI;
import java.util.List;
import java.util.ArrayList;
public class GUIPerson extends GUIThing {
private String gender;
public GUIPerson(String name, String gender, GUIRoom room, String correspondingURI) {
super(name, room, correspondingURI);
this.gender = gender;
}
@Override
public List provideDetails() {
List ans = new ArrayList<>();
ans.add("Name: " + this.getName() + "\n");
ans.add("Room: " + this.getRoom() + "\n");
ans.add("Gender: " + this.gender);
return ans;
}
}