diagapplet
Class diagPreserve

java.lang.Object
  extended by diagapplet.diagPreserve
All Implemented Interfaces:
java.io.Serializable

public class diagPreserve
extends java.lang.Object
implements java.io.Serializable

Stores all of the information kept between sessions by the diagnostics tool. Everything is accessed though getter/setter functions to be compatible with XMLDecoder/XMLEncoder as the files are saved in XML

See Also:
Serialized Form

Field Summary
protected  boolean Automatically_Keep_and_Use_PlotSets
           
 
Constructor Summary
diagPreserve()
          Creates a new instance of diagPreserve
 
Method Summary
 boolean get_connected()
          Get the value of connected flag from last run.
 java.util.Vector<java.lang.String> get_recentNmlConfigFileVector()
          Get Recent NML Config Files.
 java.util.Vector<auxBufferPreserve> getAuxBuffersVector()
           
 java.lang.String getDefaultNMLConfigFile()
          Getter for property defaultNMLConfigFile.
 int getHeight()
          Getter for property height.
 java.util.Vector<modulePreserve> getModulesVector()
          Getter for property ModulesVector.
 plotSetPreserve getPlotSet()
          Getter for property plotSet.
 java.util.Vector<java.lang.String> getRecentPlotSets()
          Getter for property recentPlotSets.
 java.lang.String getSelectedAuxChannel()
          Getter for property selectedAuxChannel.
 java.lang.String getSelectedModule()
          Getter for property selectedModule.
 int getSelectedTab()
          Getter for property selectedTab.
 int getWidth()
          Getter for property width.
 int getWindow_state()
          Getter for property window_state.
 int getX()
          Getter for property x.
 int getY()
          Getter for property y.
 boolean is_connected()
          Get the value of connected flag from last run.
 boolean isAuto_connect_disconnect()
          Getter for property auto_connect_disconnect.
 boolean isAutomatically_Keep_and_Use_PlotSets()
          Get the value of Automatically_Keep_and_Use_PlotSets
 boolean isMoved()
          Getter for property moved.
 boolean isResized()
          Getter for property resized.
 void set_connected(boolean _connected)
          Set a flag so the diagnostics too will reconnect or not when next restarted.
 void set_recentNmlConfigFileVector(java.util.Vector<java.lang.String> _recentNmlConfigFileVector)
          Set The vector of strings of NML config file names.
 void setAuto_connect_disconnect(boolean auto_connect_disconnect)
          Setter for property auto_connect_disconnect.
 void setAutomatically_Keep_and_Use_PlotSets(boolean Automatically_Keep_and_Use_PlotSets)
          Set the value of Automatically_Keep_and_Use_PlotSets
 void setAuxBuffersVector(java.util.Vector<auxBufferPreserve> AuxBuffersVector)
           
 void setDefaultNMLConfigFile(java.lang.String defaultNMLConfigFile)
          Setter for property defaultNMLConfigFile.
 void setHeight(int height)
          Setter for property height.
 void setModulesVector(java.util.Vector<modulePreserve> ModulesVector)
          Setter for property ModulesVector.
 void setMoved(boolean moved)
          Setter for property moved.
 void setPlotSet(plotSetPreserve plotSet)
          Setter for property plotSet.
 void setRecentPlotSets(java.util.Vector<java.lang.String> recentPlotSets)
          Setter for property recentPlotSets.
 void setResized(boolean resized)
          Setter for property resized.
 void setSelectedAuxChannel(java.lang.String selectedAuxChannel)
          Setter for property selectedAuxChannel.
 void setSelectedModule(java.lang.String selectedModule)
          Setter for property selectedModule.
 void setSelectedTab(int selectedTab)
          Setter for property selectedTab.
 void setWidth(int width)
          Setter for property width.
 void setWindow_state(int window_state)
          Setter for property window_state.
 void setX(int x)
          Setter for property x.
 void setY(int y)
          Setter for property y.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Automatically_Keep_and_Use_PlotSets

protected boolean Automatically_Keep_and_Use_PlotSets
Constructor Detail

diagPreserve

public diagPreserve()
Creates a new instance of diagPreserve

Method Detail

isAutomatically_Keep_and_Use_PlotSets

public boolean isAutomatically_Keep_and_Use_PlotSets()
Get the value of Automatically_Keep_and_Use_PlotSets

Returns:
the value of Automatically_Keep_and_Use_PlotSets

setAutomatically_Keep_and_Use_PlotSets

public void setAutomatically_Keep_and_Use_PlotSets(boolean Automatically_Keep_and_Use_PlotSets)
Set the value of Automatically_Keep_and_Use_PlotSets

Parameters:
Automatically_Keep_and_Use_PlotSets - new value of Automatically_Keep_and_Use_PlotSets

get_recentNmlConfigFileVector

public java.util.Vector<java.lang.String> get_recentNmlConfigFileVector()
Get Recent NML Config Files.

Returns:
Vector of strings of names of previously used NML config files.

set_recentNmlConfigFileVector

public void set_recentNmlConfigFileVector(java.util.Vector<java.lang.String> _recentNmlConfigFileVector)
Set The vector of strings of NML config file names.

Parameters:
_recentNmlConfigFileVector -

