cz.cuni.amis.utils.floydwarshall
Interface FWMap<NODE>

Package class diagram package FWMap

Deprecated.

@Deprecated
public interface FWMap<NODE>

This class represents the search space for Floyd-Warshall algorithm.

  1. we need to know which nodes are part of the map
  2. we need to know the travel cost between two nodes (edge cost)


Method Summary
 int getEdgeCost(NODE nodeFrom, NODE nodeTo)
          Deprecated. Should return the distance from nodeFrom to nodeTo.
 int getNodeCost(NODE node)
          Deprecated. General cost of having this node at your path.
 List<NODE> getNodes()
          Deprecated. This must return the list of ALL NODES that are present in your map (== environment).
 

Method Detail

getNodes

List<NODE> getNodes()
Deprecated. 
This must return the list of ALL NODES that are present in your map (== environment). These nodes are going to be then used for FW.

IT IS FORBIDDEN TO SHUFFLE NODES IN THIS LIST ... IT MUST ALWAYS RETURN THE VERY SAME LIST (or at least list that is having every node in the place it was before).


getNodeCost

int getNodeCost(NODE node)
Deprecated. 
General cost of having this node at your path. This allows you to say how every node appeals to the agent, it may specify "this is a cool node, try to get it on your path" (negative cost) or "this is neutral node" (zero cost) or "this is a bad node to have on your path" (positive cost).

Parameters:
node -
Returns:

getEdgeCost

int getEdgeCost(NODE nodeFrom,
                NODE nodeTo)
Deprecated. 
Should return the distance from nodeFrom to nodeTo. You can be sure that nodeTo is among the neighbours of nodeFrom.

Parameters:
nodeFrom -
nodeTo -
Returns:
cost of an edge


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.