public class ForceResistance extends Sensor implements IForceResistance
Constructor and Description |
---|
ForceResistance(java.lang.String name,
java.lang.String perceptorName)
Instantiates a new ForceResistance sensor
|
Modifier and Type | Method and Description |
---|---|
ISensor |
copy() |
boolean |
equals(java.lang.Object o) |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getForce()
Retrieve the 3-dimensional force vector
|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getForceOrigin()
Retrieve the force origin (the point in 3-dimensional space the force
effects on)
|
void |
updateFromPerception(IPerception perception)
Updates this ForceResistances from perception
|
getName, getPerceptorName, hashCode, toString, updateNoPerception, updateSensors
getName, updateNoPerception, updateSensors
public ForceResistance(java.lang.String name, java.lang.String perceptorName)
name
- Sensor namepublic org.apache.commons.math3.geometry.euclidean.threed.Vector3D getForceOrigin()
IForceResistance
getForceOrigin
in interface IForceResistance
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getForce()
IForceResistance
getForce
in interface IForceResistance
public void updateFromPerception(IPerception perception)
updateFromPerception
in interface ISensor
updateFromPerception
in class Sensor
perception
- the result from server message parsing