<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%=====================================================================
\section{The Timer Behavior}
%=====================================================================
%\wikisec{grp=bhvsolo, file=BehaviorTimer,short=Timer Behavior}
\label{bhv_timer}
%\index{IvP Behaviors Implemented!\var{BHV\_Timer}}
%\index{Timer Behavior}

The Timer behavior is a somewhat unique behavior in that it never
produces an objective function. It has virtually no functionality
beyond what is derived from the parent IvPBehavior class. It can be
used to set a timer between the observation of one or more events
(with condition flags) and the posting of one or more events (with end
flags). The \bvar{duration}, \bvar{duration\_status},
\bvar{duration\_idle\_decay}, \bvar{condition}, \bvar{runflag} and
\bvar{endflag} parameters are all defined generally for
behaviors. There are no additional parameters defined for this
behavior.

%=======================================================================
\subsection{Configuration Parameters}

\input{includes/bhv_all_properties}

\vspace{0.15in}
\begin{listing}{Example Configuration Block}
\label{lst_bhv_timer}

\begin{fileverb}
Behavior = BHV_Timer
{
  // General Behavior Parameters
  // ---------------------------
  name         = bhv_timer            // default
  condition    = WAIT_REQUEST=true    // example
  duration     = 120                  // example
  idleflag     = WAITING=false        // example
  runflag      = WAITING=true         // example
  runflag      = WAITED=false         // example
  endflag      = WAITED=true          // example
  updates      = TIMER_UPDATES        // example

  // Parameters specific to this behavior
  // ------------------------------------
  // None
}
\end{fileverb}
\end{listing}

%=======================================================================
\subsection{Variables Published}

This behavior publishes two variables for monitoring and logging
performance - \mvar{TIMER\_IDLE}, \mvar{TIMER\_RUNNING}.




</pre></body></html>