SteeringProperties
Class TargetApproachingProperties

Package class diagram package TargetApproachingProperties
java.lang.Object
  extended by SteeringProperties.SteeringProperties
      extended by SteeringProperties.TargetApproachingProperties
All Implemented Interfaces:
Serializable

public class TargetApproachingProperties
extends SteeringProperties

The steering properties for the steering Target Approaching. These properties are rather special, because it contains the list of Target_packets. It means that one bot can have more locations (and it's special defined forces fo each of them), which attract or repuls him.

Author:
Marki
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class SteeringProperties.SteeringProperties
SteeringProperties.BehaviorType
 
Field Summary
 
Fields inherited from class SteeringProperties.SteeringProperties
active, behaviorType, type, weight
 
Constructor Summary
TargetApproachingProperties()
           
TargetApproachingProperties(int attractiveForce, cz.cuni.amis.pogamut.base3d.worldview.object.Location endLocation)
           
TargetApproachingProperties(SteeringProperties.BehaviorType behaviorType)
           
TargetApproachingProperties(XMLTargetApproachingProperties xml)
           
 
Method Summary
 void addTarget_packet(Target_packet tp)
           
 int getAttractiveForce()
           
 String getSpecialText()
           
 Target_packet getTarget_packet(int index)
           
 ArrayList<Target_packet> getTargets()
           
 XMLTargetApproachingProperties getXMLProperties()
           
 void removeTarget_packet(int index)
          Removes the item at index index of the targets
 void setAttractiveForce(int attractiveForce)
           
protected  void setNewBehaviorType(SteeringProperties.BehaviorType behaviorType)
           
 void setProperties(SteeringProperties newProperties)
           
 void setTarget_packet(int index, Target_packet tp)
          Changes the target packet of the index.
 void setTargetLocation(int index, cz.cuni.amis.pogamut.base3d.worldview.object.Location loc)
           
 void setTargets(ArrayList<Target_packet> targets)
           
 
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

TargetApproachingProperties

public TargetApproachingProperties()

TargetApproachingProperties

public TargetApproachingProperties(SteeringProperties.BehaviorType behaviorType)

TargetApproachingProperties

public TargetApproachingProperties(XMLTargetApproachingProperties xml)

TargetApproachingProperties

public TargetApproachingProperties(int attractiveForce,
                                   cz.cuni.amis.pogamut.base3d.worldview.object.Location endLocation)
Method Detail

setNewBehaviorType

protected void setNewBehaviorType(SteeringProperties.BehaviorType behaviorType)
Specified by:
setNewBehaviorType in class SteeringProperties

getAttractiveForce

public int getAttractiveForce()

setAttractiveForce

public void setAttractiveForce(int attractiveForce)

getTargets

public ArrayList<Target_packet> getTargets()

setTargets

public void setTargets(ArrayList<Target_packet> targets)

getTarget_packet

public Target_packet getTarget_packet(int index)

setTarget_packet

public void setTarget_packet(int index,
                             Target_packet tp)
Changes the target packet of the index.


removeTarget_packet

public void removeTarget_packet(int index)
Removes the item at index index of the targets


setTargetLocation

public void setTargetLocation(int index,
                              cz.cuni.amis.pogamut.base3d.worldview.object.Location loc)

addTarget_packet

public void addTarget_packet(Target_packet tp)

getSpecialText

public String getSpecialText()
Specified by:
getSpecialText in class SteeringProperties

setProperties

public void setProperties(SteeringProperties newProperties)
Specified by:
setProperties in class SteeringProperties

getXMLProperties

public XMLTargetApproachingProperties getXMLProperties()


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.