public class PathContainer extends Object
| Constructor and Description |
|---|
PathContainer(cz.cuni.amis.pogamut.base3d.worldview.IVisionWorldView world)
Create container for given world view.
|
PathContainer(Object object,
boolean loadFromFile,
File dataFile) |
| Modifier and Type | Method and Description |
|---|---|
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(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.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.
|
public PathContainer(cz.cuni.amis.pogamut.base3d.worldview.IVisionWorldView world)
world - public Path getPath()
public Path getPath(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint start)
NavPoint. When such path doesn't
exist, returns path from nearest NavPoint from which some path
exists.start - Where the path should startpublic 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()
Copyright © 2018 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.