예제 #1
0
 protected SensorReadout(DateTime time, Car car, String description)
 {
     this._time        = time;
     this._car         = car;
     this._description = description;
     this._next        = null;
 }
예제 #2
0
 protected SensorReadout(DateTime time, Car car, String description)
 {
     this._time = time;
     this._car = car;
     this._description = description;
     this._next = null;
 }
예제 #3
0
 public static void RetrieveSnapshotsSequentially(IObjectContainer db)
 {
     IObjectSet result = db.QueryByExample(typeof (Car));
     Car car = (Car) result.Next();
     SensorReadout readout = car.History;
     while (readout != null)
     {
         Console.WriteLine(readout);
         readout = readout.Next;
     }
 }
예제 #4
0
 public void Append(SensorReadout readout)
 {
     Activate(ActivationPurpose.Write);
     if (_next == null)
     {
         _next = readout;
     }
     else
     {
         _next.Append(readout);
     }
 }
예제 #5
0
 public void Append(SensorReadout readout)
 {
     Activate(ActivationPurpose.Write);
     if (_next == null)
     {
         _next = readout;
     }
     else
     {
         _next.Append(readout);
     }
 }
예제 #6
0
 private void AppendToHistory(SensorReadout readout)
 {
     Activate(ActivationPurpose.Write);
     if (_history == null)
     {
         _history = readout;
     }
     else
     {
         _history.Append(readout);
     }
 }
예제 #7
0
 public static void RetrieveSnapshotsSequentiallyTA()
 {
     IEmbeddedConfiguration config = Db4oEmbedded.NewConfiguration();
     config.Common.Add(new TransparentActivationSupport());
     using(IObjectContainer db = Db4oEmbedded.OpenFile(config, YapFileName))
     {
         IObjectSet result = db.QueryByExample(typeof(Car));
         Car car = (Car)result.Next();
         SensorReadout readout = car.History;
         while (readout != null)
         {
             Console.WriteLine(readout);
             readout = readout.Next;
         }
     }
 }
예제 #8
0
파일: Car.cs 프로젝트: Galigator/db4o
    private void AppendToHistory(SensorReadout readout) 
    {
		Activate(ActivationPurpose.Write);
        if(_history==null) 
        {
            _history=readout;
        }
        else 
        {
            _history.Append(readout);
        }
    }
예제 #9
0
파일: Car.cs 프로젝트: Galigator/db4o
 public Car(String model) 
 {
     this._model=model;
     this._pilot=null;
     this._history=null;
 }
예제 #10
0
 public Car(String model)
 {
     this._model   = model;
     this._pilot   = null;
     this._history = null;
 }