public abstract class Sensor extends java.lang.Object implements java.io.Serializable, ISensor
Modifier and Type | Method and Description |
---|---|
abstract ISensor |
copy() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Retrieve the sensor name string
|
java.lang.String |
getPerceptorName()
Get perceptor name
|
int |
hashCode() |
java.lang.String |
toString() |
abstract void |
updateFromPerception(IPerception perception)
Updates the joint values in the body model from perception
|
void |
updateNoPerception()
Updates the joint values in the body model with no perception
|
void |
updateSensors(java.util.Map<java.lang.String,ISensor> flatSensors,
java.util.Map<java.lang.String,ISensor> structuredSensors)
Adds this sensor the appropriate list depending if it is structured or not
|
public java.lang.String getName()
public java.lang.String getPerceptorName()
public abstract void updateFromPerception(IPerception perception)
updateFromPerception
in interface ISensor
perception
- the new perception we madepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public abstract ISensor copy()
public int hashCode()
hashCode
in class java.lang.Object
public void updateSensors(java.util.Map<java.lang.String,ISensor> flatSensors, java.util.Map<java.lang.String,ISensor> structuredSensors)
ISensor
updateSensors
in interface ISensor
public void updateNoPerception()
ISensor
updateNoPerception
in interface ISensor