frysk.gui.sessions
Class DebugProcess

java.lang.Object
  extended by frysk.gui.monitor.GuiObject
      extended by frysk.gui.sessions.DebugProcess
All Implemented Interfaces:
SaveableXXX

public class DebugProcess
extends GuiObject

A container that refers to an executable there could be zero or many instances of these executable. This keeps track of those too.


Field Summary
 
Fields inherited from class frysk.gui.monitor.GuiObject
propertiesChanged
 
Constructor Summary
DebugProcess()
          Create a new Debug Process.
DebugProcess(DebugProcess other)
          Create a new Debug Process.
DebugProcess(String name, String altName, String executablePath)
          * Create a new Debug Process.
 
Method Summary
 void addProc(GuiProc guiProc)
          Adds a GuiProc to the Debug Process
 void addTagset(Tagset tagset)
          Adds a tagset to the debug process
 String getAlternativeDisplayName()
          Returns the alternative name of the debug process
 GuiObject getCopy()
           
 String getExecutablePath()
           
 ObservableLinkedList getProcs()
          getProcs() Returns a linked list of processes in a debug process.
 String getRealName()
          Returns the real name of this process.
 ObservableLinkedList getTagsets()
          Returns a list of tag sets that have been added to this debug process.
 WatchList getWatchList()
          Returns the list of variables currently being watched from this process
 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.
 void removeObserverByName(String observerName)
          Removes an observer from the list of observers to be added to the debug process on load.
 void removeProc(GuiProc guiProc)
          Removes a GuiProc from the list of GuiProcs representred by this process.
 void removeTagset(Tagset tagset)
          Remove a tagset from this debug process
 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.
 void setAlternativeDisplayName(String name)
          Allows you to set a name that is different from the underlying process.
 void setExecutablePath(String executablePath)
           
 void setRealName(String name)
          Allows you to set the real name (ie system) name of the process
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DebugProcess

public DebugProcess()
Create a new Debug Process. A session is comprised of n debug processes. A debug process stores a process name, and what observer to apply to that process when a session is loaded.


DebugProcess

public DebugProcess(DebugProcess other)
Create a new Debug Process. A session is comprised of n debug processes. A debug process stores a process name, and what observer to apply to that process when a session is loaded.

Parameters:
other - - Create a debug process from the the given parameter. Used in copying a debug process.

DebugProcess

public DebugProcess(String name,
                    String altName,
                    String executablePath)
* Create a new Debug Process. A session is comprised of n debug processes. A debug process stores a process name, and what observer to apply to that process when a session is loaded.

Parameters:
name - - The name of the process
altName - - The display name of the process
executablePath - - Where the process can be found on disk
Method Detail

addProc

public void addProc(GuiProc guiProc)
Adds a GuiProc to the Debug Process

Parameters:
guiProc - - GuiProc that is to be added

addTagset

public void addTagset(Tagset tagset)
Adds a tagset to the debug process

Parameters:
tagset - - tagset to be added.

getAlternativeDisplayName

public String getAlternativeDisplayName()
Returns the alternative name of the debug process

Returns:
String.

getCopy

public GuiObject getCopy()

getProcs

public ObservableLinkedList getProcs()
getProcs() Returns a linked list of processes in a debug process.

Returns:
Observable linked list of processes.

getRealName

public String getRealName()
Returns the real name of this process. The real name is normally the system name of the process.

Returns:
String.

getTagsets

public ObservableLinkedList getTagsets()
Returns a list of tag sets that have been added to this debug process.

Returns:
ObservableLinkedList of tagsets.

getWatchList

public WatchList getWatchList()
Returns the list of variables currently being watched from this process

Returns:
WatchList containing the variables from this process

removeObserverByName

public void removeObserverByName(String observerName)
Removes an observer from the list of observers to be added to the debug process on load.

Parameters:
observerName - - Observer name to remove

removeProc

public void removeProc(GuiProc guiProc)
Removes a GuiProc from the list of GuiProcs representred by this process.

Parameters:
guiProc - - GuiProc to remove.

removeTagset

public void removeTagset(Tagset tagset)
Remove a tagset from this debug process

Parameters:
tagset - - the tagset to remove.

setAlternativeDisplayName

public void setAlternativeDisplayName(String name)
Allows you to set a name that is different from the underlying process.

Parameters:
name - - Alternative name to display in the session.

setRealName

public void setRealName(String name)
Allows you to set the real name (ie system) name of the process

Parameters:
name - - Name of the process.

save

public void save(Element node)
Description copied from interface: SaveableXXX
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. Example: Element filtersNode = new Element("filtersList"); this.filtersList.save(filtersNode); node.addContent(filtersNode); Be careful some times one wants to save the objects name rather than the object itself, and then use the name to later recreate that object via a managers. Like observers for instance. Perhaps objects such as these should be smart enough to use a manager to save/load themselves, that way an api client doesnt have to worry ... one day :).

Specified by:
save in interface SaveableXXX
Overrides:
save in class GuiObject

load

public void load(Element node)
Description copied from interface: SaveableXXX
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. Example: Element filtersNode = node.getChild("filtersList"); this.filtersList.load(filtersNode);

Specified by:
load in interface SaveableXXX
Overrides:
load in class GuiObject

setExecutablePath

public void setExecutablePath(String executablePath)

getExecutablePath

public String getExecutablePath()