public class TradeoffAnalytics extends WatsonService
defaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION
Constructor and Description |
---|
TradeoffAnalytics()
Instantiates a new tradeoff analytics.
|
TradeoffAnalytics(String username,
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,
Boolean generateVisualization)
Returns a dilemma that contains the
Problem and a Resolution . |
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toString
public TradeoffAnalytics()
public 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, 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 visualizationCopyright © 2015–2016 IBM Watson. All rights reserved.