Back to project page observer.
The source code is released under:
GNU General Public License
If you think the Android project observer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package uk.ac.horizon.observer.model; /*from www .j av a 2 s . c o m*/ import java.util.Date; import java.util.Stack; /** * An observable place * @author Jesse */ public class Place extends Observation { private Stack<Task> tasks = new Stack<Task>(); private Integer[] myDisabledTaskList; public Place(String name, Stack<Task> tasks, Integer[] disabledTaskList){ super(name, "place"); this.tasks = tasks; // This is commented out to prevent greying out. myDisabledTaskList = new Integer[]{};//disabledTaskList; } public Integer[] getDisabledTasks(){ return myDisabledTaskList; } public Stack<Task> getTasks(){ return tasks; } public void pushTask(Task task){ tasks.push(task); } public Task popTask(){ return tasks.pop(); } public Task peekTask(){ return tasks.peek(); } public int size(){ return tasks.size(); } public void setDate(long date){ this.observationTime = new Date(date); } }