org.simbrain.workspace
Class WorkspaceSerializer

java.lang.Object
  extended by org.simbrain.workspace.WorkspaceSerializer

public class WorkspaceSerializer
extends Object

WorkspaceSerializer handles workspace persistence. It contains static methods for reading and writing workspace files, and also serves as a buffer for Castor initialization.


Constructor Summary
WorkspaceSerializer()
           
 
Method Summary
 ArrayList getDataWorldList()
           
 ArrayList getGaugeList()
           
 ArrayList getNetworkList()
           
 ArrayList getOdorWorldList()
           
static void readWorkspace(Workspace wspace, File f, boolean isImport)
          Read workspace file.
 void setDataWorldList(ArrayList dataWorldList)
           
 void setGaugeList(ArrayList gaugeList)
           
 void setNetworkList(ArrayList networkList)
           
 void setOdorWorldList(ArrayList worldList)
           
static void writeWorkspace(Workspace ws, File theFile)
          Save workspace information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceSerializer

public WorkspaceSerializer()
Method Detail

readWorkspace

public static void readWorkspace(Workspace wspace,
                                 File f,
                                 boolean isImport)
Read workspace file.

Parameters:
wspace - reference to current workspace
f - file containing new workspace information
isImport - whether this workspace is being imported or opened

writeWorkspace

public static void writeWorkspace(Workspace ws,
                                  File theFile)
Save workspace information.

Parameters:
ws - reference to current workspace
theFile - file to save information to

getNetworkList

public ArrayList getNetworkList()
Returns:
Returns the networkList.

setNetworkList

public void setNetworkList(ArrayList networkList)
Parameters:
networkList - The networkList to set.

getOdorWorldList

public ArrayList getOdorWorldList()
Returns:
Returns the odorWorldList.

setOdorWorldList

public void setOdorWorldList(ArrayList worldList)
Parameters:
worldList - The odorWorldList to set.

getGaugeList

public ArrayList getGaugeList()
Returns:
Returns the gaugeList.

setGaugeList

public void setGaugeList(ArrayList gaugeList)
Parameters:
gaugeList - The gaugeList to set.

getDataWorldList

public ArrayList getDataWorldList()
Returns:
Returns the dataWorldList.

setDataWorldList

public void setDataWorldList(ArrayList dataWorldList)
Parameters:
dataWorldList - The dataWorldList to set.