org.android.activityminer.app.evaluation
Class EvaluationResultFragment

Package class diagram package EvaluationResultFragment
java.lang.Object
  extended by android.support.v4.app.Fragment
      extended by org.android.activityminer.app.evaluation.EvaluationResultFragment
All Implemented Interfaces:
ComponentCallbacks, View.OnCreateContextMenuListener, IEvaluationResultFragment

public class EvaluationResultFragment
extends android.support.v4.app.Fragment
implements IEvaluationResultFragment

The fragment for the first tab of the result browser. It does display the results for all evaluation runs in a list, sorted by accuracy and the count of evaluated features.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.support.v4.app.Fragment
android.support.v4.app.Fragment.InstantiationException, android.support.v4.app.Fragment.SavedState
 
Field Summary
private  EvaluationResultCollection evalResults
          The evaluation result collection.
private  boolean[] expansionStates
          The selected and expanded group.
 
Constructor Summary
EvaluationResultFragment()
           
 
Method Summary
protected  FeatureTypes[] getSelectedFeatures(EvaluationResult evalResult)
          Doe get the selected feature types from an evaluation resutl
 void onActivityCreated(Bundle savedInstanceState)
           
 boolean onContextItemSelected(MenuItem item)
           
 void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)
           
 View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
           
private  boolean onJoinWithCurrentTrainingConfiguration(EvaluationResult evalResult)
          Does join the feature configuration with the given evaluation result configuration for model creation
private  boolean onSaveAsCurrentTrainingConfiguration(EvaluationResult evalResult)
          Does update the feature configuration with the given evaluation result configuration for model creation
 void setEvaluationResult(EvaluationResultCollection evalResultCollection)
          Setter for the evaluation result collection
protected  void updateView()
          The view update method
 
Methods inherited from class android.support.v4.app.Fragment
dump, equals, getActivity, getArguments, getChildFragmentManager, getFragmentManager, getId, getLayoutInflater, getLoaderManager, getParentFragment, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isVisible, onActivityResult, onAttach, onConfigurationChanged, onCreate, onCreateAnimation, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDestroyView, onDetach, onHiddenChanged, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onSaveInstanceState, onStart, onStop, onViewCreated, onViewStateRestored, registerForContextMenu, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivityForResult, toString, unregisterForContextMenu
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

evalResults

private EvaluationResultCollection evalResults
The evaluation result collection.


expansionStates

private boolean[] expansionStates
The selected and expanded group.

Constructor Detail

EvaluationResultFragment

public EvaluationResultFragment()
Method Detail

onActivityCreated

public void onActivityCreated(Bundle savedInstanceState)
Overrides:
onActivityCreated in class android.support.v4.app.Fragment

onCreateView

public View onCreateView(LayoutInflater inflater,
                         ViewGroup container,
                         Bundle savedInstanceState)
Overrides:
onCreateView in class android.support.v4.app.Fragment

onCreateContextMenu

public void onCreateContextMenu(ContextMenu menu,
                                View v,
                                ContextMenu.ContextMenuInfo menuInfo)
Specified by:
onCreateContextMenu in interface View.OnCreateContextMenuListener
Overrides:
onCreateContextMenu in class android.support.v4.app.Fragment

onContextItemSelected

public boolean onContextItemSelected(MenuItem item)
Overrides:
onContextItemSelected in class android.support.v4.app.Fragment

onJoinWithCurrentTrainingConfiguration

private boolean onJoinWithCurrentTrainingConfiguration(EvaluationResult evalResult)
Does join the feature configuration with the given evaluation result configuration for model creation

Parameters:
evalResult - the evaluation result to update feature configuration with
Returns:
true if successful, false otherwise

getSelectedFeatures

protected FeatureTypes[] getSelectedFeatures(EvaluationResult evalResult)
Doe get the selected feature types from an evaluation resutl

Parameters:
evalResult - the evaluation result
Returns:
the array of selected feature types

onSaveAsCurrentTrainingConfiguration

private boolean onSaveAsCurrentTrainingConfiguration(EvaluationResult evalResult)
Does update the feature configuration with the given evaluation result configuration for model creation

Parameters:
evalResult - the evaluation result to update feature configuration with
Returns:
true if successful, false otherwise

setEvaluationResult

public final void setEvaluationResult(EvaluationResultCollection evalResultCollection)
Description copied from interface: IEvaluationResultFragment
Setter for the evaluation result collection

Specified by:
setEvaluationResult in interface IEvaluationResultFragment
Parameters:
evalResultCollection - the evaluation result collection

updateView

protected void updateView()
The view update method