org.android.activityminer.model.util
Class TaskFinishedEvent

Package class diagram package TaskFinishedEvent
java.lang.Object
  extended by org.android.activityminer.model.util.TaskFinishedEvent
All Implemented Interfaces:
Parcelable, ObservableEvent
Direct Known Subclasses:
FeatureExtractionFromDBRecordingStatisitcTaskFinishedEvent

public class TaskFinishedEvent
extends Object
implements ObservableEvent, Parcelable

Notification type for asynchronous task which support observation for task finished events.


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
 String className
          The class name of the object signaling this event
static Parcelable.Creator<TaskFinishedEvent> CREATOR
          The Parcelable creator.
 String result
          Result message
 boolean success
          Success state.
 String task
          Task description
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
TaskFinishedEvent(Object source, boolean success)
          Constructor
TaskFinishedEvent(Object source, boolean success, String task, String result)
          Constructor
TaskFinishedEvent(Parcel source)
          Constructor
 
Method Summary
 int describeContents()
           
 void writeToParcel(Parcel dest, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

public final String className
The class name of the object signaling this event


success

public final boolean success
Success state.


result

public final String result
Result message


task

public final String task
Task description


CREATOR

public static final Parcelable.Creator<TaskFinishedEvent> CREATOR
The Parcelable creator.

Constructor Detail

TaskFinishedEvent

public TaskFinishedEvent(Object source,
                         boolean success,
                         String task,
                         String result)
Constructor

Parameters:
source - the instance signaling this event
success - success flag
task - task description
result - result message

TaskFinishedEvent

public TaskFinishedEvent(Object source,
                         boolean success)
Constructor

Parameters:
source - the instance signaling this event
success - success flag

TaskFinishedEvent

public TaskFinishedEvent(Parcel source)
Constructor

Parameters:
source -
Method Detail

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface Parcelable