Selaa lähdekoodia

update of the doc with TaskInterval command

Antoine Bertout 9 vuotta sitten
vanhempi
commit
4482805e12
1 muutettua tiedostoa jossa 68 lisäystä ja 3 poistoa
  1. 68
    3
      rtsched-doc.tex

+ 68
- 3
rtsched-doc.tex Näytä tiedosto

@@ -188,7 +188,7 @@ from periods (the so-called \emph{constrained deadline tasks}).
188 188
     \TaskNExecDelta{1}{0}{1}{4}{5}  % draws executions (highest priority) 
189 189
                                     % for 5 instances of period 4 
190 190
                                     
191
-    \TaskNEnd{1}{1}{4}{5}	       % draws 5 end of job execution of period 4
191
+    \TaskNEnd{1}{1}{4}{5}	       % draws 5 ends of job execution of period 4
192 192
 
193 193
 
194 194
                                     % draws the arrival and deadline
@@ -211,7 +211,7 @@ from periods (the so-called \emph{constrained deadline tasks}).
211 211
     \TaskNExecDelta{1}{0}{1}{4}{5}  % draws executions (highest priority) 
212 212
                                     % for 5 instances of period 4 
213 213
                                     
214
-    \TaskNEnd{1}{1}{4}{5}           % draws 5 end of job execution of period 4
214
+    \TaskNEnd{1}{1}{4}{5}           % draws 5 ends of job execution of period 4
215 215
 
216 216
    	\TaskNArrDead{2}{0}{6}{6}{3}    % draws the arrival and deadline
217 217
                                     % for 3 instances of period 6 
@@ -346,7 +346,13 @@ style. An example is in Figure~\ref{fig:resp-time} that uses command
346 346
   \label{fig:resp-time}
347 347
 \end{figure}
348 348
 
349
-It is sometimes usefull to represent the end of a job execution, especially when jobs are preempted. In that case, you can use the \verb+\TaskEnd{i}{t}+ command and its periodic version detailed in Table~\ref{tab:periodic_versions} that draw little circle(s) at the specified date(s). It works in the same way as \verb+\TaskArrival+ command and it is used in Figure~\ref{fig:ex1a}.
349
+It is sometimes usefull to represent the end of a job execution, especially when jobs are preempted. In that case, you can use the following command:
350
+
351
+\begin{verbatim}
352
+\TaskEnd{i}{t}
353
+\end{verbatim}
354
+
355
+and its periodic version detailed in Table~\ref{tab:periodic_versions} that draw little circle(s) at the specified date(s). It works in the same way as \verb+\TaskArrival+ command and its us is shown in Figure~\ref{fig:ex1a}.
350 356
 
351 357
 
352 358
 
@@ -634,6 +640,65 @@ following command:
634 640
   \label{fig:ex4}
635 641
 \end{figure}
636 642
 
643
+
644
+\subsection{Jitter}
645
+
646
+
647
+Jitter is often represented as an interval drawned by an horizontal double arrowhead. As shown in the Figure~\ref{fig:interval}, you can define jitter or any other interval with the following command:
648
+
649
+\begin{verbatim}
650
+\TaskInterval{i}{t1}{t2}{label}
651
+\end{verbatim}
652
+
653
+This command draws an horizontal double arrowhead for the \texttt{i}-th task from \texttt{t1} to \texttt{t2} with the specified \texttt{label} in the middle.
654
+
655
+\begin{figure}[!htbp]
656
+  \centering
657
+  \begin{RTGrid}[nogrid=1, nosymbols=1 ,nonumbers=1]{3}{20}
658
+  
659
+    \RowLabel{1}{$\tau_i$}
660
+    \TaskArrival{1}{0}            
661
+    \TaskExecution{1}{1}{4}             
662
+    \TaskDeadline{1}{7}           
663
+
664
+    \RowLabel{2}{msg}
665
+    \TaskArrival{2}{0}              
666
+    \TaskExecution{2}{4}{6}             
667
+    \TaskDeadline{2}{8}            
668
+    \TaskInterval{2}{0}{4}{$J_m$}  % draws an interval between date 0 and 4 for task 2 with a label J_m 
669
+
670
+    \RowLabel{3}{$\tau_j$}
671
+    \TaskArrival{3}{0}             
672
+    \TaskExecution{3}{6}{9}             
673
+    \TaskDeadline{3}{10}          
674
+    \TaskInterval{3}{0}{6}{$J_j$} % draws an interval between date 0 and 6 for task 3 with a label J_j 
675
+  \end{RTGrid}  
676
+\begin{verbatim}
677
+  \begin{RTGrid}[nogrid=1, nosymbols=1 ,nonumbers=1]{3}{20}
678
+  
679
+    \RowLabel{1}{$\tau_i$}
680
+    \TaskArrival{1}{0}            
681
+    \TaskExecution{1}{1}{4}             
682
+    \TaskDeadline{1}{7}           
683
+
684
+    \RowLabel{2}{msg}
685
+    \TaskArrival{2}{0}              
686
+    \TaskExecution{2}{4}{6}             
687
+    \TaskDeadline{2}{8}            
688
+    \TaskInterval{2}{0}{4}{$J_m$}  % draws an interval between date 0 and 4 for task 2 with a label J_m 
689
+
690
+    \RowLabel{3}{$\tau_j$}
691
+    \TaskArrival{3}{0}             
692
+    \TaskExecution{3}{6}{9}             
693
+    \TaskDeadline{3}{10}          
694
+    \TaskInterval{3}{0}{6}{$J_j$} % draws an interval between date 0 and 6 for task 3 with a label J_j 
695
+  \end{RTGrid}  
696
+\end{verbatim}
697
+  \caption{Example with TaskInterval used to represent jitters}
698
+  \label{fig:interval}
699
+\end{figure}
700
+
701
+
637 702
 \end{document}
638 703
 %%% Local Variables: 
639 704
 %%% mode: latex

Loading…
Peruuta
Tallenna