next up previous contents
Next: Solution to the bad Up: BRAHMS Database Time Validity Previous: `offline' calibrations

Reduction of the `online' calibrations to `offline' calibrations

Let's show that the `offline' model can handle `online' calibrations at the expense of adding a database operation to truncate the open-ended validity intervals.

For example, our `online' calibrations with open-ended validities Figure 1 reproduced below in Figure 5 become `offline' calibrations with closed time intervals as in Figure 6.

  
Figure 5:
\begin{figure}
\epsfig{file=KObratdb1.eps,width=\textwidth}\iffalse
\begin{tex2h...
...------------> time
t1 t2 t3\end{verbatim}\end{tex2html_preform}\fi
\end{figure}


  
Figure 6:
\begin{figure}
\epsfig{file=KObratdb5.eps,width=\textwidth}\iffalse
\begin{tex2h...
...------------> time
t1 t2 t3\end{verbatim}\end{tex2html_preform}\fi
\end{figure}

What happens? We extended the `offline' model by adding open-ended intervals and when we add a new calibration we truncate the open-ended validity interval of the old calibration.

Suppose we were to add cal4 at t4, then Figure 6 becomes Figure 7.


 
Figure 7:
\begin{figure}
\begin{tex2html_preform}\begin{verbatim}\vert========cal3========...
...---------------> time
t1 t2 t3\end{verbatim}\end{tex2html_preform}
\end{figure}


  
Figure 8:
\begin{figure}
\epsfig{file=KObratdb6.eps,width=\textwidth}\iffalse
\begin{tex2h...
...---------> time
t1 t2 t3 t4\end{verbatim}\end{tex2html_preform}\fi
\end{figure}

Note that the bad query problem is still with us, but we no longer need to concern ourselves with two types of calibrations because the extended `offline' model handles both types.


next up previous contents
Next: Solution to the bad Up: BRAHMS Database Time Validity Previous: `offline' calibrations
Christian Holm Christensen
2000-05-15