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

edu.cmu.sv.domain.smart_house.GUI.Simulator 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 edu.cmu.sv.database.Database;

import java.util.HashSet;
import java.util.Set;

public class Simulator {
	public static boolean runningGUI;
	private static Set thingsInSimulation;
	
	static {
        String prefix = Database.baseURI;
        thingsInSimulation = new HashSet<>();
        GUIRoom room1 = new GUIRoom("Kitchen", prefix + "0000", 1, 74);
        GUIRoom room2 = new GUIRoom("Living Room", prefix + "0001", 5, 50);
        GUIPerson jane = new GUIPerson("Jane", "F", room1, prefix + "0002");
        GUIPerson john = new GUIPerson("John", "M", room2, prefix + "0003");
        GUIMicrowave sonyMicrowave = new GUIMicrowave("Sony Microwave", room1, true, prefix + "0004");
        GUIThermostat nest = new GUIThermostat("Nest", room2, true, prefix + "0005");
        GUISecuritySystem comcastSec = new GUISecuritySystem("Comcast Security System", room2, false, prefix + "0006");
        GUIAC airConditioner = new GUIAC("Air Conditioner", room2, true, prefix + "0007");
        GUIRoomba roomba = new GUIRoomba("roomba", room2, prefix + "0008");

        thingsInSimulation.add(jane);
        thingsInSimulation.add(john);
        thingsInSimulation.add(room1);
        thingsInSimulation.add(room2);
        thingsInSimulation.add(sonyMicrowave);
        thingsInSimulation.add(nest);
        thingsInSimulation.add(airConditioner);
        thingsInSimulation.add(comcastSec);
        thingsInSimulation.add(roomba);
    }
	
	public static Set getThings() {
		return thingsInSimulation;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy