@Component @Lazy public class AldermanOffice extends Object implements IAldermanOffice
| Modifier and Type | Field and Description |
|---|---|
private javafx.collections.ObservableList<IAldermanTask> |
tasks |
private Optional<ICityViolation> |
violation |
private List<IAcceptedAldermanTask> |
workedOnTasks |
| Constructor and Description |
|---|
AldermanOffice() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(IAldermanTask task,
org.joda.time.DateTime limit,
IPlayer player)
Add a new task that is currently worked on.
|
void |
finished(IAldermanTask task)
Task is finished, so remove it from the list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTasks, getViolation, getWorkedOnTasksprivate final javafx.collections.ObservableList<IAldermanTask> tasks
private Optional<ICityViolation> violation
private List<IAcceptedAldermanTask> workedOnTasks
public void addTask(IAldermanTask task, org.joda.time.DateTime limit, IPlayer player)
IAldermanOfficeaddTask in interface IAldermanOfficetask - that is to be fullfiled.limit - time limit until when the task has to be completedplayer - who is working on the taskpublic void finished(IAldermanTask task)
IAldermanOfficefinished in interface IAldermanOfficetask - completed taskCopyright © 2011-2017 Sahits GmbH. All Rights Reserved.