public class Controller
extends java.lang.Object
Constructor and Description |
---|
Controller()
Constructor to give instances to important class members
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Assistant> |
getAssistants()
Returns the assistants currently in the model.
|
java.util.ArrayList<Constraint> |
getConstraints()
Returns the constraints currently applied to the model
|
LoginHandler |
getLoginHandler()
Returns the current LoginHanlder
|
Model |
getModel()
Retrieves the current model
|
ModelHandler |
getModelHandler()
Returns the current modelHanlder
|
java.util.ArrayList<Schedule> |
getSchedules()
Returns the schedules currently in the model.
|
java.util.ArrayList<Section> |
getSections()
Returns the sections currently in the model.
|
SemesterHandler |
getSemesterHandler()
Returns the current semesterHandler
|
User |
getUser()
Returns the current user
|
View |
getView()
Returns the current view
|
WebformHandler |
getWebformHandler()
Returns the current webformHandler
|
static void |
main(java.lang.String[] args)
Main calling function.
|
void |
runGraphicalView()
Establish graphical View, and begin login process
|
void |
setAssistants(java.util.ArrayList<Assistant> a)
Set the Assistants in the model to the ones specified.
|
void |
setConstraints(java.util.ArrayList<Constraint> c)
Sets the current constraints to the ones supplied.
|
void |
setLoginHandler(LoginHandler loginHandler)
Sets the current LoginHandler to the one supplied
|
void |
setModel(Model newModel)
Sets the current model
|
void |
setSchedules(java.util.ArrayList<Schedule> s)
Set the schedules in the model to the ones specified.
|
void |
setSections(java.util.ArrayList<Section> s)
Set the sections in the model to the ones specified.
|
void |
setSemesterHandler(SemesterHandler semesterHandler)
Sets the current semesterHandler to the one supplied
|
void |
setUser(User user)
Sets the current user to the one specified.
|
void |
setView(View v)
Sets the current view to the one supplied
|
void |
setWebformHandler(WebformHandler webformHandler)
Sets the current webformHandler to the one supplied.
|
public Controller()
public static void main(java.lang.String[] args)
public void runGraphicalView()
public View getView()
public java.util.ArrayList<Constraint> getConstraints()
public java.util.ArrayList<Assistant> getAssistants()
public java.util.ArrayList<Section> getSections()
public java.util.ArrayList<Schedule> getSchedules()
public void setView(View v)
public void setConstraints(java.util.ArrayList<Constraint> c)
c
- public void setAssistants(java.util.ArrayList<Assistant> a)
a
- public void setSections(java.util.ArrayList<Section> s)
s
- public void setSchedules(java.util.ArrayList<Schedule> s)
s
- public void setUser(User user)
user
- public User getUser()
public void setLoginHandler(LoginHandler loginHandler)
loginHandler
- public LoginHandler getLoginHandler()
public void setSemesterHandler(SemesterHandler semesterHandler)
semesterHandler
- public SemesterHandler getSemesterHandler()
public void setWebformHandler(WebformHandler webformHandler)
webformHandler
- public WebformHandler getWebformHandler()
public ModelHandler getModelHandler()
public Model getModel()
public void setModel(Model newModel)
newModel
-