|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.content.Context
android.content.ContextWrapper
android.view.ContextThemeWrapper
android.app.Activity
org.android.activityminer.app.util.SharedPreferenceChangeAwareActivity
org.android.activityminer.app.util.ServiceBasedActivity
org.android.activityminer.app.evaluation.EvaluationActivity
public final class EvaluationActivity
The main Activity.
Field Summary | |
---|---|
private MenuItem |
browseLastResult
The option menu entry for exploration of last result. |
private Button |
btnEvalAllFeaturesButton
The button for evaluation of all features. |
private Button |
btnEvalAllFeatureSetsOfSizeK
The button for evaluation of all feature sets of a given size. |
private Button |
btnEvalAnyFeatureCombinationButton
The button for evaluation of all possible feature combinations. |
private Button |
btnEvalSelectedFeaturesButton
The button for evaluation of configured feature selection. |
private Button |
btnEvalSingleFeaturesButton
The button for single feature evaluation. |
private String |
outputFile
The output file to store the last result in. |
Fields inherited from class android.app.Activity |
---|
DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, FOCUSED_STATE_SET, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OK |
Fields inherited from interface android.content.ComponentCallbacks2 |
---|
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN |
Constructor Summary | |
---|---|
EvaluationActivity()
Constructor |
Method Summary | |
---|---|
boolean |
doesOutPutFileExist()
Test method for an existing file with evaluation results. |
void |
doEvaluate(Configuration configuration,
Set<Set<FeatureTypes>> featuresSets,
boolean bestResultsOnly)
Does start an evaluation task for the given feature sets and the given configuration. |
void |
doFeatureSubsetSearch(Configuration configuration,
Set<Set<FeatureTypes>> featuresSets,
int size)
Does start a search task for the best subset of a given size in a given feature set. |
protected void |
handleTaskFinishedEvent(TaskFinishedEvent taskFinishedEvent)
Handler for task finished events |
boolean |
isInterestedInLimitViolations()
Method to test if limit violations should be notified. |
protected void |
onAllFeatureEvaluation()
Handler for evaluation of all features. |
private boolean |
onBrowseLastResult()
Handler for last result browsing |
private boolean |
onConfiguration()
Option menu handler for configuration. |
void |
onConfigurationChanged(Configuration newConfig)
|
protected void |
onCreate(Bundle savedInstanceState)
|
boolean |
onCreateOptionsMenu(Menu menu)
|
protected void |
onEvaluationOfAnySelectedFeatureCombination()
Handler for evaluation of all possible combinations of the selected features. |
protected void |
onEvaluationOfBestSetWithKFeatures()
Handler for evaluation of the best set with 8 features for powerset evaluation. |
protected void |
onEvaluationOfConfiguredFeatures()
Handler for evaluation of the configured feature set. |
boolean |
onOptionsItemSelected(MenuItem item)
|
protected void |
onResume()
|
protected void |
onServiceFinishedCurrentTask(TaskFinishedEvent event)
Handler for finished service tasks |
protected void |
onSingleFeatureEvaluation()
Handler for evaluation of single features. |
private void |
prepare()
Preparation in case of creation or orientation changes. |
private boolean |
testForSufficientTrainingDataForSelectedClasses()
Test method if sufficient recorded sample data are available for the selected classes. |
void |
updateMenuItemStates()
Does update the menu item states. |
Methods inherited from class org.android.activityminer.app.util.ServiceBasedActivity |
---|
getService, getServiceState, isServiceAvailable, onAboutToDisconnect, onBackgroundTaskProgress, onBindingFailed, onConnectionEstablished, onConnectionLost, onDefaultTaskFinishedEvent, onNewIntent, onPause, onServiceUnavailable, safeUnregisterReceiver, showServiceTaskFinishedResult, startBackgroundServiceProgressObservation, stopBackgroundServiceProgressObservation |
Methods inherited from class android.view.ContextThemeWrapper |
---|
applyOverrideConfiguration, attachBaseContext, getResources, getTheme, setTheme |
Methods inherited from class android.content.Context |
---|
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Button btnEvalSingleFeaturesButton
private Button btnEvalAllFeaturesButton
private Button btnEvalAnyFeatureCombinationButton
private Button btnEvalSelectedFeaturesButton
private Button btnEvalAllFeatureSetsOfSizeK
private String outputFile
private MenuItem browseLastResult
Constructor Detail |
---|
public EvaluationActivity()
Method Detail |
---|
private final void prepare()
protected final void onCreate(Bundle savedInstanceState)
onCreate
in class ServiceBasedActivity
protected final void onResume()
onResume
in class ServiceBasedActivity
protected void handleTaskFinishedEvent(TaskFinishedEvent taskFinishedEvent)
ServiceBasedActivity
handleTaskFinishedEvent
in class ServiceBasedActivity
taskFinishedEvent
- the task finished eventpublic final boolean doesOutPutFileExist()
public final void onConfigurationChanged(Configuration newConfig)
onConfigurationChanged
in interface ComponentCallbacks
onConfigurationChanged
in class Activity
public final boolean onCreateOptionsMenu(Menu menu)
onCreateOptionsMenu
in class Activity
public final void updateMenuItemStates()
public final boolean onOptionsItemSelected(MenuItem item)
onOptionsItemSelected
in class Activity
protected final void onSingleFeatureEvaluation()
protected final void onAllFeatureEvaluation()
protected final void onEvaluationOfAnySelectedFeatureCombination()
protected final void onEvaluationOfBestSetWithKFeatures()
protected final void onEvaluationOfConfiguredFeatures()
public final void doEvaluate(Configuration configuration, Set<Set<FeatureTypes>> featuresSets, boolean bestResultsOnly)
configuration
- the configuration for evaluationfeaturesSets
- the feature sets to evaluatebestResultsOnly
- flag to limit the result list to the best results (ranked by
overall prediction accuracy)public final void doFeatureSubsetSearch(Configuration configuration, Set<Set<FeatureTypes>> featuresSets, int size)
configuration
- the configuration for evaluationfeaturesSets
- a set containing a single feature set to evaluatesize
- private final boolean testForSufficientTrainingDataForSelectedClasses()
private final boolean onConfiguration()
public final boolean isInterestedInLimitViolations()
SharedPreferenceChangeNotificationReceiver
isInterestedInLimitViolations
in interface SharedPreferenceChangeNotificationReceiver
isInterestedInLimitViolations
in class SharedPreferenceChangeAwareActivity
private final boolean onBrowseLastResult()
protected void onServiceFinishedCurrentTask(TaskFinishedEvent event)
ServiceBasedActivity
onServiceFinishedCurrentTask
in class ServiceBasedActivity
event
- the task finished event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |