public class PathFollowingProperties extends SteeringProperties
SteeringProperties.BehaviorType
active, behaviorType, type, weight
Constructor and Description |
---|
PathFollowingProperties() |
PathFollowingProperties(int repulsiveForce,
int distanceFromThePath,
cz.cuni.amis.pogamut.base.agent.navigation.IPathFuture<cz.cuni.amis.pogamut.base3d.worldview.object.ILocated> path,
cz.cuni.amis.pogamut.base3d.worldview.object.Location targetLocation,
double regulatingForce,
int projection) |
PathFollowingProperties(cz.cuni.amis.pogamut.base.agent.navigation.IPathFuture<? extends cz.cuni.amis.pogamut.base3d.worldview.object.ILocated> path) |
PathFollowingProperties(SteeringProperties.BehaviorType behaviorType) |
PathFollowingProperties(XMLPathFollowingProperties xml) |
Modifier and Type | Method and Description |
---|---|
int |
getDistanceFromThePath() |
cz.cuni.amis.pogamut.base.agent.navigation.IPathFuture<cz.cuni.amis.pogamut.base3d.worldview.object.ILocated> |
getPath() |
int |
getProjection() |
double |
getRegulatingForce() |
int |
getRepulsiveForce() |
String |
getSpecialText() |
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getTargetLocation() |
XMLPathFollowingProperties |
getXMLProperties() |
void |
setDistanceFromThePath(int distanceFromThePath) |
protected void |
setNewBehaviorType(SteeringProperties.BehaviorType behaviorType) |
void |
setPath(cz.cuni.amis.pogamut.base.agent.navigation.IPathFuture<cz.cuni.amis.pogamut.base3d.worldview.object.ILocated> path) |
void |
setProjection(int projection) |
void |
setProperties(SteeringProperties newProperties) |
void |
setRegulatingForce(double regulatingForce) |
void |
setRepulsiveForce(int orderOfTheForce) |
void |
setTargetLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location targetLocation) |
getBehaviorType, getText, getType, getWeight, isActive, setActive, setBehaviorType, setType, setWeight
public PathFollowingProperties()
public PathFollowingProperties(SteeringProperties.BehaviorType behaviorType)
public PathFollowingProperties(XMLPathFollowingProperties xml)
public PathFollowingProperties(cz.cuni.amis.pogamut.base.agent.navigation.IPathFuture<? extends cz.cuni.amis.pogamut.base3d.worldview.object.ILocated> path)
public PathFollowingProperties(int repulsiveForce, int distanceFromThePath, cz.cuni.amis.pogamut.base.agent.navigation.IPathFuture<cz.cuni.amis.pogamut.base3d.worldview.object.ILocated> path, cz.cuni.amis.pogamut.base3d.worldview.object.Location targetLocation, double regulatingForce, int projection)
repulsiveForce
- The magnitude of the repulsive force, to repulse agent from the side of the corridor. Reasonable values are 0 - 1000, the default value is 200.distanceFromThePath
- The maximal distance from the axe of the path. Reasonable values are 200 - 2000.path
- The list of ilocated elements - vertices of the path.targetLocation
- If we want to compute path later, we can store here the targetLocation of the path. This parameter isn't necessary.regulatingForce
- Helps the bot to keep the direction of the path. Recommended value is 50.projection
- The length of the projection - how much ahead we project our motion. Recommended values are 5-15.protected void setNewBehaviorType(SteeringProperties.BehaviorType behaviorType)
setNewBehaviorType
in class SteeringProperties
public int getRepulsiveForce()
public void setRepulsiveForce(int orderOfTheForce)
public int getDistanceFromThePath()
public void setDistanceFromThePath(int distanceFromThePath)
public cz.cuni.amis.pogamut.base.agent.navigation.IPathFuture<cz.cuni.amis.pogamut.base3d.worldview.object.ILocated> getPath()
public void setPath(cz.cuni.amis.pogamut.base.agent.navigation.IPathFuture<cz.cuni.amis.pogamut.base3d.worldview.object.ILocated> path)
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getTargetLocation()
public void setTargetLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location targetLocation)
public double getRegulatingForce()
public void setRegulatingForce(double regulatingForce)
public int getProjection()
public void setProjection(int projection)
public String getSpecialText()
getSpecialText
in class SteeringProperties
public void setProperties(SteeringProperties newProperties)
setProperties
in class SteeringProperties
public XMLPathFollowingProperties getXMLProperties()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.