|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.ut2004.navigation.evaluator.bot.PathContainer
public class PathContainer
Container for path evaluation. Provides paths which should be evaluated.
| Constructor Summary | |
|---|---|
PathContainer(cz.cuni.amis.pogamut.base3d.worldview.IVisionWorldView world)
Create container for given world view. |
|
PathContainer(Object object,
boolean loadFromFile,
File dataFile)
|
|
| Method Summary | |
|---|---|
boolean |
addTabooPath(Path path)
|
void |
build()
Builds set of paths between all NavPoints of given map. |
void |
buildFromFile(File file,
boolean isRepeat)
Loads path container from CSV file. |
void |
buildRelevant()
Build set of all relevant paths for given map. |
void |
buildRelevant(int limit)
Build set of all relevant paths for given map. |
void |
exportToFile(String path)
|
Path |
getPath()
Get any path from container. |
Path |
getPath(NavPoint start)
Get path with start at given NavPoint. |
boolean |
isEmpty()
Checks whether container is empty. |
boolean |
isInitialized()
|
void |
removePathsFromFile(String path)
|
void |
setWorld(cz.cuni.amis.pogamut.base3d.worldview.IVisionWorldView world)
|
int |
size()
Returns size of the container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathContainer(cz.cuni.amis.pogamut.base3d.worldview.IVisionWorldView world)
world -
public PathContainer(Object object,
boolean loadFromFile,
File dataFile)
| Method Detail |
|---|
public Path getPath()
public Path getPath(NavPoint start)
NavPoint. When such path doesn't
exist, returns path from nearest NavPoint from which some path
exists.
start - Where the path should start
public void build()
NavPoints of given map.
public void buildRelevant(int limit)
NavPoints which are either inventory spots or player
starts.
limit - Max number of paths built. If limit < 0 build all paths.public void buildRelevant()
NavPoints which are either inventory spots or player
starts.
public boolean isEmpty()
public int size()
public void buildFromFile(File file,
boolean isRepeat)
file - isRepeat - public void removePathsFromFile(String path)
public void exportToFile(String path)
public boolean addTabooPath(Path path)
public void setWorld(cz.cuni.amis.pogamut.base3d.worldview.IVisionWorldView world)
public boolean isInitialized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||