Package de.hpi.eworld.model.db.data

Examples of de.hpi.eworld.model.db.data.ModelContainer


            cEworldEventServer.ewdFile.path
            +File.separator
            +cEworldEventServer.ewdFile.name
          );

        ModelContainer mc = PersistenceManager.
          corePersistenceContainerToModelContainer(
            container
          );

        loadFromModelContainer(mc);

        log.info("Loading of map elements done.");
        log.info("Building edge tree structure.");
        buildSpacialEdgeTree();
      } else if(cEworldEventServer.jsonFile != null) {
        ModelContainer mc = PersistenceManager.modelContainerFromFile(
          cEworldEventServer.jsonFile.path
          +File.separator
          +cEworldEventServer.jsonFile.name
        );

        loadFromModelContainer(mc);
      } else if(cEworldEventServer.jsonString != null) {
        ModelContainer mc = PersistenceManager.modelContainerFromJson(
          cEworldEventServer.jsonString
        );

        loadFromModelContainer(mc);
      }
View Full Code Here


  public static ModelContainer corePersistenceContainerToModelContainer(
    final CorePersistenceContainer container
  ) {
    Collection<Object> loadedObjects = container.getItems();

    ModelContainer mc = new ModelContainer();

    for(Object o : loadedObjects) {
      if (o instanceof EnvironmentEventModel) {
        mc.envEvents.add((EnvironmentEventModel) o);
      } else if(o instanceof RoadEventModel) {
View Full Code Here

    );

    CorePersistenceContainer container =
      (CorePersistenceContainer) objIn.readObject();

    ModelContainer mc = PersistenceManager.
      corePersistenceContainerToModelContainer(
        container
      );
    objIn.close();
View Full Code Here

TOP

Related Classes of de.hpi.eworld.model.db.data.ModelContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.