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

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


  private void addModelElements(int n, ModelManager instance)
  {
    Random rand = new Random();
    for(int i = 0 ; i < n; i++)
    {
      ModelElement e = new NodeModel(rand.nextDouble(), rand.nextDouble());
      instance.addModelElement(e);
    }
  }
View Full Code Here


      modelManager.setChanged();
      modelManager.notifyObservers(new ObserverNotification(NotificationType.startBatchProcess));
      modelManager.clearChanged();

      for (final Object obj : items) {
        final ModelElement me = (ModelElement) obj;
        modelManager.addModelElement(me);
      }

      modelManager.setSimulationStartTime(ppcModel.getSimulationStartTime());
      modelManager.setSimulationEndTime(ppcModel.getSimulationEndTime());
View Full Code Here

     * The Items method getAdjustedAssociatedElement() creates and
     * initializes a new ModelElement.getAdjustedAssociatedElement()
     * computes the location and all necessary attributes of the
     * ModelElement.
     */
    ModelElement model = item.getAdjustedAssociatedElement(globalPoint, this);
    if (!ModelManager.getInstance().addModelElement(model)) {
      logger.error("ModelElement could not be added to the ModelManager");
    } else {
      getGraphModel().getGraph().repaint();
    }
View Full Code Here

TOP

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

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.