// @topic S-0303-03-05-80 Java Abstract Factory Example // @brief class ElevatorFreight implements IElevator package bcc.week10_abstract_factory; import java.util.ArrayList; public class ElevatorPassenger implements IElevator { //-------------------------- // data attributes //-------------------------- // TODO -- unfinished: // very likely that this list should in the superclass // for all types of the elevators in the system: ArrayList< Integer > floorRequsts = new ArrayList<>(); //-------------------------- // constructors //-------------------------- public ElevatorPassenger() {} //-------------------------------------------- // interface IElevator implementation //-------------------------------------------- @Override public boolean acceptFloorRequest( int floor ) { // TODO -- unfinished: // ignore if the floor is already on the list // Also, return false if unable to accept this request floorRequsts.add( floor ); return true; }//acceptFloorRequest }//class ElevatorPassenger