Changeset 31

Show
Ignore:
Timestamp:
10/16/07 15:56:30 (1 year ago)
Author:
alexander
Message:

NodeHandle the method getProximity() is missing the required parameter NodeHandle to calculate a distance between the own NodeHandle and the NodeHandle given as parameter

Location:
trunk/src/planet
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/planet/commonapi/NodeHandle.java

    r2 r31  
    3939         * Evaluates the proximity between the node who invokes this method, 
    4040         * and the node that represents this NodeHandle. 
    41          * @return The proximity between the two nodes, who invokes and  
    42          * the node represented by this NodeHandle. 
     41         * @param nodeHandle The NodeHandle to which the proximity should be evaluated 
     42         * @return The proximity between the node represented through this NodeHandle and the parameter 
    4343         */ 
    44         public abstract int getProximity(); 
     44        public abstract int getProximity(NodeHandle nodeHandle); 
    4545     
    4646    /** 
  • trunk/src/planet/generic/commonapi/NodeHandleImpl.java

    r2 r31  
    11package planet.generic.commonapi; 
    22 
     3import planet.commonapi.Id; 
    34import planet.commonapi.NodeHandle; 
    4 import planet.commonapi.Id; 
    55 
    66/** 
     
    7171         * @return Always one 
    7272         */ 
    73         public int getProximity() { 
     73        public int getProximity(NodeHandle nodehandle) { 
    7474                return 1; 
    7575        }