Changeset 42

Show
Ignore:
Timestamp:
09/05/08 10:48:14 (4 months ago)
Author:
jeroen
Message:

The underlay aware extension as submitted to SourceForge?.

Changes to the original PlanetSim distribution:
- planet.generic.commonapi.NetworkImpl?: Fixed a bug in joinNode()

If a node is not the first to join the network it will also be
added to the nodes Map.


- planet.generic.commonapi.NetworkImpl?: Added a method "Node getNode(NodeHandle handle)"
- planet.generic.commonapi.Properties: PropertiesWrapper? properties is now protected

Location:
branches/underlay_aware
Files:
34 added
2 modified

Legend:

Unmodified
Added
Removed
  • branches/underlay_aware/src/planet/generic/commonapi/NetworkImpl.java

    r34 r42  
    136136        } else { 
    137137            Node boot = (Node)nodes.values().iterator().next(); //constant view of Id of nodes 
     138            nodes.put(node.getLocalHandle(), node); 
    138139            node.join(boot.getLocalHandle()); 
    139140        } 
     
    689690        return nodes.containsKey(node); 
    690691    } 
     692     
     693     
     694    /** 
     695     * Returns the node corresponding to the given node handle 
     696     *  
     697     * @param handle The given handle 
     698     * @return The corresponding node 
     699     */ 
     700    public Node getNode(NodeHandle handle) { 
     701        return (Node) nodes.get(handle); 
     702    } 
     703     
    691704 
    692705    /** 
  • branches/underlay_aware/src/planet/util/Properties.java

    r34 r42  
    569569     * Internal property: To contain all attributes loaded from the external file. 
    570570     */ 
    571     private static PropertiesWrapper properties                                 = null; 
     571    protected static PropertiesWrapper properties                                 = null; 
    572572    /** 
    573573     * Internal property: Shows when the applicaton level has been activated.