set_connected

public void set_connected(boolean _connected)
Set a flag so the diagnostics too will reconnect or not when next restarted. (It may be over written with a setting on the command line or in the diagnostics config file.)

Parameters:
_connected -

get_connected

public boolean get_connected()
Get the value of connected flag from last run.

Returns:
Was the tool connected when state last saved?

is_connected

public boolean is_connected()
Get the value of connected flag from last run. (redundant with get_connected.)

Returns:
Was the tool connected when state last saved?

getSelectedModule

public java.lang.String getSelectedModule()
Getter for property selectedModule.

Returns:
Value of property selectedModule ( the name of the last selected module. )

setSelectedModule

public void setSelectedModule(java.lang.String selectedModule)
Setter for property selectedModule.

Parameters:
selectedModule - New value of property selectedModule (the name of the selected module).

getModulesVector

public java.util.Vector<modulePreserve> getModulesVector()
Getter for property ModulesVector.

Returns:
Value of property ModulesVector. (Vector containing one modulePreserve object for each module in the hierarchy.)

setModulesVector

public void setModulesVector(java.util.Vector<modulePreserve> ModulesVector)
Setter for property ModulesVector.

Parameters:
ModulesVector - New value of property ModulesVector. (Vector containing one modulePreserve object for each module in the hierarchy.)

getSelectedAuxChannel

public java.lang.String getSelectedAuxChannel()
Getter for property selectedAuxChannel.

Returns:
Value of property selectedAuxChannel.

setSelectedAuxChannel

public void setSelectedAuxChannel(java.lang.String selectedAuxChannel)
Setter for property selectedAuxChannel.

Parameters:
selectedAuxChannel - New value of property selectedAuxChannel.

getSelectedTab

public int getSelectedTab()
Getter for property selectedTab.

Returns:
Value of property selectedTab.

setSelectedTab

public void setSelectedTab(int selectedTab)
Setter for property selectedTab.

Parameters:
selectedTab - New value of property selectedTab.

getPlotSet

public plotSetPreserve getPlotSet()
Getter for property plotSet.

Returns:
Value of property plotSet.

setPlotSet

public void setPlotSet(plotSetPreserve plotSet)
Setter for property plotSet.

Parameters:
plotSet - New value of property plotSet.

getRecentPlotSets

public java.util.Vector<java.lang.String> getRecentPlotSets()
Getter for property recentPlotSets.

Returns:
Value of property recentPlotSets.

setRecentPlotSets

public void setRecentPlotSets(java.util.Vector<java.lang.String> recentPlotSets)
Setter for property recentPlotSets.

Parameters:
recentPlotSets - New value of property recentPlotSets.

isMoved

public boolean isMoved()
Getter for property moved.

Returns:
Value of property moved.

setMoved

public void setMoved(boolean moved)
Setter for property moved.

Parameters:
moved - New value of property moved.

getX

public int getX()
Getter for property x.

Returns:
Value of property x.

setX

public void setX(int x)
Setter for property x.

Parameters:
x - New value of property x.

getY

public int getY()
Getter for property y.

Returns:
Value of property y.

setY

public void setY(int y)
Setter for property y.

Parameters:
y - New value of property y.

isResized

public boolean isResized()
Getter for property resized.

Returns:
Value of property resized.

setResized

public void setResized(boolean resized)
Setter for property resized.

Parameters:
resized - New value of property resized.

getWidth

public int getWidth()
Getter for property width.

Returns:
Value of property width.

setWidth

public void setWidth(int width)
Setter for property width.

Parameters:
width - New value of property width.

getHeight

public int getHeight()
Getter for property height.

Returns:
Value of property height.

setHeight

public void setHeight(int height)
Setter for property height.

Parameters:
height - New value of property height.

getDefaultNMLConfigFile

public java.lang.String getDefaultNMLConfigFile()
Getter for property defaultNMLConfigFile.

Returns:
Value of property defaultNMLConfigFile.

setDefaultNMLConfigFile

public void setDefaultNMLConfigFile(java.lang.String defaultNMLConfigFile)
Setter for property defaultNMLConfigFile.

Parameters:
defaultNMLConfigFile - New value of property defaultNMLConfigFile.

getWindow_state

public int getWindow_state()
Getter for property window_state.

Returns:
Value of property window_state.

setWindow_state

public void setWindow_state(int window_state)
Setter for property window_state.

Parameters:
window_state - New value of property window_state.

isAuto_connect_disconnect

public boolean isAuto_connect_disconnect()
Getter for property auto_connect_disconnect.

Returns:
Value of property auto_connect_disconnect.

setAuto_connect_disconnect

public void setAuto_connect_disconnect(boolean auto_connect_disconnect)
Setter for property auto_connect_disconnect.

Parameters:
auto_connect_disconnect - New value of property auto_connect_disconnect.

getAuxBuffersVector

public java.util.Vector<auxBufferPreserve> getAuxBuffersVector()
Returns:
the AuxBuffersVector

setAuxBuffersVector

public void setAuxBuffersVector(java.util.Vector<auxBufferPreserve> AuxBuffersVector)
Parameters:
AuxBuffersVector - the AuxBuffersVector to set