Class Settings

java.lang.Object
  |
  +--Settings

public class Settings
extends java.lang.Object

Represents all of the settings that are a part of the employee scheduler.


Field Summary
private  boolean showTaskList
          True if Show Task List is active, false otherwise
private  ListOfSkills skills
          List of skills in the settings
private  int startDay
          Day to start scheduling (i.e.
private  Times startTime
          Time to start the scheduling day, from 0-23.5
 
Constructor Summary
Settings()
          Constructs configuration based on an external file
 
Method Summary
 void AddSkill(Skills toAdd)
          Adds a skill to the settings
 java.lang.String[] GetListOfSkills()
          Gets the names of the list of skills defined in the settings
 boolean GetShowTasklist()
          Gets whether or not the Show Task List is active
 int GetStartDay()
          Gets the day to start the schedule
 Times GetStartTime()
          Gets time to start the scheduling day, from 0-23.5 (ie.
 void RemoveSkills(ListOfSkills toRemove)
          Removes skills from the settings
 void SetShowTasklist(boolean newShowTaskListValue)
          Sets whether or not to show the task list
 void SetStartDay(int newStartDay)
          Sets the start day of the schedule
 void SetStartTime(Times newStartTime)
          Sets the start time for the schedule
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

skills

private ListOfSkills skills
List of skills in the settings

startTime

private Times startTime
Time to start the scheduling day, from 0-23.5

startDay

private int startDay
Day to start scheduling (i.e. 0=Monday, 1=Tuesday, ..., 6=Sunday)

showTaskList

private boolean showTaskList
True if Show Task List is active, false otherwise
Constructor Detail

Settings

public Settings()
Constructs configuration based on an external file
Method Detail

AddSkill

public void AddSkill(Skills toAdd)
Adds a skill to the settings
Parameters:
toAdd - new skill to add to settings

RemoveSkills

public void RemoveSkills(ListOfSkills toRemove)
Removes skills from the settings
Parameters:
toRemove - skills to be removed from the list

SetStartTime

public void SetStartTime(Times newStartTime)
Sets the start time for the schedule
Parameters:
newStartTime - time to start the schedule days (when a page is shown in the schedule, this determines what hour is displayed at the very top of the schedule, default is 8:00 in the morning)

SetStartDay

public void SetStartDay(int newStartDay)
Sets the start day of the schedule
Parameters:
newStartDay - day to start schedule (When the schedule is being printed, edited, and viewed, the determines which day is used first, default is Monday)

SetShowTasklist

public void SetShowTasklist(boolean newShowTaskListValue)
Sets whether or not to show the task list
Parameters:
newShowTaskListValue - determines whether or not to show the checkbox

GetStartTime

public Times GetStartTime()
Gets time to start the scheduling day, from 0-23.5 (ie. 8.5 is 8:30)
Returns:
time that the scheduling day starts

GetStartDay

public int GetStartDay()
Gets the day to start the schedule
Returns:
the day to start the schedule

GetShowTasklist

public boolean GetShowTasklist()
Gets whether or not the Show Task List is active
Returns:
true if Show Task List is checked, false otherwise

GetListOfSkills

public java.lang.String[] GetListOfSkills()
Gets the names of the list of skills defined in the settings
Returns:
the names of the list of skills