SteeringProperties
Class LeaderFollowingProperties

Package class diagram package LeaderFollowingProperties
java.lang.Object
  extended by SteeringProperties.SteeringProperties
      extended by 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

Nested Class Summary
static class LeaderFollowingProperties.LFtype
           
 
Nested classes/interfaces inherited from class SteeringProperties.SteeringProperties
SteeringProperties.BehaviorType
 
Field Summary
 
Fields inherited from class SteeringProperties.SteeringProperties
active, behaviorType, type, weight
 
Constructor Summary
LeaderFollowingProperties()
           
LeaderFollowingProperties(int leaderForce, String leaderName, int distanceFromTheLeader, int forceDistance, LeaderFollowingProperties.LFtype myLFtype, boolean deceleration, double angleFromTheLeader, boolean velocityMemory, int sizeOfMemory, boolean goRound)
           
LeaderFollowingProperties(SteeringProperties.BehaviorType behaviorType)
           
LeaderFollowingProperties(XMLLeaderFollowingProperties xml)
           
 
Method Summary
 double getAngleFromTheLeader()
           
 int getDistanceFromTheLeader()
           
 int getForceDistance()
           
 int getLeaderForce()
           
 String getLeaderName()
           
 LeaderFollowingProperties.LFtype getMyLFtype()
           
 int getSizeOfMemory()
           
 String getSpecialText()
           
 XMLLeaderFollowingProperties getXMLProperties()
           
 boolean isCircumvention()
           
 boolean isDeceleration()
           
 boolean isVelocityMemory()
           
 void setAngleFromTheLeader(double angleFromTheLeader)
          The angle, which sets the position of the follower.
 void setCircumvention(boolean circumvention)
           
 void setDeceleration(boolean deceleration)
           
 void setDistanceFromTheLeader(int distanceFromTheLeader)
           
 void setForceDistance(int forceDistance)
           
 void setLeaderForce(int leaderForce)
           
 void setLeaderName(String leaderName)
           
 void setMyLFtype(LeaderFollowingProperties.LFtype myLFtype)
           
protected  void setNewBehaviorType(SteeringProperties.BehaviorType behaviorType)
           
 void setProperties(SteeringProperties newProperties)
           
 void setSizeOfMemory(int sizeOfMemory)
           
 void setVelocityMemory(boolean velocityMemory)
           
 
Methods inherited from class SteeringProperties.SteeringProperties
getBehaviorType, getText, getType, getWeight, isActive, setActive, setBehaviorType, setType, setWeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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 © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.