SteeringProperties
Class Force_packet

Package class diagram package Force_packet
java.lang.Object
  extended by SteeringProperties.Force_packet

public class Force_packet
extends Object

The packet of all things which belog to one force of one location in the Target Approaching Steering. It includes mainly the forcePoints, which is list of ForcePoint. It defines the force.

Author:
Marki

Constructor Summary
Force_packet(Force_packet force_packet)
          Copy constructor.
Force_packet(int forceValue)
           
Force_packet(int firstForceValue, int lastForceValue)
           
Force_packet(LinkedList<ForcePoint> forcePoints)
           
Force_packet(XMLForce_packet xmlPacket)
           
 
Method Summary
 void addForcePoint(ForcePoint forcePoint)
          Adds the forcePoint after the fp with the nearest but smaller (or same) distance.
 void deleteForcePoint(ForcePoint forcePoint)
          Deletes the force point - if it's not the first force point.
 LinkedList<ForcePoint> getForcePoints()
           
 ForcePoint getHigherFP(double distance)
          Gets the ForcePoint, which's distance is the nearest smaller (or equal) than the distance of the coord.
 ForcePoint getInifinityPoint()
          Returns some ForcePoint with very distant distance.
 ForcePoint getInifinityPoint(ForcePoint fp1, ForcePoint fp2)
          Returns some ForcePoint with very distant distance - uses the two last ForcePoints of the list.
 int getLAST_DISTANCE()
           
 ForcePoint getLowerFP(double distance)
          Gets the ForcePoint, which's distance is the nearest smaller (or equal) than the distance of the coord.
 String getSpecialText()
           
 int getValueOfTheDistance(double distance)
           
 int getValueOfTheLine(int fromDistance, int fromValue, double toDistance, float direction)
          Returns the y-value of point on the line defined by 2 points.
 XMLForce_packet getXMLForce_packet()
           
 void setForcePacket(Force_packet f_packet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Force_packet

public Force_packet(LinkedList<ForcePoint> forcePoints)

Force_packet

public Force_packet(int forceValue)

Force_packet

public Force_packet(int firstForceValue,
                    int lastForceValue)

Force_packet

public Force_packet(XMLForce_packet xmlPacket)

Force_packet

public Force_packet(Force_packet force_packet)
Copy constructor.

Method Detail

setForcePacket

public void setForcePacket(Force_packet f_packet)

getForcePoints

public LinkedList<ForcePoint> getForcePoints()

getLAST_DISTANCE

public int getLAST_DISTANCE()

addForcePoint

public void addForcePoint(ForcePoint forcePoint)
Adds the forcePoint after the fp with the nearest but smaller (or same) distance.


deleteForcePoint

public void deleteForcePoint(ForcePoint forcePoint)
Deletes the force point - if it's not the first force point.


getValueOfTheDistance

public int getValueOfTheDistance(double distance)

getSpecialText

public String getSpecialText()

getXMLForce_packet

public XMLForce_packet getXMLForce_packet()

getLowerFP

public ForcePoint getLowerFP(double distance)
Gets the ForcePoint, which's distance is the nearest smaller (or equal) than the distance of the coord.


getHigherFP

public ForcePoint getHigherFP(double distance)
Gets the ForcePoint, which's distance is the nearest smaller (or equal) than the distance of the coord.


getValueOfTheLine

public int getValueOfTheLine(int fromDistance,
                             int fromValue,
                             double toDistance,
                             float direction)
Returns the y-value of point on the line defined by 2 points.


getInifinityPoint

public ForcePoint getInifinityPoint()
Returns some ForcePoint with very distant distance.


getInifinityPoint

public ForcePoint getInifinityPoint(ForcePoint fp1,
                                    ForcePoint fp2)
Returns some ForcePoint with very distant distance - uses the two last ForcePoints of the list.



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