
Static Public Member Functions | |
| static void | readExtraTools (Reader f) throws Exception |
| static AcsCommandCenterTools | getExtraTools () throws Exception |
| static String | getDefaultExtraToolsName () |
| static void | readDefaultExtraTools () throws Exception |
| static void | readBuiltinTools (Reader f) throws Exception |
| static Tool | getBuiltinTool (String caption) throws IllegalArgumentException, Exception |
| static String | getDefaultBuiltinToolsName () |
| static void | readDefaultBuiltinTools () throws Exception |
| static String | generateCommand (Tool tool, RunModel runModel) throws Exception |
| static String | generateCommand (Tool tool, RunModel runModel, Map< String, Object > input) throws Exception |
Static Protected Member Functions | |
| static String[] | collectInsertions (Tool tool, RunModel runModel, Map< String, Object > input) throws Exception |
| static String | readFromModel (RunModel runModel, String name, String fallback) throws Exception |
| static String | readFromInput (Map< String, Object > input, String name, String fallback) |
Static Protected Attributes | |
| static AcsCommandCenterTools | extraTools |
| static HashMap< String, Tool > | builtinTools |
Static Package Functions | |
| [static initializer] | |
Static Private Attributes | |
| static Logger | log = MiscUtils.getPackageLogger(ToolManager.class) |
| static HashMap< String, Object > | emptyMap = new HashMap<String,Object>() |
| alma::acs::commandcenter::engine::ToolManager::[static initializer] | ( | ) | [inline, static, package] |
Initializes the builtinTools map with hardcoded definitions
| static String [] alma::acs::commandcenter::engine::ToolManager::collectInsertions | ( | Tool | tool, | |
| RunModel | runModel, | |||
| Map< String, Object > | input | |||
| ) | throws Exception [inline, static, protected] |
References readFromInput(), and readFromModel().
Referenced by generateCommand().
| static String alma::acs::commandcenter::engine::ToolManager::generateCommand | ( | Tool | tool, | |
| RunModel | runModel, | |||
| Map< String, Object > | input | |||
| ) | throws Exception [inline, static] |
| static String alma::acs::commandcenter::engine::ToolManager::generateCommand | ( | Tool | tool, | |
| RunModel | runModel | |||
| ) | throws Exception [inline, static] |
References emptyMap.
| static Tool alma::acs::commandcenter::engine::ToolManager::getBuiltinTool | ( | String | caption | ) | throws IllegalArgumentException, Exception [inline, static] |
Returns the builtin tool with the specified name.
If no builtin-tool definition has yet been read in, this will try to read the default tools definition file (see getDefaultBuiltinToolsName()). If an exception occurs during that, it will be passed to the caller. To avoid this lazy attempy to read the default definitions, invoke one of
before using this method.
| caption | the name of a tool |
| IllegalArgumentException | if non-defined tool is requested | |
| Exception | if no tool defined yet, and loading of default definition fails |
References builtinTools.
| static String alma::acs::commandcenter::engine::ToolManager::getDefaultBuiltinToolsName | ( | ) | [inline, static] |
Referenced by readDefaultBuiltinTools().
| static String alma::acs::commandcenter::engine::ToolManager::getDefaultExtraToolsName | ( | ) | [inline, static] |
Referenced by readDefaultExtraTools().
| static AcsCommandCenterTools alma::acs::commandcenter::engine::ToolManager::getExtraTools | ( | ) | throws Exception [inline, static] |
References extraTools.
| static void alma::acs::commandcenter::engine::ToolManager::readBuiltinTools | ( | Reader | f | ) | throws Exception [inline, static] |
Reads the tool definition from the specified reader. They are ADDED to an internal map that uses toolnames as it keys. This implies that if a read-in tool has a name that - after trim() - doesn't exactly match the required name , it will have no effect.
References builtinTools.
Referenced by readDefaultBuiltinTools().
| static void alma::acs::commandcenter::engine::ToolManager::readDefaultBuiltinTools | ( | ) | throws Exception [inline, static] |
References getDefaultBuiltinToolsName(), and readBuiltinTools().
| static void alma::acs::commandcenter::engine::ToolManager::readDefaultExtraTools | ( | ) | throws Exception [inline, static] |
References getDefaultExtraToolsName(), and readExtraTools().
| static void alma::acs::commandcenter::engine::ToolManager::readExtraTools | ( | Reader | f | ) | throws Exception [inline, static] |
Reads the tool definitions from the specified reader. The tool definitions that were in place before will be REPLACED by this.
References extraTools.
Referenced by readDefaultExtraTools().
| static String alma::acs::commandcenter::engine::ToolManager::readFromInput | ( | Map< String, Object > | input, | |
| String | name, | |||
| String | fallback | |||
| ) | [inline, static, protected] |
Referenced by collectInsertions().
| static String alma::acs::commandcenter::engine::ToolManager::readFromModel | ( | RunModel | runModel, | |
| String | name, | |||
| String | fallback | |||
| ) | throws Exception [inline, static, protected] |
References log.
Referenced by collectInsertions().
HashMap<String, Tool> alma::acs::commandcenter::engine::ToolManager::builtinTools [static, protected] |
Referenced by getBuiltinTool(), and readBuiltinTools().
HashMap<String,Object> alma::acs::commandcenter::engine::ToolManager::emptyMap = new HashMap<String,Object>() [static, private] |
Referenced by generateCommand().
AcsCommandCenterTools alma::acs::commandcenter::engine::ToolManager::extraTools [static, protected] |
Referenced by getExtraTools(), and readExtraTools().
Logger alma::acs::commandcenter::engine::ToolManager::log = MiscUtils.getPackageLogger(ToolManager.class) [static, private] |
Referenced by readFromModel().
1.6.2