|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface for records of hierarchical activities with at most one parent and zero or more child subactivities.
| Method Summary | |
void |
addChild(ActivityRecord childRecord)
add child to this parent's children, and set child's parent to this |
void |
addThreadedChild(ActivityRecord childRecord)
add child (for activity which is running in another thread) to this parent's children, and set child's parent to this |
void |
finished()
called when recording an activity has finished in this thread: may be used to save space when activity is done and nothing further will be added to record for this thread. |
Collection |
getChildren()
|
List |
getChildrenInThread()
|
ActivityRecord |
getParent()
|
Collection |
getThreadedChildren()
|
boolean |
isFinished()
true if recording this record has finished for thread that created record; additions may still be made by other threads (e.g., #addThreadChild). |
void |
setParent(ActivityRecord parentRecord)
called by addChild |
| Method Detail |
public Collection getChildren()
List, and iterator returns child activities in
sequential order.public List getChildrenInThread()
public Collection getThreadedChildren()
public void addChild(ActivityRecord childRecord)
addThreadedChild(edu.mit.ai.psg.traveler.ActivityRecord)public void addThreadedChild(ActivityRecord childRecord)
addChild(edu.mit.ai.psg.traveler.ActivityRecord)public ActivityRecord getParent()
public void setParent(ActivityRecord parentRecord)
public void finished()
addThreadedChild(edu.mit.ai.psg.traveler.ActivityRecord), they may continue
to do so after the record is done in this thread.public boolean isFinished()
|
Copyright (c) 1996-1999 Massachusetts Institute of Technology Feedback: jeva-feedback@ai.mit.edu |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||