Esempio n. 1
0
 public SensorHandler(String filename_in)
 {
     internalSensors = new List <iSensor>();
     externalSensors = new List <iSensor>();
     sparser         = new SensorParser(filename_in);
     date_sensor     = iSensor.makeSensor("DATE", "01/01/1970", "String", false);
     time_sensor     = iSensor.makeSensor("TIME", "12:59", "String", false);
 }
Esempio n. 2
0
        public static iSensor makeSensor(String data_tag, String initialValue, String data_type, bool isThisSensorInternal)
        {
            iSensor a = new iSensor();

            a.SENSOR_DATA_TAG = data_tag;
            a.value           = initialValue;
            a.value_type      = data_type;
            a.isInternal      = isThisSensorInternal;
            return(a);
        }
Esempio n. 3
0
 public void AddExternal(iSensor s)
 {
     externalSensors.Add(s);
 }
Esempio n. 4
0
 public void AddInternal(iSensor s)
 {
     internalSensors.Add(s);
 }