org.simbrain.workspace
Class WorkspaceSerializer
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkspaceSerializer
public WorkspaceSerializer()
readWorkspace
public static void readWorkspace(Workspace wspace,
File f,
boolean isImport)
- Read workspace file.
- Parameters:
wspace - reference to current workspacef - file containing new workspace informationisImport - 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 workspacetheFile - 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.