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