|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.gui.monitor.GuiObject frysk.gui.monitor.observers.ObserverRoot
public class ObserverRoot
A more sophisticated implementer of Observer. provides name and tool tip strings for GUI display purposes. Takes Action objects that can be used by clients to customize behaviour.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface frysk.proc.TaskObserver |
---|
TaskObserver.Cloned, TaskObserver.Code, TaskObserver.Execed, TaskObserver.Forked, TaskObserver.Instruction, TaskObserver.Signaled, TaskObserver.Syscalls, TaskObserver.Terminated, TaskObserver.Terminating, TaskObserver.Watch |
Field Summary | |
---|---|
private ObservableLinkedList |
actionPoints
|
private ObservableLinkedList |
actions
|
private String |
baseName
|
private ObservableLinkedList |
filterPoints
|
GenericActionPoint |
genericActionPoint
|
private String |
info
|
private Action |
returnAction
|
Fields inherited from class frysk.gui.monitor.GuiObject |
---|
propertiesChanged |
Constructor Summary | |
---|---|
protected |
ObserverRoot()
|
protected |
ObserverRoot(ObserverRoot other)
|
protected |
ObserverRoot(String name,
String toolTip)
|
Method Summary | |
---|---|
protected void |
addActionPoint(ActionPoint actionPoint)
|
void |
addedTo(Object observable)
Acknowledge the request to add this Observer from Object's set of observers was successful. |
void |
addFailed(Object o,
Throwable w)
Notify that the attempt to add to the specified observer failed. |
protected void |
addFilterPoint(FilterPoint filterPoint)
|
void |
deletedFrom(Object observable)
Acknowledge the request to delete this Observer from Object's set of observers was successful (or that the Observer was spontaneously deleted, e.g., due to a task exit). |
ObservableLinkedList |
getActionPoints()
|
String |
getBaseName()
|
protected GuiObject |
getCopy()
|
Action |
getCurrentAction()
|
ObservableLinkedList |
getCurrentActionCombos()
Returns combo objects representing the currently applied actions. |
ObservableLinkedList |
getCurrentFilterCombos()
Returns combo objects representing the currently applied filters. |
ObservableLinkedList |
getFilterPoints()
|
String |
getInfo()
Could be called by an action during the update call to get print generic information about the event that just occurred format (as currently used by logger): PID 123 did action ACTION on Host HOST |
void |
load(Element node)
To load a stored property one does this: String someString = node.getAttributeValue("someString"); To load @link frysk.gui.monitor.SaveableXXX one gets the appropriet node and tells that object to load itself from that node. |
private Action |
loadReturnAction(Element node)
|
protected void |
runActions()
|
void |
save(Element node)
Save object to the given node Saving Conventions: If this object has a property such as a String, char, int, etc, that is saved by using node.setAttribute("someProperty", someProperty); If this object contains composing @link frysk.gui.monitor.SaveableXXX then a node is created for that and that object is told to save itself to that node. |
private void |
saveReturnAction(Element node)
|
protected void |
setInfo(String info)
Should be called whent the observer has fired. |
void |
setReturnAction(Action action)
Used to set which action is taken by the observer with respect to resuming execution of the observed thread after all the actions are executed. |
protected Action |
whatActionShouldBeReturned()
Should be used by inheriting observers to get the desired Action with respect to stoping/resumeing execution of the observed thread. |
Methods inherited from class frysk.gui.monitor.GuiObject |
---|
dontSaveObject, doSaveObject, getName, getSummary, getToolTip, setName, setSummay, setToolTip, shouldSaveObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface frysk.gui.monitor.SaveableXXX |
---|
dontSaveObject, doSaveObject, shouldSaveObject |
Field Detail |
---|
private ObservableLinkedList actions
private String info
private ObservableLinkedList filterPoints
private ObservableLinkedList actionPoints
private final String baseName
public GenericActionPoint genericActionPoint
private Action returnAction
Constructor Detail |
---|
protected ObserverRoot()
protected ObserverRoot(String name, String toolTip)
protected ObserverRoot(ObserverRoot other)
Method Detail |
---|
public void addFailed(Object o, Throwable w)
Observer
addFailed
in interface Observer
public String getInfo()
protected void setInfo(String info)
info
- info string to be setprotected void runActions()
public ObservableLinkedList getFilterPoints()
public ObservableLinkedList getActionPoints()
protected void addFilterPoint(FilterPoint filterPoint)
protected void addActionPoint(ActionPoint actionPoint)
public String getBaseName()
private void saveReturnAction(Element node)
private Action loadReturnAction(Element node)
public void save(Element node)
SaveableXXX
save
in interface SaveableXXX
save
in class GuiObject
public void load(Element node)
SaveableXXX
load
in interface SaveableXXX
load
in class GuiObject
protected GuiObject getCopy()
getCopy
in class GuiObject
public ObservableLinkedList getCurrentFilterCombos()
Combo.
public ObservableLinkedList getCurrentActionCombos()
Combo.
public void setReturnAction(Action action)
protected Action whatActionShouldBeReturned()
public Action getCurrentAction()
public void addedTo(Object observable)
Observer
addedTo
in interface Observer
public void deletedFrom(Object observable)
Observer
deletedFrom
in interface Observer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |