

\documentclass[compress,red]{beamer}

% This file is a solution template for:

% - Talk at a conference/colloquium.
% - Talk length is about 20min.
% - Style is ornate.



% Copyright 2004 by Till Tantau <tantau@users.sourceforge.net>.
%
% In principle, this file can be redistributed and/or modified under
% the terms of the GNU Public License, version 2.
%
% However, this file is supposed to be a template to be modified
% for your own needs. For this reason, if you use this file as a
% template and not specifically distribute it as part of a another
% package/program, I grant the extra permission to freely copy and
% modify this file as you see fit and even to delete this copyright
% notice. 


\mode<presentation>
{
  %\usetheme{Madrid}
  \usetheme{Warsaw}
  % or ...
  %\usetheme{Berkeley}   % left bar
  %\usetheme{Antibes} % tree header
  %\usetheme{Boadilla}  % very plain
  %\usetheme{Warsaw}
  %\usetheme{Rochester} % I like
  %\usetheme{Goettingen}  % right bar
  %\usetheme{Ilmenau}

\usecolortheme{lily}

  \usepackage{beamerouterthemeshadow}
  %\usepackage{beamerouterthemesmoothtree}
  \usepackage{beamercolorthemeorchid}
  %\usepackage{beamerinnerthemerounded}
  %\usepackage{beamerthemeshadow}
  \setbeamercovered{transparent}
  % comment out to completely hide covered material

  % or whatever (possibly just delete it)
}

\usepackage{wmff}

\usepackage[english]{babel}
% or whatever

\usepackage[latin1]{inputenc}
% or whatever

\usepackage{times}
\usepackage[T1]{fontenc}
% Or whatever. Note that the encoding and the font should match. If T1
% does not look nice, try deleting the line with the fontenc.


\title % (optional, use only with long paper titles)
{CS4632 Object Oriented Modeling and Simulation}

\subtitle
{Models with Resources}

\author%[Author, Another] % (optional, use only with lots of authors)
{Dr. Jos\'e M. Garrido C.}
% \inst{1} 
% \and S.~Another\inst{2}}
% - Give the names in the same order as the appear in the paper.
% - Use the \inst{?} command only if the authors have different
%   affiliation.

\institute[Kennesaw State University] % (optional, but mostly needed)
{
  %\inst{1}%
  Department of Computer Science\\
  College of Computing and Software Engineering
  Kennesaw State University
%  \and
%  \inst{2}%
%  Department of Theoretical Philosophy\\
%  University of Elsewhere
}
% - Use the \inst command only if there are several affiliations.
% - Keep it simple, no one is interested in your street address.

\date % (optional, should be abbreviation of conference name)
{Spring 2016}
% - Either use conference name or its abbreviation.
% - Not really informative to the audience, more for people (including
%   yourself) who are reading the slides online

\subject{Applied Computer Science, Simulation}
% This is only inserted into the PDF information catalog. Can be left
% out. 



% If you have a file called "university-logo-filename.xxx", where xxx
% is a graphic format that can be processed by latex or pdflatex,
% resp., then you can add a logo as follows:

\pgfdeclareimage[height=0.17in]{university-logo}{ksu-1.png}
\logo{\pgfuseimage{university-logo}}



% Delete this, if you do not want the table of contents to pop up at
% the beginning of each subsection:
%\AtBeginSubsection[]
%{
%  \begin{frame}<beamer>{Outline}
%    \tableofcontents[currentsection,currentsubsection]
%  \end{frame}
%}


% If you wish to uncover everything in a step-wise fashion, uncomment
% the following command: 

%\beamerdefaultoverlayspecification{<+->}


\begin{document}

\begin{frame}
  \titlepage
\end{frame}

%\begin{frame}{Outline}
%  \tableofcontents
  % You might wish to add the option [pausesections]
%\end{frame}


% Structuring a talk is a difficult task and the following structure
% may not be suitable. Here are some rules that apply for this
% solution: 

% - Exactly two or three sections (other than the summary).
% - At *most* three subsections per section.
% - Talk about 30s to 2min per frame. So there should be between about
%   15 and 30 frames, all told.

% - A conference audience is likely to know very little of what you
%   are going to talk about. So *simplify*!
% - In a 20min talk, getting the main ideas across is hard
%   enough. Leave out details, even if it means being less precise than
%   you think necessary.
% - If you omit details that are vital to the proof/implementation,
%   just say so once. Everybody will be happy with that.

%\section{Multi-Server Queuing Models}

%\section {Introduction}

\begin{frame}{Resources}
\begin{itemize}
\item
Processes are the \textcolor{red}{\bf active} components of  system
\item
Resources are \textcolor{red}{\bf passive} components of a system
\item
In the process-interaction approach to simulation, resource pools need to be defined and created. 
\item
Processes can acquire a number of resource items from a resource pool.
\end{itemize}
\end{frame}

\begin{frame}{Model of a Warehouse System}
\begin{itemize}
\item A warehouse receives two types of trucks, \textcolor{red}{\bf small} and \textcolor{red}{\bf big} trucks, that arrive periodically with goods. 
\item Each truck needs an unloading \textcolor{red}{\bf bay} to dock and to unload the goods. 
\item Small trucks need two \textcolor{red}{\bf workers} to unload, big trucks need three workers. 
\item The warehouse has a limited number of unloading bays and a limited number of workers. 
\item Trucks may need to wait if there are no available unloading bays and/or not sufficient available workers. 
\item Each type of truck has a mean arrival rate and a mean unloading time interval.
\end{itemize}
\end{frame}

