All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.cmu.sv.domain.smart_house.GUI.GUIThermostat Maven / Gradle / Ivy

Go to download

A library that allows rapid prototyping of dialog systems (language understanding, discourse modelling, dialog management, language generation).

There is a newer version: 0.7.0
Show newest version
package edu.cmu.sv.domain.smart_house.GUI;

import java.util.List;
import java.util.ArrayList;

public class GUIThermostat extends GUIElectronic {

	public GUIThermostat(String name, GUIRoom room, boolean state, String correspondingURI) {
		super(name, room, state, correspondingURI);
	}

	@Override
	public List provideDetails() {
		List res = new ArrayList<>();
		res.add("Name: " + this.getName() + "\n");
		res.add("Room: " + this.getRoom() + "\nCurrent State: ");
		if(getState())
			res.add("ON");
		else
			res.add("OFF");
		return res;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy