|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.officecomplexcustomer.customers.Office
public class Office
The office is the domain instance represents a single working facility with the workers acting inside it and fully equipped with appliances statistically distributed. There are different kinds of appliances utilized by the persons working in the premises and each person has it's own working and break schedule.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
logger for trace logging -- use log.info(), log.warn(), and log.error() appropriately. |
OfficeComplex |
officeOf
This variable is pointing to the village that this office is part of. |
| Constructor Summary | |
|---|---|
Office()
|
|
| Method Summary | |
|---|---|
int |
employeeNumber(int weekday,
int quarter)
This function checks the number of employees in the office in a specific quarter, either working either on break. |
int |
employeeOnBreakNumber(int weekday,
int quarter)
This function checks the number of employees on a break in the office in a specific quarter. |
int |
employeeWorkingNumber(int weekday,
int quarter)
This function checks the number of working employees in the office in a specific quarter. |
Vector<Appliance> |
getAppliances()
This is a function that returns the appliances of the office. |
Vector<Person> |
getMembers()
This is a function that returns the members of the office. |
void |
initialize(String OfficeName,
Properties conf,
Vector<Integer> publicVacationVector,
Random gen)
This is the initialization function. |
boolean |
isEmpty(int weekday,
int quarter)
This function checks if any of the workers is in the office. |
boolean |
isOnBreak(int weekday,
int quarter)
This function checks if any of the workers of the office are on break. |
boolean |
isOnVacation(int weekday)
This function checks if all the workers of the office are away on vacation or sick on a certain day |
boolean |
isWorking(int weekday,
int quarter)
This function checks if any of the workers in the office are working |
boolean |
isWorkingDay(int day)
This function checks if all the workers of the office are away on vacation or sick on a certain day |
boolean |
isWorkingDayOfWeek(int weekday)
This function checks if all the workers of the office are away on vacation or sick on a certain day |
void |
printDailyLoad(int day)
This function prints to the screen the daily load of the office for the weekday at hand. |
String |
toString()
|
void |
weatherCheck(int day,
int hour,
org.joda.time.Instant now,
double temperature)
This function is checking the current weather conditions and the existence of weather sensitive appliances and if the temperature is over/under a certain threshold, the appliances begin or stop their operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger log
public OfficeComplex officeOf
| Constructor Detail |
|---|
public Office()
| Method Detail |
|---|
public void initialize(String OfficeName,
Properties conf,
Vector<Integer> publicVacationVector,
Random gen)
OfficeName - conf - publicVacationVector - gen - public Vector<Appliance> getAppliances()
public Vector<Person> getMembers()
public boolean isWorking(int weekday,
int quarter)
weekday - quarter -
public boolean isOnBreak(int weekday,
int quarter)
weekday - quarter -
public boolean isOnVacation(int weekday)
quarter -
public boolean isWorkingDayOfWeek(int weekday)
quarter -
public boolean isWorkingDay(int day)
quarter -
public boolean isEmpty(int weekday,
int quarter)
weekday - quarter -
public int employeeWorkingNumber(int weekday,
int quarter)
weekday - quarter -
public int employeeOnBreakNumber(int weekday,
int quarter)
weekday - quarter -
public int employeeNumber(int weekday,
int quarter)
weekday - quarter -
public void weatherCheck(int day,
int hour,
org.joda.time.Instant now,
double temperature)
public void printDailyLoad(int day)
weekday - public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||