Revision 135:425017023b05

View differences:

src/main/java/cz/agents/dimaptools/relaxed/RecursiveDistributedRelaxationHeuristic.java
253 253

  
254 254
		//request may be for self, or other agent
255 255
		if(agent.equals(domain.agent)){
256
			//TODO: this is a bug, should be called on the other instance's protocol
256 257
			protocol.receiveHeuristicRequestMessage(reqm, domain.agent);
257 258
		}else{
258 259
			if(LOGGER.isDebugEnabled())LOGGER.debug(comm.getAddress() + "("+id+")" + " send request " + reqm.humanize(problem.getDomain()));
......
326 327
		
327 328
		if(totalCost >= HeuristicInterface.LARGE_HEURISTIC){
328 329
			LOGGER.warn(domain.agent + "("+id+")" + " ABOUT TO SEND LH");
330
//			LOGGER.info(debugPrint());
331
//			processRequest(req,agent);
329 332
		}
330 333

  
331 334
		//find used public actions
......
351 354
//		LOGGER.info(domain.agent + "("+id+")" + " sendReply("+re.getRequestHash() +")");
352 355

  
353 356
		if(agent.equals(domain.agent)){
357
			//TODO: this is a bug, should be called on the other instance's protocol
354 358
			protocol.receiveHeuristicReplyWithPublicActionsMessage(re, domain.agent);
355 359
		}else{
356 360
			protocol.sendHeuristicReplyWithPublicActionsMessage(re,agent);
src/main/java/cz/agents/dimaptools/relaxed/RelaxationHeuristic.java
207 207
			if(domain.inDomainVar(var)){
208 208
				for(Proposition p : propositions.get(var).values()){
209 209
						p.cost = -1;
210
						p.distance = -1;
210 211
						p.marked = false;
211 212
						p.markedPub = false;
212 213
				}

Also available in: Unified diff