public class Force_packet extends Object
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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) |
public Force_packet(LinkedList<ForcePoint> forcePoints)
public Force_packet(int forceValue)
public Force_packet(int firstForceValue, int lastForceValue)
public Force_packet(XMLForce_packet xmlPacket)
public Force_packet(Force_packet force_packet)
public void setForcePacket(Force_packet f_packet)
public LinkedList<ForcePoint> getForcePoints()
public int getLAST_DISTANCE()
public void addForcePoint(ForcePoint forcePoint)
public void deleteForcePoint(ForcePoint forcePoint)
public int getValueOfTheDistance(double distance)
public String getSpecialText()
public XMLForce_packet getXMLForce_packet()
public ForcePoint getLowerFP(double distance)
public ForcePoint getHigherFP(double distance)
public int getValueOfTheLine(int fromDistance, int fromValue, double toDistance, float direction)
public ForcePoint getInifinityPoint()
public ForcePoint getInifinityPoint(ForcePoint fp1, ForcePoint fp2)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.