com.atlassian.greenhopper.model.stats
Class BoardCapacity

java.lang.Object
  extended by com.atlassian.greenhopper.model.stats.BoardCapacity
All Implemented Interfaces:
Capacity

public class BoardCapacity
extends java.lang.Object
implements Capacity


Field Summary
 
Fields inherited from interface com.atlassian.greenhopper.model.stats.Capacity
NONE, NONE_CAPACITY_VALUE, NONE_CAPACITY_VALUE_OBJECT
 
Constructor Summary
BoardCapacity(java.lang.Double min, java.lang.Double max, WatchedField watchedField)
           
 
Method Summary
 double getExcess(Summary summary)
           
 WatchedField getField()
           
 java.lang.Double getMax()
           
 java.lang.Double getMin()
           
 java.lang.String getRenedereMaxValue()
           
 java.lang.String getRenedereMinValue()
           
 double getShortfall(Summary summary)
           
 boolean isMaxBusted(Summary summary)
           
 boolean isMaxSet()
           
 boolean isMinBusted(Summary summary)
           
 boolean isMinSet()
           
 void setDefaultCapacity(Capacity capacity)
           
 void setMax(java.lang.String max)
          Set the max value for the capacity
 void setMin(java.lang.String min)
          Set the min value for the capacity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoardCapacity

public BoardCapacity(java.lang.Double min,
                     java.lang.Double max,
                     WatchedField watchedField)
Method Detail

setDefaultCapacity

public void setDefaultCapacity(Capacity capacity)
Specified by:
setDefaultCapacity in interface Capacity

getMax

public java.lang.Double getMax()
Specified by:
getMax in interface Capacity

getMin

public java.lang.Double getMin()
Specified by:
getMin in interface Capacity

getField

public WatchedField getField()
Specified by:
getField in interface Capacity

isMaxSet

public boolean isMaxSet()
Specified by:
isMaxSet in interface Capacity

isMinSet

public boolean isMinSet()
Specified by:
isMinSet in interface Capacity

isMaxBusted

public boolean isMaxBusted(Summary summary)
Specified by:
isMaxBusted in interface Capacity

isMinBusted

public boolean isMinBusted(Summary summary)
Specified by:
isMinBusted in interface Capacity

getShortfall

public double getShortfall(Summary summary)
Specified by:
getShortfall in interface Capacity

getExcess

public double getExcess(Summary summary)
Specified by:
getExcess in interface Capacity

getRenedereMaxValue

public java.lang.String getRenedereMaxValue()
Specified by:
getRenedereMaxValue in interface Capacity

getRenedereMinValue

public java.lang.String getRenedereMinValue()
Specified by:
getRenedereMinValue in interface Capacity

setMin

public void setMin(java.lang.String min)
Description copied from interface: Capacity
Set the min value for the capacity.

Specified by:
setMin in interface Capacity
Parameters:
min - the min value as a String in the format parsable by the WatchedField.

setMax

public void setMax(java.lang.String max)
Description copied from interface: Capacity
Set the max value for the capacity

Specified by:
setMax in interface Capacity
Parameters:
max - the max value as a String in a format parsable by the WatchedField


Copyright © 2007-2012 Atlassian. All Rights Reserved.