001package com.ganteater.ae; 002 003import java.io.File; 004import java.util.Map; 005 006import com.ganteater.ae.processor.MessageHandler; 007import com.ganteater.ae.processor.Processor; 008import com.ganteater.ae.util.xml.easyparser.Node; 009 010public interface AEManager { 011 012 File getStartDir(); 013 014 String inputChoice(String varName, String description, String[] varValues, String defaultValue, 015 Processor taskProcessor, boolean notifyMe); 016 017 String inputFile(String name, String description, File defaultFile, ILogger log, Processor taskProcessor); 018 019 void inputDataTable(Processor unit, Node aTableNode, boolean notifyMe) throws Exception; 020 021 boolean confirmation(String name, String message, Processor unit, boolean notifyMe) throws Exception; 022 023 String inputValue(String name, String description, String value, ILogger log, String type, boolean notifyMe, 024 Processor processor) throws Exception; 025 026 String getTestPath(String newName); 027 028 String[] getTestsList(); 029 030 String getWorkingDir(); 031 032 MultiTaskRunDialog tasksChoice(MultiTaskRunDialog choiceRunner, String[] theNames, boolean exceptionIgnoreFlag, 033 Object setup, Processor taskProcessor, boolean visible); 034 035 String choiceValue(String name, String description, Object[] aPossibleValues, ILogger log, boolean notifyMe, 036 Processor processor); 037 038 File getFile(String path); 039 040 Map<String, Object> getSystemVariables(); 041 042 void setConsoleDefaultInput(boolean defaultMode); 043 044 boolean isConsoleDefaultInput(String varName, String description); 045 046 RecipeRunner runTask(String name, boolean async); 047 048 Node getConfigNode(); 049 050 void startTaskNotify(RecipeRunner task); 051 052 void progressText(String name); 053 054 void progressValue(int i, int length, boolean success); 055 056 void addRunner(RecipeRunner testRunner); 057 058 void removeRunner(RecipeRunner testRunner); 059 060 void finished(String aTestFile); 061 062 MessageHandler message(Processor taskProcessor, String message, String description, boolean notifyMe); 063 064 File getHomeWorkingDir(); 065}