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

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


     */
    List<?> elementList = (List<?>) argument;
    List<String> idList = new ArrayList<String>();
    String id;
    stringBuffer.append(TEXT_1);
    AbstractNodeModel abstractNode;
    NodeModel node = null;
    String type = "";
    for (Iterator<?> i = elementList.iterator(); i.hasNext();) {
      abstractNode = (AbstractNodeModel) i.next();
      // abstractNode is either NodeModel or TrafficLightModel!
      if (abstractNode.getClass().equals(NodeModel.class)) {
        type = "priority";
        node = (NodeModel) abstractNode;
      }
      else if (abstractNode.getClass().equals(TrafficLightModel.class)) {
        type = "traffic_light";
        node = ((TrafficLightModel) abstractNode).getNode();
      }
     
      id = node.getInternalID();
View Full Code Here

TOP

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

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.