Logo Search packages:      
Sourcecode: pcalendar version File versions  Download package

Boolean net::sf::linuxorg::pcal::engine::Engine::checkForFutureOvulation ( Date  date ) [inline, private]

Checks if after the date specified, there is an ovulation record.

date- the date under investigation
- null if there is no ovulation recorded after the date specified True - if the ovulation record is present and the date is fertile False - if the ovulation record is present can not cause this date fertility

Definition at line 555 of file Engine.java.

References dateDiff(), and dateTypes.

Referenced by getDayInfoRecorded().

            Date next_date = startDates.higher(date);
            int next_date_type = dateTypes.get(next_date);
            if(next_date_type == PCAL_TYPE_OVULATION) {
                  int days_till_ovulation = dateDiff(date, next_date);
                  return days_till_ovulation < PERIOD_FERTILE_DAYS_COUNT; 
            } else {
                  return null;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index