import java.util.Calendar; //MarkeyTime :: really simple object that keeps track of a segments open and close times class MarketTime { //----[ Member Data ]------------------ private Calendar openTime, closeTime; private int openHour, openMinute, openSecond; private int closeHour, closeMinute, closeSecond; //--[ Constructors ]-------------------- public MarketTime(Calendar ot, Calendar ct){ this.openTime = ot; this.closeTime = ct; } //--[ MemberMethods ]------------------- public void setOpenTime(Calendar c){} public void setCloseTime(Calendar c){} public Calendar getOpenTime(){return this.openTime;} public Calendar getCloseTime(){return this.closeTime;} public int getOpenHour(){ return this.openTime.get(Calendar.HOUR); } public int getOpenMinute(){ return this.openTime.get(Calendar.MINUTE); } public int getOpenSecond(){ return this.openTime.get(Calendar.SECOND); } public int getCloseSecond(){ return this.closeTime.get(Calendar.SECOND); } public int getCloseMinute(){ return this.closeTime.get(Calendar.MINUTE); } public int getCloseHour(){ return this.closeTime.get(Calendar.HOUR); } } //end class