com.atlassian.greenhopper.model.team
Interface TimeAllocation

All Superinterfaces:
DaysAllocation
All Known Implementing Classes:
DefaultTimeAllocation

public interface TimeAllocation
extends DaysAllocation

Provides time allocation information (in seconds) on top of day allocation.


Method Summary
 long getTime(org.joda.time.DateMidnight day)
          Get the total time for a single day.
 java.util.Map<org.joda.time.DateMidnight,java.lang.Long> getTimePerDay()
          Get the time on a per-day basis.
 long getTotalTime()
          Get the total time for the whole allocation period.
 
Methods inherited from interface com.atlassian.greenhopper.model.team.DaysAllocation
getEndDate, getStartDate, getWorkingDays, getWorkingDaysCount, hasWorkingDays, isWorkingDay
 

Method Detail

getTotalTime

long getTotalTime()
Get the total time for the whole allocation period.

Returns:
the total in seconds

getTimePerDay

java.util.Map<org.joda.time.DateMidnight,java.lang.Long> getTimePerDay()
Get the time on a per-day basis.


getTime

long getTime(org.joda.time.DateMidnight day)
Get the total time for a single day.

Parameters:
day - the day to fetch the total for
Returns:
the total in seconds


Copyright © 2007-2014 Atlassian. All Rights Reserved.