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        void getRemoveTestPath(String oldName);
029
030        void setTestPath(String newName, String path);
031
032        String[] getTestsList();
033
034        String getWorkingDir();
035
036        MultiTaskRunDialog tasksChoice(MultiTaskRunDialog choiceRunner, String[] theNames, boolean exceptionIgnoreFlag,
037                        Object setup, Processor taskProcessor, boolean visible);
038
039        String choiceValue(String name, String description, Object[] aPossibleValues, ILogger log, boolean notifyMe,
040                        Processor processor);
041
042        File getFile(String path);
043
044        Map<String, Object> getSystemVariables();
045
046        void setConsoleDefaultInput(boolean defaultMode);
047
048        boolean isConsoleDefaultInput(String varName, String description);
049
050        RecipeRunner runTask(String name, boolean async);
051
052        Node getConfigNode();
053
054        void startTaskNotify(RecipeRunner task);
055
056        void progressText(String name);
057
058        void progressValue(int i, int length, boolean success);
059
060        void addRunner(RecipeRunner testRunner);
061
062        void removeRunner(RecipeRunner testRunner);
063
064        void finished(String aTestFile);
065
066        MessageHandler message(Processor taskProcessor, String message, String description, boolean notifyMe);
067
068        File getHomeWorkingDir();
069}