SteeringProperties
Class LeaderFollowingProperties
java.lang.Object
SteeringProperties.SteeringProperties
SteeringProperties.LeaderFollowingProperties
- All Implemented Interfaces:
- Serializable
public class LeaderFollowingProperties
- extends SteeringProperties
The steering properties of the Leader Following Steering.
- Author:
- Marki
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LeaderFollowingProperties
public LeaderFollowingProperties()
LeaderFollowingProperties
public LeaderFollowingProperties(SteeringProperties.BehaviorType behaviorType)
LeaderFollowingProperties
public LeaderFollowingProperties(XMLLeaderFollowingProperties xml)
LeaderFollowingProperties
public LeaderFollowingProperties(int leaderForce,
String leaderName,
int distanceFromTheLeader,
int forceDistance,
LeaderFollowingProperties.LFtype myLFtype,
boolean deceleration,
double angleFromTheLeader,
boolean velocityMemory,
int sizeOfMemory,
boolean goRound)
- Parameters:
leaderForce
- leaderName
- distanceFromTheLeader
- forceDistance
- myLFtype
- deceleration
- angleFromTheLeader
- velocityMemory
- sizeOfMemory
- goRound
-
setNewBehaviorType
protected void setNewBehaviorType(SteeringProperties.BehaviorType behaviorType)
- Specified by:
setNewBehaviorType
in class SteeringProperties
getAngleFromTheLeader
public double getAngleFromTheLeader()
setAngleFromTheLeader
public void setAngleFromTheLeader(double angleFromTheLeader)
- The angle, which sets the position of the follower. The value Math.PI/2 means right from the leader, Matgh.PI behind the leader, -Math.PI left from the leader, 0 in front of the leader, etc.
getDistanceFromTheLeader
public int getDistanceFromTheLeader()
setDistanceFromTheLeader
public void setDistanceFromTheLeader(int distanceFromTheLeader)
getForceDistance
public int getForceDistance()
setForceDistance
public void setForceDistance(int forceDistance)
getLeaderName
public String getLeaderName()
setLeaderName
public void setLeaderName(String leaderName)
getSizeOfMemory
public int getSizeOfMemory()
setSizeOfMemory
public void setSizeOfMemory(int sizeOfMemory)
isVelocityMemory
public boolean isVelocityMemory()
setVelocityMemory
public void setVelocityMemory(boolean velocityMemory)
isDeceleration
public boolean isDeceleration()
setDeceleration
public void setDeceleration(boolean deceleration)
isCircumvention
public boolean isCircumvention()
setCircumvention
public void setCircumvention(boolean circumvention)
getLeaderForce
public int getLeaderForce()
setLeaderForce
public void setLeaderForce(int leaderForce)
getMyLFtype
public LeaderFollowingProperties.LFtype getMyLFtype()
setMyLFtype
public void setMyLFtype(LeaderFollowingProperties.LFtype myLFtype)
getSpecialText
public String getSpecialText()
- Specified by:
getSpecialText
in class SteeringProperties
setProperties
public void setProperties(SteeringProperties newProperties)
- Specified by:
setProperties
in class SteeringProperties
getXMLProperties
public XMLLeaderFollowingProperties getXMLProperties()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.