Lines Matching refs:sensor
35 def addSensor(self, sensor):
36 """Add a new sensor to the list."""
37 if not hasattr(sensor, 'id'):
39 sensor.id = self.id
40 self.sensors.append(sensor)
43 """Complete the list, adding well-known sensor information."""
55 """A formatter object that does processing on sensor data."""
63 def sensor(self, theSensor, theSensors):
64 """Produce output for a sensor."""
68 """Prefix string before any sensor data is generated."""
72 """Suffix string after all sensor data is generated."""
76 """Indentation level for individual sensor data."""
80 """Separator between individual sensor data entries."""
85 return "A sensor policy."
97 sensorLine = SensorPolicy.indentLines(self.sensor(theSensor,
104 """The sensor policy that emits Java sensor descriptions."""
105 def sensor(self, theSensor, theSensors):
154 """The sensor policy that emits Python sensor descriptions."""
155 def sensor(self, theSensor, theSensors):
167 """The sensor policy that emits @IntDef sensor descriptions."""
168 def sensor(self, theSensor, theSensors):
182 """Metaclass for sensor classes."""
212 """Given a sensor policy, apply it to all known sensor types"""
217 "Given a sensor policy, apply it to integer sensors"
221 "Given a sensor policy, apply it to float sensors"
272 """Load sensor data from Vehicle HAL."""
286 print('parse tree to generate Java and Python lists of sensor identifiers.')