\begin{frame}{Components}
The simulation model of the Warehouse system consists of the following components:
\medskip
\begin{itemize}
\item
Process definitions
\begin{itemize}
  \item Small trucks
  \item Big trucks
  \item Arrivals of small trucks
  \item Arrivals of big trucks
  \item The main process
\end{itemize}
 \item Standard Resource definitions, implemented as objects of class Res
 \begin{itemize}
  \item Unloading bays
  \item Workers
 \end{itemize}
\end{itemize}
\end{frame}

\begin{frame}{Activity Diagram of Big Truck}
\begin{figure}
\center
\includegraphics[width=2.15in]{actbtruck.png}
%\vskip\baselineskip
\end{figure}
\end{frame}

\begin{frame}{Big Trucks}
The following sequence of activities is performed by big trucks:
\begin{enumerate}
  \item After arriving, acquire one unloading bay if available, otherwise wait.
  \item Dock into bay, this takes a constant time interval.
  \item Acquire 3 workers if available, otherwise wait.
  \item Unload, takes a random time interval (from a uniform distribution).
  \item Release workers.
  \item Undock, takes a constant time interval.
  \item Release unloading bay. 
  \item Depart and terminate.
\end{enumerate}
\end{frame}


\begin{frame}{Small Trucks}
The following sequence of activities defines the behavior of small trucks.
\begin{enumerate}
  \item After arriving, acquire one unloading bay if available, otherwise wait
  \item Acquire 2 workers if available, otherwise wait
  \item Unload, takes a random time interval (from a uniform distribution)
  \item Release workers
  \item Release unloading bay
  \item Depart and terminate
\end{enumerate}
\end{frame}


\begin{frame}{Trace of Simulation Run}
The trace in the output shows the relevant events, such as: 
\begin{itemize}
\item Processes (trucks) start to request resources
\item Resources are allocated to the processes
\item Other processes start to wait for available resources
\item Processes terminate after they have completed all of their activities
\end{itemize}
\end{frame}

\begin{frame}{Model Implementation}
\begin{itemize}
\item
The complete model implementation of the Warehouse model is stored in the archive file, {\tt wareh.jar}. 
\item
This archive includes the following source files: {\tt Wareh.osl}, {\tt Sarrivals.osl}, {\tt Barrivals.osl}, {\tt Struck.osl}, and {\tt Btruck.osl}.
\end{itemize}
\end{frame}  

\begin{frame}[fragile]{Summary Results}
\medskip
{\tt \small
\begin{verbatim}
End Simulation of Busy Warehouse System 
date: 12/03/2015 time: 14:11
Total small trucks serviced: 36
Average period small truck spends in warehouse: 24.759
Small truck average wait period: 17.113
Total number of big trucks serviced: 43
Big truck average wait period: 21.189
Avg per btruck in warehouse: 34.101
\end{verbatim}
}
\end{frame}  

\begin{frame}{A Model of Machine Parts-Replacement}
\begin{itemize}
\item There are several machines in a shop, each having a part that \textcolor{red}{\bf fails} periodically. 
\item The part that fails needs to be removed from the machine, and a replacement part installed, if available. 
\item This removal and replacement of parts is carried out by an operator. 
\item The parts that fail are to be \textcolor{red}{\bf repaired} by the repairman, who also has other jobs to carry out when not repairing parts.
\end{itemize}
\end{frame}  

\begin{frame}{Detachable Resources in Model}
The model includes two different resource \textcolor{red}{containers}, which are implemented as objects of class {\em Bin}. These resource containers are:

\begin{itemize}
 \item The parts that fail, {\em fault\_parts};
 \item The replacement parts, {\em rep\_parts}. These are the parts that have been repaired.
\end{itemize}
\end{frame} 

\begin{frame}{Activity Diagram of Machine}
\begin{figure}
\center
\includegraphics[width=2.25in]{actmach.png}
%\vskip\baselineskip
\end{figure}
\end{frame}

\begin{frame}{Activities in the Model}
\begin{itemize}
 \item
The machine processes are \textcolor{red}{\bf producers} of damaged parts; they give items to the {\em fault\_parts} resource container. 
\item
The machine processes are also \textcolor{red}{\bf consumers} of replacement parts; they take items from the {\em rep\_parts} resource container. 
\item The figure shows a simplified activity diagram of the machine process with the two resource containers.  
\item
The repairman process is a \textcolor{red}{\bf consumer} of damaged parts; it takes items from the {\em fault\_parts} resource container. 
\item The repairman process is also a \textcolor{red}{\bf producer} of replacement parts; it gives items to the {\em rep\_parts} resource container. 
\end{itemize}
\end{frame} 

\begin{frame}{Model Implementation}
\begin{itemize}
 \item
The source files with implementations for all classes are stored in archive file {\tt preplace.jar}.
\item
This archive includes files: {\tt Preplace.osl}, {\tt Machine.osl}, and {\tt Repairman.osl}. 
\end{itemize}
\end{frame} 

\begin{frame}[fragile]{Machine Replacement Parts Summary Results}
\medskip
{\tt \small
\begin{verbatim}
End Simulation of Machine Parts Replacement System
 date: 12/03/2015 time: 11:34
Total machines serviced: 3
Average down period: 15.299999999998931
Average up period: 2782.15476170466
Average machine utilization: 0.7273607220142901
\end{verbatim}
}
\end{frame}  











\end{document}
