|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.ut2004.agent.module.sensor.NavigationGraphBuilder.NewNavPointBuilder
public class NavigationGraphBuilder.NewNavPointBuilder
Builder encloses the creation of the new navpoint.
You must call createNavPoint()
after you set it up to truly create the navpoint inside bot's IWorldView
.
Constructor Summary | |
---|---|
protected |
NavigationGraphBuilder.NewNavPointBuilder()
|
Method Summary | |
---|---|
protected void |
addEdge(NavigationGraphBuilder.NewNavPointEdgeBuilder newNavPointEdgeBuilder)
Adds new edge into edges . |
void |
createNavPoint()
Finalizing method that will insert the navpoint into the underlying IWorldView of the bot. |
void |
createSimpleEdgeTo(java.lang.String navPointId)
Creates simple edge that leads from the navpoint you're currently creating to 'navPointId' |
NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.NewNavPointBuilder> |
newEdge()
Creates new edge builder for the navpoint you're creating. |
NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.NewNavPointBuilder> |
newEdgeTo(java.lang.String navPointId)
Creates new edge (to 'navPointId') builder for the navpoint you're creating. |
NavigationGraphBuilder.NewNavPointBuilder |
setId(java.lang.String id)
Sets the ID to be used for the new navpoint, corresponds to NavPoint.getId() . |
NavigationGraphBuilder.NewNavPointBuilder |
setLocation(double x,
double y,
double z)
Sets the location of the new navpoint, corresponds to NavPoint.getLocation() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected NavigationGraphBuilder.NewNavPointBuilder()
Method Detail |
---|
public NavigationGraphBuilder.NewNavPointBuilder setId(java.lang.String id)
NavPoint.getId()
.
id
- will be auto-prefixed (if enabled, which is default)
public NavigationGraphBuilder.NewNavPointBuilder setLocation(double x, double y, double z)
NavPoint.getLocation()
.
x
- y
- z
-
public void createNavPoint()
IWorldView
of the bot.
You must have ID/Location set via setId(String)
and setLocation(double, double, double)
otherwise an exception will be thrown.
WARNING: IF USED INSIDE THE IAgentLogic.logic()
, THAN THE NEW NAVPOINT WON'T BE ACCESSIBLE IMMEDIATELLY, IT WILL BE ACCESSIBLE FROM THE NEXT LOGIC ITERATION!
public NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.NewNavPointBuilder> newEdge()
After setting up the edge properties, use NavigationGraphBuilder.NewNavPointEdgeBuilder.createEdge()
to return to this object (and truly creates the edge!).
public NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.NewNavPointBuilder> newEdgeTo(java.lang.String navPointId)
After setting up the edge properties, use NavigationGraphBuilder.NewNavPointEdgeBuilder.createEdge()
to return to this object (and truly creates the edge!).
navPointId
- will be auto-prefixed
public void createSimpleEdgeTo(java.lang.String navPointId)
navPointId
- will be auto-prefixed (if enabled, which is default)protected void addEdge(NavigationGraphBuilder.NewNavPointEdgeBuilder newNavPointEdgeBuilder)
edges
. Their true creation is postponed until createNavPoint()
.
newNavPointEdgeBuilder
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |