Revision 188:71a9c16ef70e

View differences:

src/main/java/cz/agents/dimaptools/search/DistributedBestFirstSearch.java
122 122
    }
123 123

  
124 124

  
125
    protected void addReceivedState(StateMessage sm, String sender){
125
    protected void addReceivedState(final StateMessage sm, String sender){
126 126
    	if(recomputeHeuristicOnReceive){ //should be probably done for projected heuristics
127 127
    		final SearchState newState = new SearchState(problem.initState.getDomain(),sm,sender);
128 128
    		
......
130 130
				
131 131
				@Override
132 132
				public void heuristicComputed(HeuristicResult result) {
133
					newState.setHeuristics(Math.max(result.getValue(), sm.getH()));
133 134
					open.add(newState);
134 135
				}
135 136
			});

Also available in: Unified diff