package uk.ac.imperial.lsds.seepmaster.ui;
import uk.ac.imperial.lsds.seepmaster.infrastructure.master.InfrastructureManager;
import uk.ac.imperial.lsds.seepmaster.query.GenericQueryManager;
public class UIFactory {
public static String nameUIOfType(int uiType){
String name = null;
if(uiType == UIType.SIMPLECONSOLE.ofType()) {
name = UIType.SIMPLECONSOLE.name();
}
else if(uiType == UIType.WEB.ofType()){
name = UIType.WEB.name();
}
return name;
}
public static UI createUI(int uiType, GenericQueryManager qm, InfrastructureManager inf){
if(uiType == UIType.SIMPLECONSOLE.ofType()) {
return new SimpleConsoleUI(qm, inf);
}
else if(uiType == UIType.WEB.ofType()){
return new WebUI(qm, inf);
}
return null;
}
}