public class StoreController
extends java.lang.Object
Constructor and Description |
---|
StoreController(Model model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getObjectType(AbstractCpsObject cps)
Return the Object Type.
|
void |
writeCanvasElements(org.json.simple.JSONObject json)
Write Canvas Elements.
|
void |
writeCanvasFile(java.lang.String path)
Write the Canvas File.
|
void |
writeCanvasObjects(org.json.simple.JSONObject json)
Wrte Canvas Objects.
|
void |
writeCategory(org.json.simple.JSONObject json)
writes all Categories into a JSONObject.
|
void |
writeCategoryElements(org.json.simple.JSONObject json)
writes all Elements in Objects in Category into a JSONObject.
|
void |
writeCategoryFile(java.lang.String path)
Write the Category File.
|
void |
writeCategoryObjects(org.json.simple.JSONObject json)
writes all Objects in Category into a JSONObject.
|
void |
writeEdges(org.json.simple.JSONObject json)
write all Edges into a JSONObject.
|
void |
writeElementGraph(org.json.simple.JSONObject json)
writes the Graph from all Elements into a JSONObject.
|
void |
writeSaveFile(java.lang.String path)
Writes the current State of the Modelling into a JSON File which can be
loaded.
|
public StoreController(Model model)
model
- the Modelpublic void writeSaveFile(java.lang.String path) throws java.io.IOException
path
- the Pathjava.io.IOException
- exceptionpublic void writeCanvasFile(java.lang.String path) throws java.io.IOException
path
- the Pathjava.io.IOException
- Exceptionpublic void writeCategoryFile(java.lang.String path) throws java.io.IOException
path
- the Pathjava.io.IOException
- exceptionpublic void writeCategory(org.json.simple.JSONObject json)
json
- JSON Objectjava.io.IOException
- exceptionpublic void writeCategoryObjects(org.json.simple.JSONObject json)
json
- JSON Objectpublic void writeCanvasObjects(org.json.simple.JSONObject json)
json
- JSON Objectpublic void writeCategoryElements(org.json.simple.JSONObject json)
json
- JSON Objectpublic void writeCanvasElements(org.json.simple.JSONObject json)
json
- JSON Objectspublic void writeEdges(org.json.simple.JSONObject json)
json
- JSON Objectpublic void writeElementGraph(org.json.simple.JSONObject json)
json
- JSON Objectpublic java.lang.String getObjectType(AbstractCpsObject cps)
cps
- AbstractCpsObject