public class TradeoffAnalytics extends WatsonService
defaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION
Constructor and Description |
---|
TradeoffAnalytics()
Instantiates a new tradeoff analytics.
|
TradeoffAnalytics(java.lang.String username,
java.lang.String password)
Instantiates a new tradeoff analytics service by username and password.
|
Modifier and Type | Method and Description |
---|---|
ServiceCall<Dilemma> |
dilemmas(Problem problem)
Returns a dilemma that contains the
Problem and a Resolution . |
ServiceCall<Dilemma> |
dilemmas(Problem problem,
java.lang.Boolean generateVisualization)
Returns a dilemma that contains the
Problem and a Resolution . |
ServiceCall<Dilemma> |
dilemmas(Problem problem,
java.lang.Boolean generateVisualization,
java.lang.Boolean findPreferableOptions)
Returns a dilemma that contains the
Problem and a Resolution . |
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toString
public TradeoffAnalytics()
public TradeoffAnalytics(java.lang.String username, java.lang.String password)
username
- the usernamepassword
- the passwordpublic ServiceCall<Dilemma> dilemmas(Problem problem)
Problem
and a Resolution
. The Problem
contains a set of
options and objectives. The Resolution
contains a set of optimal options, their analytical characteristics,
and by default their representation on a 2D space. TradeoffAnalytics service = new TradeoffAnalytics(); service.setUsernameAndPassword("USERNAME", "PASSWORD"); Problem problem = new Problem(); // create the options and objectives here Dilemma dilemma = service.dilemmas(problem, false);
problem
- the decision problempublic ServiceCall<Dilemma> dilemmas(Problem problem, java.lang.Boolean generateVisualization)
Problem
and a Resolution
. The Problem
contains a set of
options and objectives. The Resolution
contains a set of optimal options, their analytical characteristics,
and by default their representation on a 2D space. TradeoffAnalytics service = new TradeoffAnalytics(); service.setUsernameAndPassword("USERNAME", "PASSWORD"); Problem problem = new Problem(); // create the options and objectives here Dilemma dilemma = service.dilemmas(problem, false);
problem
- the decision problemgenerateVisualization
- if true the Dilemma contains information to generate visualizationpublic ServiceCall<Dilemma> dilemmas(Problem problem, java.lang.Boolean generateVisualization, java.lang.Boolean findPreferableOptions)
Problem
and a Resolution
. The Problem
contains a set of
options and objectives. The Resolution
contains a set of optimal options, their analytical characteristics,
and by default their representation on a 2D space. TradeoffAnalytics service = new TradeoffAnalytics(); service.setUsernameAndPassword("USERNAME", "PASSWORD"); Problem problem = new Problem(); // create the options and objectives here Dilemma dilemma = service.dilemmas(problem, false, true);
problem
- the decision problemgenerateVisualization
- if true the Dilemma contains information to generate visualizationfindPreferableOptions
- if true the Dilemma includes a refined subset of best candidate options
that will most likely satisfy the greatest number of users.