|
Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions 11g Release 1 (11.1.1) E17787-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.sigmadynamics.sdo.support.SDOBase
com.sigmadynamics.sdo.support.SDApplicationBase
public abstract class SDApplicationBase
Abstract base class for the Application class in generated code, the most important class of an Inline Service. An Inline Service's lifecycle is managed through this class. The Application
(bottommost subclass of SDApplicationBase
) serves as the main gateway between the RTD Decision Server and an Inline Service.
Field Summary | |
---|---|
protected AppFactoryInterface |
appFactory |
Fields inherited from class com.sigmadynamics.sdo.support.SDOBase |
---|
description, internalName, sdExternalName |
Method Summary | |
---|---|
protected boolean |
calculateControlGroupStatus(double val, double percent) |
protected boolean |
calculateControlGroupStatus(int val, double percent) |
protected boolean |
calculateControlGroupStatus(long val, double percent) |
protected boolean |
calculateControlGroupStatus(java.lang.String val, double percent) |
protected boolean |
checkControlGroupStatus(boolean val) |
protected boolean |
checkControlGroupStatus(int val) |
protected boolean |
checkControlGroupStatus(java.lang.String val) |
static long |
currentTimeMillis() Overrideable method used to aid in simulation of time |
boolean |
deleteStudy() Deletes the study of the Inline Service containing the calling BatchJob, together with all its contained learning models and associated prediction models. |
boolean |
determineCG() |
int |
dumpStudy(boolean rewriteCompletedTimeWindows) Creates a snapshot of the study that is owned by the Inline Service containing the calling BatchJob. |
void |
forceLearning() Updates the in-memory learning models of all studies to include the latest available learnings, and persists the updated learning models to the database. |
com.sigmadynamics.batch.BatchAgent |
getBatchAgent() |
protected static BatchAgentKernel |
getBatchAgentKernel() overrideable |
ChoiceGroupInterface |
getChoiceGroup(java.lang.String groupId) |
int |
getDataVersion() |
int |
getDeploymentState() |
int |
getDeploymentVersion() |
protected static LearningRecordWriterFactory |
getLearningRecordWriterFactory() overrideable |
Metadata |
getMetadata() |
java.lang.String |
getName() Gets the application name. |
int |
getSessionCount() |
java.lang.String |
getStudyName() Get the application's study name. |
long |
getTimeLastLoaded() |
boolean |
isStoppedOrShuttingDown() |
protected PredictorInterface |
newPredictor(SDModelArray models, Path[] attributePaths, java.lang.String[] attributes) Overrideable |
protected RuleCache |
newRuleCache(java.lang.ClassLoader parent) Overrideable RuleCache factory |
protected RuleEvaluator |
newRuleEvaluator(ApplicationInterface app) Overrideable RuleEvaluator factory |
void |
rebuildPredictionModels() Rebuilds prediction models for all studies, so they include all recent learnings. |
void |
setTimeLastLoaded(long time) |
Methods inherited from class com.sigmadynamics.sdo.support.SDOBase |
---|
getDescription, getSDOId, getSDOLabel, getSDOLabelOrId, setDescription, setSDOId, setSDOLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sigmadynamics.sdo.interfaces.ApplicationInterface |
---|
cleanUp, deleteChoiceHistory, deleteStatistics, flushStatistics, getDefaultChoices, init |
Methods inherited from interface com.sigmadynamics.sdo.interfaces.client.SDOInterface |
---|
getDescription, getSDOId, getSDOLabel, getSDOLabelOrId |
Field Detail |
---|
protected final AppFactoryInterface appFactory
Method Detail |
---|
protected static LearningRecordWriterFactory getLearningRecordWriterFactory()
protected static BatchAgentKernel getBatchAgentKernel()
public java.lang.String getStudyName()
ApplicationInterface
getStudyName
in interface ApplicationInterface
public boolean determineCG()
determineCG
in interface ApplicationInterface
protected boolean calculateControlGroupStatus(java.lang.String val, double percent)
protected boolean calculateControlGroupStatus(int val, double percent)
protected boolean calculateControlGroupStatus(long val, double percent)
protected boolean calculateControlGroupStatus(double val, double percent)
protected boolean checkControlGroupStatus(boolean val)
protected boolean checkControlGroupStatus(int val)
protected boolean checkControlGroupStatus(java.lang.String val)
public int getSessionCount()
getSessionCount
in interface ApplicationInterface
public boolean isStoppedOrShuttingDown()
isStoppedOrShuttingDown
in interface ApplicationInterface
public java.lang.String getName()
ApplicationInterface
getName
in interface ApplicationInterface
public int getDeploymentVersion()
getDeploymentVersion
in interface ApplicationInterface
public int getDeploymentState()
getDeploymentState
in interface ApplicationInterface
public Metadata getMetadata()
getMetadata
in interface ApplicationInterface
public static long currentTimeMillis()
Must be threadsafe.
public int getDataVersion()
getDataVersion
in interface ApplicationInterface
public ChoiceGroupInterface getChoiceGroup(java.lang.String groupId)
getChoiceGroup
in interface ApplicationInterface
SDChoiceGroup.findChoiceGroup(String)
public com.sigmadynamics.batch.BatchAgent getBatchAgent()
getBatchAgent
in interface ApplicationInterface
protected PredictorInterface newPredictor(SDModelArray models, Path[] attributePaths, java.lang.String[] attributes)
protected RuleCache newRuleCache(java.lang.ClassLoader parent)
protected RuleEvaluator newRuleEvaluator(ApplicationInterface app)
public long getTimeLastLoaded()
public void setTimeLastLoaded(long time)
public boolean deleteStudy()
ApplicationInterface
deleteStudy
in interface ApplicationInterface
public int dumpStudy(boolean rewriteCompletedTimeWindows)
ApplicationInterface
dumpStudy
in interface ApplicationInterface
public void forceLearning()
ApplicationInterface
forceLearning
in interface ApplicationInterface
public void rebuildPredictionModels()
ApplicationInterface
This method asks the Learning Service to do the following sequence of activities, and returns after the sequence has finished.
rebuildPredictionModels
in interface ApplicationInterface
|
Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions 11g Release 1 (11.1.1) E17787-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |