Skip to content
Snippets Groups Projects
Schedule.java 1.16 KiB
Newer Older
  • Learn to ignore specific revisions
  • eyan_'s avatar
    eyan_ committed
    package com.example.schedulerapp;
    
    
    
    //todo: how does sql work? would that be easier?
    
    
    import java.util.ArrayList;
    
    
    eyan_'s avatar
    eyan_ committed
    public class Schedule {
    
        private ArrayList<Shift> shifts;
    
        public Schedule(){
            shifts = new ArrayList<>();
        }
    
        // output: all shifts
        public ArrayList<Shift> getAllShifts(){
            return shifts;
        }
    
        //todo: java date?
        // output: all shifts starting and/or ending on the given date
        public ArrayList<Shift> getDateShifts(){
            ArrayList<Shift> result = new ArrayList<>();
            // get all appropriate shifts, add to result
    
            return null;
            //return result;
        }
    
        //todo
        // output: all shifts assigned to given employee
        public ArrayList<Shift> getEmpShifts(int empID){
            ArrayList<Shift> result = new ArrayList<>();
            // get all appropriate shifts, add to result
    
            return null;
            //return result;
        }
    
        //todo
        // output: all shifts marked as available
        public ArrayList<Shift> getAvailableShifts(){
            ArrayList<Shift> result = new ArrayList<>();
            // get all appropriate shifts, add to result
    
            return null;
            //return result;
        }
    
    
    eyan_'s avatar
    eyan_ committed
    }