classmo_easy_cool_sched* remove
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@274 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
aa6f62acd2
commit
75b4b6a3cd
2 changed files with 0 additions and 294 deletions
|
|
@ -1,209 +0,0 @@
|
||||||
%!PS-Adobe-2.0 EPSF-2.0
|
|
||||||
%%Title: ClassName
|
|
||||||
%%Creator: Doxygen
|
|
||||||
%%CreationDate: Time
|
|
||||||
%%For:
|
|
||||||
%Magnification: 1.00
|
|
||||||
%%Orientation: Portrait
|
|
||||||
%%BoundingBox: 0 0 500 503.145
|
|
||||||
%%Pages: 0
|
|
||||||
%%BeginSetup
|
|
||||||
%%EndSetup
|
|
||||||
%%EndComments
|
|
||||||
|
|
||||||
% ----- variables -----
|
|
||||||
|
|
||||||
/boxwidth 0 def
|
|
||||||
/boxheight 40 def
|
|
||||||
/fontheight 24 def
|
|
||||||
/marginwidth 10 def
|
|
||||||
/distx 20 def
|
|
||||||
/disty 40 def
|
|
||||||
/boundaspect 0.99375 def % aspect ratio of the BoundingBox (width/height)
|
|
||||||
/boundx 500 def
|
|
||||||
/boundy boundx boundaspect div def
|
|
||||||
/xspacing 0 def
|
|
||||||
/yspacing 0 def
|
|
||||||
/rows 4 def
|
|
||||||
/cols 1 def
|
|
||||||
/scalefactor 0 def
|
|
||||||
/boxfont /Times-Roman findfont fontheight scalefont def
|
|
||||||
|
|
||||||
% ----- procedures -----
|
|
||||||
|
|
||||||
/dotted { [1 4] 0 setdash } def
|
|
||||||
/dashed { [5] 0 setdash } def
|
|
||||||
/solid { [] 0 setdash } def
|
|
||||||
|
|
||||||
/max % result = MAX(arg1,arg2)
|
|
||||||
{
|
|
||||||
/a exch def
|
|
||||||
/b exch def
|
|
||||||
a b gt {a} {b} ifelse
|
|
||||||
} def
|
|
||||||
|
|
||||||
/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
|
|
||||||
{
|
|
||||||
0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
|
|
||||||
} def
|
|
||||||
|
|
||||||
/cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
|
|
||||||
{
|
|
||||||
/str exch def
|
|
||||||
/boxwidth boxwidth str stringwidth pop max def
|
|
||||||
} def
|
|
||||||
|
|
||||||
/box % draws a box with text `arg1' at grid pos (arg2,arg3)
|
|
||||||
{ gsave
|
|
||||||
2 setlinewidth
|
|
||||||
newpath
|
|
||||||
exch xspacing mul xoffset add
|
|
||||||
exch yspacing mul
|
|
||||||
moveto
|
|
||||||
boxwidth 0 rlineto
|
|
||||||
0 boxheight rlineto
|
|
||||||
boxwidth neg 0 rlineto
|
|
||||||
0 boxheight neg rlineto
|
|
||||||
closepath
|
|
||||||
dup stringwidth pop neg boxwidth add 2 div
|
|
||||||
boxheight fontheight 2 div sub 2 div
|
|
||||||
rmoveto show stroke
|
|
||||||
grestore
|
|
||||||
} def
|
|
||||||
|
|
||||||
/mark
|
|
||||||
{ newpath
|
|
||||||
exch xspacing mul xoffset add boxwidth add
|
|
||||||
exch yspacing mul
|
|
||||||
moveto
|
|
||||||
0 boxheight 4 div rlineto
|
|
||||||
boxheight neg 4 div boxheight neg 4 div rlineto
|
|
||||||
closepath
|
|
||||||
eofill
|
|
||||||
stroke
|
|
||||||
} def
|
|
||||||
|
|
||||||
/arrow
|
|
||||||
{ newpath
|
|
||||||
moveto
|
|
||||||
3 -8 rlineto
|
|
||||||
-6 0 rlineto
|
|
||||||
3 8 rlineto
|
|
||||||
closepath
|
|
||||||
eofill
|
|
||||||
stroke
|
|
||||||
} def
|
|
||||||
|
|
||||||
/out % draws an output connector for the block at (arg1,arg2)
|
|
||||||
{
|
|
||||||
newpath
|
|
||||||
exch xspacing mul xoffset add boxwidth 2 div add
|
|
||||||
exch yspacing mul boxheight add
|
|
||||||
/y exch def
|
|
||||||
/x exch def
|
|
||||||
x y moveto
|
|
||||||
0 disty 2 div rlineto
|
|
||||||
stroke
|
|
||||||
1 eq { x y disty 2 div add arrow } if
|
|
||||||
} def
|
|
||||||
|
|
||||||
/in % draws an input connector for the block at (arg1,arg2)
|
|
||||||
{
|
|
||||||
newpath
|
|
||||||
exch xspacing mul xoffset add boxwidth 2 div add
|
|
||||||
exch yspacing mul disty 2 div sub
|
|
||||||
/y exch def
|
|
||||||
/x exch def
|
|
||||||
x y moveto
|
|
||||||
0 disty 2 div rlineto
|
|
||||||
stroke
|
|
||||||
1 eq { x y disty 2 div add arrow } if
|
|
||||||
} def
|
|
||||||
|
|
||||||
/hedge
|
|
||||||
{
|
|
||||||
exch xspacing mul xoffset add boxwidth 2 div add
|
|
||||||
exch yspacing mul boxheight 2 div sub
|
|
||||||
/y exch def
|
|
||||||
/x exch def
|
|
||||||
newpath
|
|
||||||
x y moveto
|
|
||||||
boxwidth 2 div distx add 0 rlineto
|
|
||||||
stroke
|
|
||||||
1 eq
|
|
||||||
{ newpath x boxwidth 2 div distx add add y moveto
|
|
||||||
-8 3 rlineto
|
|
||||||
0 -6 rlineto
|
|
||||||
8 3 rlineto
|
|
||||||
closepath
|
|
||||||
eofill
|
|
||||||
stroke
|
|
||||||
} if
|
|
||||||
} def
|
|
||||||
|
|
||||||
/vedge
|
|
||||||
{
|
|
||||||
/ye exch def
|
|
||||||
/ys exch def
|
|
||||||
/xs exch def
|
|
||||||
newpath
|
|
||||||
xs xspacing mul xoffset add boxwidth 2 div add dup
|
|
||||||
ys yspacing mul boxheight 2 div sub
|
|
||||||
moveto
|
|
||||||
ye yspacing mul boxheight 2 div sub
|
|
||||||
lineto
|
|
||||||
stroke
|
|
||||||
} def
|
|
||||||
|
|
||||||
/conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
|
|
||||||
{
|
|
||||||
/ys exch def
|
|
||||||
/xe exch def
|
|
||||||
/xs exch def
|
|
||||||
newpath
|
|
||||||
xs xspacing mul xoffset add boxwidth 2 div add
|
|
||||||
ys yspacing mul disty 2 div sub
|
|
||||||
moveto
|
|
||||||
xspacing xe xs sub mul 0
|
|
||||||
rlineto
|
|
||||||
stroke
|
|
||||||
} def
|
|
||||||
|
|
||||||
% ----- main ------
|
|
||||||
|
|
||||||
boxfont setfont
|
|
||||||
1 boundaspect scale
|
|
||||||
(moEasyCoolSched) cw
|
|
||||||
(moCoolSched) cw
|
|
||||||
(eoUF< double &, bool >) cw
|
|
||||||
(eoFunctorBase) cw
|
|
||||||
/boxwidth boxwidth marginwidth 2 mul add def
|
|
||||||
/xspacing boxwidth distx add def
|
|
||||||
/yspacing boxheight disty add def
|
|
||||||
/scalefactor
|
|
||||||
boxwidth cols mul distx cols 1 sub mul add
|
|
||||||
boxheight rows mul disty rows 1 sub mul add boundaspect mul
|
|
||||||
max def
|
|
||||||
boundx scalefactor div boundy scalefactor div scale
|
|
||||||
|
|
||||||
% ----- classes -----
|
|
||||||
|
|
||||||
(moEasyCoolSched) 0 0 box
|
|
||||||
(moCoolSched) 0 1 box
|
|
||||||
(eoUF< double &, bool >) 0 2 box
|
|
||||||
(eoFunctorBase) 0 3 box
|
|
||||||
|
|
||||||
% ----- relations -----
|
|
||||||
|
|
||||||
solid
|
|
||||||
0 0 0 out
|
|
||||||
solid
|
|
||||||
1 0 1 in
|
|
||||||
solid
|
|
||||||
0 0 1 out
|
|
||||||
solid
|
|
||||||
1 0 2 in
|
|
||||||
solid
|
|
||||||
0 0 2 out
|
|
||||||
solid
|
|
||||||
1 0 3 in
|
|
||||||
|
|
@ -1,85 +0,0 @@
|
||||||
\section{mo\-Easy\-Cool\-Sched Class Reference}
|
|
||||||
\label{classmo_easy_cool_sched}\index{moEasyCoolSched@{moEasyCoolSched}}
|
|
||||||
One of the possible \doxyref{mo\-Cool\-Sched}{p.}{classmo_cool_sched}.
|
|
||||||
|
|
||||||
|
|
||||||
{\tt \#include $<$mo\-Easy\-Cool\-Sched.h$>$}
|
|
||||||
|
|
||||||
Inheritance diagram for mo\-Easy\-Cool\-Sched::\begin{figure}[H]
|
|
||||||
\begin{center}
|
|
||||||
\leavevmode
|
|
||||||
\includegraphics[height=4cm]{classmo_easy_cool_sched}
|
|
||||||
\end{center}
|
|
||||||
\end{figure}
|
|
||||||
\subsection*{Public Member Functions}
|
|
||||||
\begin{CompactItemize}
|
|
||||||
\item
|
|
||||||
{\bf mo\-Easy\-Cool\-Sched} (double \_\-\_\-threshold, double \_\-\_\-ratio)
|
|
||||||
\begin{CompactList}\small\item\em Simple constructor. \item\end{CompactList}\item
|
|
||||||
bool {\bf operator()} (double \&\_\-\_\-temp)
|
|
||||||
\begin{CompactList}\small\item\em Function which proceeds to the cooling. \item\end{CompactList}\end{CompactItemize}
|
|
||||||
\subsection*{Private Attributes}
|
|
||||||
\begin{CompactItemize}
|
|
||||||
\item
|
|
||||||
double {\bf threshold}\label{classmo_easy_cool_sched_3dd53700390b7bb6428db80e01626c83}
|
|
||||||
|
|
||||||
\begin{CompactList}\small\item\em The temperature threhold. \item\end{CompactList}\item
|
|
||||||
double {\bf ratio}\label{classmo_easy_cool_sched_1f84deff87defafd927e8c323b188f38}
|
|
||||||
|
|
||||||
\begin{CompactList}\small\item\em The decreasing factor of the temperature. \item\end{CompactList}\end{CompactItemize}
|
|
||||||
|
|
||||||
|
|
||||||
\subsection{Detailed Description}
|
|
||||||
One of the possible \doxyref{mo\-Cool\-Sched}{p.}{classmo_cool_sched}.
|
|
||||||
|
|
||||||
The simpliest, the temperature decrease according to a ratio until it greater than a threshold.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Definition at line 22 of file mo\-Easy\-Cool\-Sched.h.
|
|
||||||
|
|
||||||
\subsection{Constructor \& Destructor Documentation}
|
|
||||||
\index{moEasyCoolSched@{mo\-Easy\-Cool\-Sched}!moEasyCoolSched@{moEasyCoolSched}}
|
|
||||||
\index{moEasyCoolSched@{moEasyCoolSched}!moEasyCoolSched@{mo\-Easy\-Cool\-Sched}}
|
|
||||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}mo\-Easy\-Cool\-Sched::mo\-Easy\-Cool\-Sched (double {\em \_\-\_\-threshold}, double {\em \_\-\_\-ratio})\hspace{0.3cm}{\tt [inline]}}\label{classmo_easy_cool_sched_c556b41343700293bb17e3b20d81e0f2}
|
|
||||||
|
|
||||||
|
|
||||||
Simple constructor.
|
|
||||||
|
|
||||||
\begin{Desc}
|
|
||||||
\item[Parameters:]
|
|
||||||
\begin{description}
|
|
||||||
\item[{\em \_\-\_\-threshold}]the threshold. \item[{\em \_\-\_\-ratio}]the ratio used to descrease the temperature. \end{description}
|
|
||||||
\end{Desc}
|
|
||||||
|
|
||||||
|
|
||||||
Definition at line 31 of file mo\-Easy\-Cool\-Sched.h.
|
|
||||||
|
|
||||||
\subsection{Member Function Documentation}
|
|
||||||
\index{moEasyCoolSched@{mo\-Easy\-Cool\-Sched}!operator()@{operator()}}
|
|
||||||
\index{operator()@{operator()}!moEasyCoolSched@{mo\-Easy\-Cool\-Sched}}
|
|
||||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool mo\-Easy\-Cool\-Sched::operator() (double \& {\em \_\-\_\-temp})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classmo_easy_cool_sched_ca08df878417ef1124e6933a9c2d7a0b}
|
|
||||||
|
|
||||||
|
|
||||||
Function which proceeds to the cooling.
|
|
||||||
|
|
||||||
Decrease the temperature and indicates if it is greater than the threshold.
|
|
||||||
|
|
||||||
\begin{Desc}
|
|
||||||
\item[Parameters:]
|
|
||||||
\begin{description}
|
|
||||||
\item[{\em \_\-\_\-temp}]the current temperature. \end{description}
|
|
||||||
\end{Desc}
|
|
||||||
\begin{Desc}
|
|
||||||
\item[Returns:]if the new temperature (current temperature $\ast$ ratio) is greater than the threshold. \end{Desc}
|
|
||||||
|
|
||||||
|
|
||||||
Implements {\bf eo\-UF$<$ double \&, bool $>$}.
|
|
||||||
|
|
||||||
Definition at line 44 of file mo\-Easy\-Cool\-Sched.h.
|
|
||||||
|
|
||||||
References ratio, and threshold.
|
|
||||||
|
|
||||||
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
|
||||||
\item
|
|
||||||
mo\-Easy\-Cool\-Sched.h\end{CompactItemize}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue