|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IOSubsytem
Access to loading/saving and import/export of models.
| Field Summary | |
|---|---|
static java.lang.String |
MODEL_FILE_EXT
Extension for model files. |
static java.lang.String |
WORKSPACE_FILE_EXT
Extension for workspace files. |
| Method Summary | |
|---|---|
void |
export(DESModel model,
java.io.File dst,
java.lang.String description)
Export a model to the format given in the description. |
java.io.File |
getFileOfModel(DESModel model)
Determine the file, if any, where the given model is saved. |
DESModel |
importFile(java.io.File src,
java.lang.String description)
Import a model. |
DESModel |
load(java.io.File file)
Load a DES model from a file. |
void |
save(DESModel model,
java.io.File file)
Save a DES model to a file. |
void |
setFileOfModel(DESModel model,
java.io.File file)
Specify the file where a model is saved. |
| Field Detail |
|---|
static final java.lang.String WORKSPACE_FILE_EXT
static final java.lang.String MODEL_FILE_EXT
| Method Detail |
|---|
DESModel load(java.io.File file)
throws java.io.IOException
file - the file with the model.
java.io.IOException - if there is a problem while loading the modelFileLoadException
void save(DESModel model,
java.io.File file)
throws java.io.IOException
Note: if the file exists, it will be over-written without any notification.
model - the modelfile - the file where the model should be saved
java.io.IOException - if there is a problem while saving the model
DESModel importFile(java.io.File src,
java.lang.String description)
throws java.io.IOException
IOPluginManager.getImporters().
src - the file to be importeddescription - the description of the file format
java.io.IOException - if there is a problem while importing the modelIOPluginManager.getImporters(),
ImportExportPlugin.getFileDescription(),
FileLoadException
void export(DESModel model,
java.io.File dst,
java.lang.String description)
throws java.io.IOException
IOPluginManager.getExporters().
model - the model to be exporteddst - the file where the exported model should be saveddescription - the description of the file format
java.io.IOException - if there is a problem while exporting the modelIOPluginManager.getExporters(),
ImportExportPlugin.getFileDescription()java.io.File getFileOfModel(DESModel model)
model - the model
null if the
model has not been saved in a file yet
void setFileOfModel(DESModel model,
java.io.File file)
null.
This method simply sets an annotation. This method does not cause the
model to be saved. To save a model, use save(DESModel, File).
model - the modelfile - the file where the model is saved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||