Coverage Report - org.kuali.student.r2.core.atp.infc.Milestone
 
Classes in this File Line Coverage Branch Coverage Complexity
Milestone
N/A
N/A
1
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.r2.core.atp.infc;
 17  
 
 18  
 import java.util.Date;
 19  
 
 20  
 import org.kuali.student.r2.common.infc.IdEntity;
 21  
 
 22  
 
 23  
 /**
 24  
  * Information about a milestone. A milestone may represent a single
 25  
  * point in time or a range depending on the value of isDateRange().
 26  
  *
 27  
  * @Author tom
 28  
  * @Since Tue Apr 05 14:22:34 EDT 2011
 29  
  */ 
 30  
 
 31  
 public interface Milestone 
 32  
     extends IdEntity {
 33  
 
 34  
     /**
 35  
      * Tests if this Milestone is an all day event. An all-day event
 36  
      * does not have a meaningful time component in the date.
 37  
      *
 38  
      * @name Is All Day
 39  
      * @required
 40  
      */
 41  
     public Boolean getIsAllDay();
 42  
 
 43  
     /**
 44  
      * Tests if this Milestone is an instructional day.
 45  
      *
 46  
      * @name Is Instructional Day
 47  
      * @required
 48  
      */
 49  
     public Boolean getIsInstructionalDay();
 50  
 
 51  
     /**
 52  
      * Tests if this Milestone is relative to another Milestone.
 53  
      *
 54  
      * @name Is Relative
 55  
      * @required
 56  
      */
 57  
     public Boolean getIsRelative();
 58  
 
 59  
     /**
 60  
      * Gets the anchor Milestone to which this Milestone is relative.
 61  
      *
 62  
      * @name Relative Anchor Milestone Id
 63  
      */
 64  
     public String getRelativeAnchorMilestoneId();
 65  
    
 66  
     /**
 67  
      * Tests if this milestone has a date range. 
 68  
      *
 69  
      * @return true if the end date is different than the start date,
 70  
      *         false if the start end end date are the same
 71  
      * @name Is Date Range
 72  
      * @required
 73  
      */
 74  
     public Boolean getIsDateRange();
 75  
    
 76  
     /**
 77  
      * The start date and time of the milestone.
 78  
      *
 79  
      * @return the milestone start date 
 80  
      * @name Start Date
 81  
      */
 82  
     public Date getStartDate();
 83  
    
 84  
     /**
 85  
      * The end date and time of the milestone. The end
 86  
      * date must be equal to or greater that the start.
 87  
      *
 88  
      * @return the milestone end date
 89  
      * @ame End Date 
 90  
      */
 91  
     public Date getEndDate();
 92  
 }