public abstract class AbstractTool<R,S> extends Object implements LogicalModelTool<R,S>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTool(String id,
String name) |
protected |
AbstractTool(String id,
String name,
String helpMessage,
boolean supportsMultivalued) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHelp() |
String |
getID()
get the ID of the service.
|
String |
getName()
Get a longer name for the service.
|
R |
getResult(LogicalModel model)
Get the analysis result.
|
R |
getResult(LogicalModel model,
String... parameters)
Get the analysis result.
|
R |
getResult(LogicalModel model,
String parameters)
Get the analysis result.
|
S |
getSettings()
Construct a default setting object.
|
S |
getSettings(String... parameters)
Construct a default setting object.
|
S |
getSettings(String s)
Construct a default setting object.
|
boolean |
supportsMultivalued()
Does this tool handle multivalued models?
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetResult, runpublic S getSettings()
LogicalModelToolgetSettings in interface LogicalModelTool<R,S>public S getSettings(String s)
LogicalModelToolgetSettings in interface LogicalModelTool<R,S>s - optional command line settingspublic S getSettings(String... parameters)
LogicalModelToolgetSettings in interface LogicalModelTool<R,S>parameters - optional command line settingspublic R getResult(LogicalModel model) throws Exception
LogicalModelToolgetResult in interface LogicalModelTool<R,S>model - the source modelException - when the analysis could not be performedpublic R getResult(LogicalModel model, String parameters) throws Exception
LogicalModelToolgetResult in interface LogicalModelTool<R,S>model - the source modelparameters - optional command line settings (space separated)Exception - when the analysis could not be performedpublic R getResult(LogicalModel model, String... parameters) throws Exception
LogicalModelToolgetResult in interface LogicalModelTool<R,S>model - the source modelparameters - optional list of command line settingsException - when the analysis could not be performedpublic String getName()
Servicepublic String getHelp()
public boolean supportsMultivalued()
LogicalModelToolsupportsMultivalued in interface LogicalModelTool<R,S>Copyright © 2012-2017. All Rights Reserved.