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

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


  }

  @Override
  public ModelElement getAdjustedAssociatedElement(Point2D scrolledPoint,
      GraphController graphController) {
    NodeModel crossing = getNearestNode(graphController, scrolledPoint);

    if (crossing == null) {
      Logger.getLogger(getClass()).debug(
          "TrafficLight could not be dropped, no crossing under the cursor at "
              + scrolledPoint);
View Full Code Here


    super.remove();
  }

  @Override
  protected void propagatePosition() {
    NodeModel crossing = getNearestNode(graphController,
        getAffectionPosition());
    if (crossing == null) {
      // this case should never occur - just to be on the safe side
      Logger.getLogger(getClass()).debug(
          "TrafficLight could not be dropped, no crossing under the cursor at "
View Full Code Here

    model.notifyObservers(new ObserverNotification(NotificationType.startBatchProcess));
    model.clearChanged();
   
    for(String id : nodes.keySet()) {
      MyNode n = nodes.get(id);
      NodeModel newNode = new NodeModel(n.lat, n.lon);
      if (n.isTrafficLight){
        TrafficLightModel trafficLight = new TrafficLightModel(newNode);
        eTrafficLights.put(id, trafficLight);
      }
//      if (n.isTrafficLight)
View Full Code Here

TOP

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

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.