|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dbe.eve.simulator.ModelSerialization
public class ModelSerialization
The ModelSerialization has some static methods to store and load model data
Field Summary | |
---|---|
(package private) static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
---|---|
ModelSerialization()
|
Method Summary | |
---|---|
static void |
addRelationshipsFromCSV(SMERelationships srs,
java.lang.String path)
Gets all relationsships from a CSV file |
static boolean |
loadModelFromCSV(EvEModel model)
loads data from one or more csv files into the model |
static boolean |
loadModelFromXML(EvEModel model)
shows a file open dialog. if a file is selected the readXMLFile method is called |
static void |
loadParametersFromXML(EvEModel model)
Load model parameters from xml file |
static void |
main(java.lang.String[] args)
To test the findNewFriend algorithm |
static SMERelationships |
readCSVFiles(java.io.File[] fileList)
Returns all SME relationships from all files in the list |
static boolean |
readXMLFile(EvEModel model,
java.io.File file)
loads data from a xml file into the model |
static boolean |
saveModelToXML(EvEModel model)
Stores all information from the model to a XML file |
static void |
saveParametersToXML(EvEModel model)
Stores all parameters from the model to a xml file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static org.apache.log4j.Logger logger
Constructor Detail |
---|
public ModelSerialization()
Method Detail |
---|
public static boolean loadModelFromCSV(EvEModel model)
model
- a repast model
public static void loadParametersFromXML(EvEModel model)
public static void saveParametersToXML(EvEModel model)
model
- the modelpublic static boolean loadModelFromXML(EvEModel model)
model
- a repast model
public static boolean saveModelToXML(EvEModel model)
model
- the model
public static void addRelationshipsFromCSV(SMERelationships srs, java.lang.String path)
srs
- the SMERelationships where the new relations should be addedpath
- the path of the filepublic static SMERelationships readCSVFiles(java.io.File[] fileList)
fileList
- a list of CSV files
public static boolean readXMLFile(EvEModel model, java.io.File file)
model
- a repast model
public static void main(java.lang.String[] args)
args
- nothing required
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |