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

void net::sf::linuxorg::pcal::engine::Engine::applyDateIntDelta ( int  sympthomIndex,
int  startingValue,
int  delta 
) [inline, private]

This is a helper method for shifting all date-ints up or down when a sympthom value is added or deleted

startingValueapply to values equal or larger than this

Definition at line 1687 of file Engine.java.

References getAllDateIntegers().

Referenced by deleteSypmthomValue(), and insertSypmthomValue().

            for(DateIntsContainer intCnt: PCalendar.engine.getAllDateIntegers().values()) {
                  Integer tempInt = intCnt.getIntValue(sympthomIndex);
                  if(tempInt!=null) {
                        if(tempInt >= startingValue) {
                              intCnt.setIntValue(sympthomIndex, tempInt + delta);

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