org.android.activityminer.app.evaluation
Class EvaluationContextFragment

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

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

The fragment for the second tab of the evaluation result browser. It does display the configuration for all the evaluation runs and the class statistic for the used activies.


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  ParameterValuePairAdapter adapterConfigurationListView
          The list adapter for the view with configuration entries.
private  DBSampleStatisticAdapter adapterSampleStatisticListView
          The list adapter for DB sample statistics.
private  ListView configurationListView
          The configuration list view
private  EvaluationResultCollection evalResult
          The evaluation result collection.
private  ListView sampleStatisticListView
          The sample statistic list view.
 
Constructor Summary
EvaluationContextFragment()
           
 
Method Summary
 List<ParameterValuePair> createParameterValuePairsFromConfiguration(Context context)
          Does create a list with the parameter value pairs of interest from the current configuration.
 void onActivityCreated(Bundle savedInstanceState)
           
 View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
           
 void setEvaluationResult(EvaluationResultCollection evalResults)
          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, onContextItemSelected, onCreate, onCreateAnimation, onCreateContextMenu, 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

adapterSampleStatisticListView

private DBSampleStatisticAdapter adapterSampleStatisticListView
The list adapter for DB sample statistics.


sampleStatisticListView

private ListView sampleStatisticListView
The sample statistic list view.


adapterConfigurationListView

private ParameterValuePairAdapter adapterConfigurationListView
The list adapter for the view with configuration entries.


configurationListView

private ListView configurationListView
The configuration list view


evalResult

private EvaluationResultCollection evalResult
The evaluation result collection.

Constructor Detail

EvaluationContextFragment

public EvaluationContextFragment()
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

createParameterValuePairsFromConfiguration

public List<ParameterValuePair> createParameterValuePairsFromConfiguration(Context context)
Does create a list with the parameter value pairs of interest from the current configuration.

Parameters:
context - the context
Returns:
a list with the parameter value pairs to display

setEvaluationResult

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

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

updateView

protected void updateView()
The view update method