package sg.edu.cs2103aug2015_w13_2j;

/**
This class implements methods from LogicInterface
@author Nguyen Tuong Van  

TODO: Should we include a HashMap besides the ArrayList of Tasks
so as to store the task names as keys?
 */

import java.util.*;

public class Logic implements LogicInterface{
    private ArrayList<Task> tasks;
    
    public Logic(){
        tasks = new ArrayList<Task>();	
    }
    
    public void addTask(Task task){
    	tasks.add(task);
    }
    
    public Task getTask(int index){
    	return tasks.get(index);
    }
    
    public void deleteTask(Task task){
    	
    }
    public void archiveTask(Task task){
    	
    }
    public void sort(){
    	
    }
    public ArrayList<Task> getAllTask(){
    	return tasks;
    }
    
    public void echo(String s){
    	FunDUE.sFormatter.passThrough(s);
    }
}

@@ -334,24 +334,151 @@
 sk%3E tasks;%0D%0A
+    private ArrayList%3CTask%3E events;%0D%0A    private ArrayList%3CTask%3E deadLines;%0D%0A    private ArrayList%3CTask%3E floatingTasks;%0D%0A    %0D%0A
     %0D%0A    pu

Add 3 arrayLists for 3 types of tasks