Esempio n. 1
0
        public static void RetrieveSensorReadoutQBE(IObjectContainer db)
        {
            SensorReadout proto  = new SensorReadout(new double[] { 0.3, 0.1 }, DateTime.MinValue, null);
            var           result = db.QueryByExample(proto);

            ListResult(result);
        }
Esempio n. 2
0
		public static void RetrieveCarQBE(IObjectContainer db)
		{
			SensorReadout protoReadout = new SensorReadout(new double[] { 0.6, 0.2 }, DateTime.MinValue, null);
			IList protoHistory = new ArrayList();
			protoHistory.Add(protoReadout);
			Car protoCar = new Car(null, protoHistory);
			IObjectSet result = db.QueryByExample(protoCar);
			ListResult(result);
		}
Esempio n. 3
0
        public static void RetrieveCarQBE(IObjectContainer db)
        {
            SensorReadout protoReadout = new SensorReadout(new double[] { 0.6, 0.2 }, DateTime.MinValue, null);
            IList         protoHistory = new ArrayList();

            protoHistory.Add(protoReadout);
            Car protoCar = new Car(null, protoHistory);
            var result   = db.QueryByExample(protoCar);

            ListResult(result);
        }
Esempio n. 4
0
 public bool Match(SensorReadout candidate)
 {
     return(Array.IndexOf(candidate.Values, 0.3) > -1 &&
            Array.IndexOf(candidate.Values, 0.1) > -1);
 }
Esempio n. 5
0
		public static void RetrieveSensorReadoutQBE(IObjectContainer db)
		{
			SensorReadout proto = new SensorReadout(new double[] { 0.3, 0.1 }, DateTime.MinValue, null);
			IObjectSet result = db.QueryByExample(proto);
			ListResult(result);
		}
Esempio n. 6
0
			public bool Match(SensorReadout candidate)
			{
				return Array.IndexOf(candidate.Values, 0.3) > -1
					&& Array.IndexOf(candidate.Values, 0.1) > -1;
			}