Package com.smartgwt.client.ai
Class AnswerEngineOperation
java.lang.Object
com.smartgwt.client.core.BaseClass
com.smartgwt.client.ai.AnswerEngineOperation
- All Implemented Interfaces:
HasHandlers
Represents an Answer Engine operation.
- See Also:
-
Field Summary
Fields inherited from class com.smartgwt.client.core.BaseClass
config, configOnly, factoryCreated, factoryProperties, id, scClassName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()
The current step that this Answer Engine operation is working on.The data question that is the subject of this Answer Engine operation.The array of available data sources.getJsObj()
TheJSONEncoder
created for use by this Answer Engine operation.The maximum number of records that may be requested per query.static AnswerEngineOperation
getOrCreateRef
(JavaScriptObject jsObj) Whether to show a notify for this Answer Engine operation.boolean
setCurrentStep
(DataQuestionStep currentStep) The current step that this Answer Engine operation is working on.setDataQuestion
(DataQuestion dataQuestion) The data question that is the subject of this Answer Engine operation.setDataSources
(DataSource... dataSources) The array of available data sources.void
setMaxRecordsPerQuery
(Integer maxRecordsPerQuery) The maximum number of records that may be requested per query.setShowNotify
(Boolean showNotify) Whether to show a notify for this Answer Engine operation.Methods inherited from class com.smartgwt.client.core.BaseClass
addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, asSGWTComponent, clearDynamicProperty, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getID, getRef, getRuleScope, getScClassName, getTestInstance, hasAutoAssignedID, hasDynamicProperty, internalSetID, internalSetID, isConfigOnly, isFactoryCreated, onBind, onInit, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setFactoryCreated, setID, setProperty, setProperty, setProperty, setProperty, setRuleScope, setScClassName
-
Constructor Details
-
AnswerEngineOperation
public AnswerEngineOperation() -
AnswerEngineOperation
-
-
Method Details
-
getOrCreateRef
-
setJavaScriptObject
- Overrides:
setJavaScriptObject
in classBaseClass
-
create
-
isCreated
public boolean isCreated() -
getJsObj
-
getOrCreateJsObj
- Overrides:
getOrCreateJsObj
in classBaseClass
-
setCurrentStep
public AnswerEngineOperation setCurrentStep(DataQuestionStep currentStep) throws IllegalStateException The current step that this Answer Engine operation is working on.- Parameters:
currentStep
- New currentStep value. Default value is null- Returns:
AnswerEngineOperation
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getCurrentStep
The current step that this Answer Engine operation is working on.- Returns:
- Current currentStep value. Default value is null
-
setDataQuestion
public AnswerEngineOperation setDataQuestion(DataQuestion dataQuestion) throws IllegalStateException The data question that is the subject of this Answer Engine operation. This is required to be non-null
.- Parameters:
dataQuestion
- New dataQuestion value. Default value is null- Returns:
AnswerEngineOperation
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getDataQuestion
The data question that is the subject of this Answer Engine operation. This is required to be non-null
.- Returns:
- Current dataQuestion value. Default value is null
-
setDataSources
The array of available data sources.- Parameters:
dataSources
- New dataSources value. Default value is null- Returns:
AnswerEngineOperation
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getDataSources
The array of available data sources.- Returns:
- Current dataSources value. Default value is null
-
getJsonEncoder
TheJSONEncoder
created for use by this Answer Engine operation.This component is an AutoChild named "jsonEncoder". For an overview of how to use and configure AutoChildren, see
Using AutoChildren
.- Returns:
- Current jsonEncoder value. Default value is null
- Throws:
IllegalStateException
- if the underlying component has not yet been created.
-
setMaxRecordsPerQuery
public AnswerEngineOperation setMaxRecordsPerQuery(Integer maxRecordsPerQuery) throws IllegalStateException The maximum number of records that may be requested per query. Must be a positive integer.- Parameters:
maxRecordsPerQuery
- New maxRecordsPerQuery value. Default value is 15- Returns:
AnswerEngineOperation
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getMaxRecordsPerQuery
The maximum number of records that may be requested per query. Must be a positive integer.- Returns:
- Current maxRecordsPerQuery value. Default value is 15
-
setShowNotify
Whether to show a notify for this Answer Engine operation.- Parameters:
showNotify
- New showNotify value. Default value is false- Returns:
AnswerEngineOperation
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getShowNotify
Whether to show a notify for this Answer Engine operation.- Returns:
- Current showNotify value. Default value is false
-