Beispiel #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);
        }
Beispiel #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);
		}
Beispiel #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);
        }
Beispiel #4
0
 public bool Match(SensorReadout candidate)
 {
     return(Array.IndexOf(candidate.Values, 0.3) > -1 &&
            Array.IndexOf(candidate.Values, 0.1) > -1);
 }
Beispiel #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);
		}
Beispiel #6
0
			public bool Match(SensorReadout candidate)
			{
				return Array.IndexOf(candidate.Values, 0.3) > -1
					&& Array.IndexOf(candidate.Values, 0.1) > -1;
			}