/******************************************************************* * * DESCRIPTION: This class exercises the ATThruHikeData class * * AUTHOR: * * HISTORY: * * DATE:11/29/1999 * * * Copyright (C) 1999 Tom Janofsky * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * *******************************************************************/ import java.util.Date; public class ATTest { public static void main(String[] args){ Date start = new Date(99, 3, 1); double milesPerDay = 14.5; ATThruHikeData at = new ATThruHikeData(start, milesPerDay, 2160.0); at.display(); at.setDaysOff(3); at.display(); Date end = new Date(99, 7, 1); at.setEndDate(end); at.display(); at.setMilesPerDay(15.7); at.display(); start = new Date(99, 2, 9); at.setStartDate(start); at.setDaysOff(6); at.display(); } }