예제 #1
0
 protected SensorReadout(DateTime time, Car car, string description)
 {
     _time = time;
     _car = car;
     _description = description;
     _next = null;            
 }
예제 #2
0
 public static void SetFirstCar(IObjectContainer db)
 {
     Pilot pilot = new Pilot("Rubens Barrichello", 99);
     Car car = new Car("BMW");
     car.Pilot = pilot;
     db.Store(car);
 }
예제 #3
0
 public static void SetSecondCar(IObjectContainer db)
 {
     Pilot pilot = new Pilot("Michael Schumacher", 100);
     Car car = new Car("Ferrari");
     car.Pilot = pilot;
     db.Store(car);
 }
예제 #4
0
 public PressureSensorReadout(DateTime time, Car car, string description, double pressure)
     : base(time, car, description)
 {
     _pressure = pressure;
 }
예제 #5
0
 public TemperatureSensorReadout(DateTime time, Car car, string description, double temperature)
     : base(time, car, description)
 {
     _temperature = temperature;
 }