com.atlassian.greenhopper.model.stats
Class Capacities

java.lang.Object
  extended by com.atlassian.greenhopper.model.stats.Capacities

public class Capacities
extends java.lang.Object

Holder of capacity objects.


Constructor Summary
Capacities()
           
Capacities(java.util.List<Capacity> capacities)
           
 
Method Summary
 Capacity get(WatchedField watchedField)
           
 java.util.List<Capacity> getCapacities()
           
 java.lang.String getCapacityMessage(com.opensymphony.user.User user, I18n2 i18n, Summary summary, boolean forMax)
          Get the capacity message for a capacities object
 boolean hasStats()
           
 boolean isMaxBusted(Summary summary)
          Are the capacities max busted?
 boolean isMinBusted(Summary summary)
          Are the capacities min busted?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Capacities

public Capacities()

Capacities

public Capacities(java.util.List<Capacity> capacities)
Method Detail

getCapacities

public java.util.List<Capacity> getCapacities()

get

public Capacity get(WatchedField watchedField)

hasStats

public boolean hasStats()
Returns:
true if it contains a non-system field with capacities

isMaxBusted

public boolean isMaxBusted(Summary summary)
Are the capacities max busted?

Parameters:
summary - The summary object containing the statistics to check
Returns:
true if at least one capacity is max busted, false otherwise

isMinBusted

public boolean isMinBusted(Summary summary)
Are the capacities min busted?

Parameters:
summary - The summary object containing the statistics to check
Returns:
true if at least one capacity is min busted, false otherwise

getCapacityMessage

public java.lang.String getCapacityMessage(com.opensymphony.user.User user,
                                           I18n2 i18n,
                                           Summary summary,
                                           boolean forMax)
Get the capacity message for a capacities object

Parameters:
forMax - if true the message for the max busted capacities is created, for min if false


Copyright © 2007-2011 Atlassian. All Rights Reserved.