com.partnersoft.v3x.apps.Staker.domain
Class StakedUnitAggregate
java.lang.Object
com.partnersoft.v3x.apps.Staker.domain.StakedUnitAggregate
public class StakedUnitAggregate
- extends java.lang.Object
A StakedUnitAggregate is a summary of the staked units at a location which
refer to the same unit. It includes the unit in question, the StakeStatus,
the quantity of that unit, and the set of comments, if any, applied to any of
the StakedUnits that were aggregated.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
quantity
public int quantity
unit
public Unit unit
status
public StakeStatus status
comments
public java.util.HashSet comments
StakedUnitAggregate
public StakedUnitAggregate(Unit unit,
StakeStatus status,
java.util.Map fieldValues)
- Creates a StakedUnitAggregate with an implicit quantity of zero.
addStakedUnit
public void addStakedUnit(Location location,
UnitAtALocation uaal)
addStakedUnit
public void addStakedUnit(Location location,
UnitOnASpan uoas)
getQuantity
public int getQuantity()
setQuantity
public void setQuantity(int newQuantity)
increaseQuantity
public void increaseQuantity(int howMuchMore)
getUnit
public Unit getUnit()
setUnit
public void setUnit(Unit newNit)
getStatus
public StakeStatus getStatus()
setStatus
public void setStatus(StakeStatus newStatus)
getComments
public java.util.Iterator getComments()
addComment
public void addComment(java.lang.String comment)
getCommentsSet
public java.util.Set getCommentsSet()
getFieldValues
public java.util.Map getFieldValues()
setFieldValues
public void setFieldValues(java.util.Map newValues)