uchicago.src.repastdemos.asynchAgents
Class Office

java.lang.Object
  extended by uchicago.src.repastdemos.asynchAgents.Office

public class Office
extends java.lang.Object

The space the agents are contained in. NOT related directly to the GUI display.

Version:
$Revision: 1.1 $ $Date: 2005/08/12 20:04:57 $
Author:
Jerry Vos

Constructor Summary
Office()
           
Office(int width, int height)
           
 
Method Summary
 int fireAllEmployees()
           
 Boss getBoss()
           
 Consultant getConsultant()
           
 java.util.ArrayList getEmployees()
           
 int getHeight()
           
 int getTasksAssignedPerTick()
           
 int getWidth()
           
 void hireBoss(AsynchAgentsModel officeSpace)
           
 void hireConsultant(AsynchAgentsModel officeSpace)
           
 void hireEmployee(Employee emp)
           
 void hireEmployees(int numEmployees, SimModel model)
           
 void setHeight(int height)
           
 void setTasksAssignedPerTick(int val)
           
 void setWidth(int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Office

public Office()

Office

public Office(int width,
              int height)
Method Detail

fireAllEmployees

public int fireAllEmployees()

hireEmployees

public void hireEmployees(int numEmployees,
                          SimModel model)
                   throws RepastException
Throws:
RepastException

hireEmployee

public void hireEmployee(Employee emp)

hireBoss

public void hireBoss(AsynchAgentsModel officeSpace)
              throws RepastException
Throws:
RepastException

hireConsultant

public void hireConsultant(AsynchAgentsModel officeSpace)
                    throws RepastException
Throws:
RepastException

getHeight

public int getHeight()
Returns:
Returns the height of the office.

setHeight

public void setHeight(int height)
Parameters:
height - The height of the office.

getWidth

public int getWidth()
Returns:
Returns the width of the office.

setWidth

public void setWidth(int width)
Parameters:
width - The width of the office.

getEmployees

public java.util.ArrayList getEmployees()
Returns:
Returns the employees.

getBoss

public Boss getBoss()
Returns:
Returns the bosses.

getConsultant

public Consultant getConsultant()
Returns:
Returns the consultant.

getTasksAssignedPerTick

public int getTasksAssignedPerTick()

setTasksAssignedPerTick

public void setTasksAssignedPerTick(int val)