com.partnersoft.v3x.apps.Staker.domain
Class StakingSheetWeighting

java.lang.Object
  extended by com.partnersoft.v3x.apps.Staker.domain.StakingSheetWeighting
All Implemented Interfaces:
java.io.Serializable

public class StakingSheetWeighting
extends java.lang.Object
implements java.io.Serializable

Weight values used to compute section and page breaks in a staking sheet.

See Also:
Serialized Form

Constructor Summary
StakingSheetWeighting()
          Create a new StakingSheetWeighting.
 
Method Summary
 int calculateWeight(StakingSheetLocation location)
           
 int getCommentWeight()
          Weight value assigned to each unit comment.
 int getLoadLimit()
          Maximum total weight allowed for a section.
 int getLocationWeight()
          Weight value assigned to each location.
 int getUnitWeight()
          Weight value assigned to each unit aggregate at a location.
 boolean isOverWeight(int currentWeight, StakingSheetLocation location)
           
 void setCommentWeight(int newCommentWeight)
          Weight value assigned to each unit comment.
 void setLoadLimit(int newLimit)
           
 void setLocationWeight(int newLocationWeight)
          Weight value assigned to each location.
 void setUnitWeight(int newUnitWeight)
          Weight value assigned to each unit aggregate at a location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StakingSheetWeighting

public StakingSheetWeighting()
Create a new StakingSheetWeighting.

Method Detail

calculateWeight

public int calculateWeight(StakingSheetLocation location)

isOverWeight

public boolean isOverWeight(int currentWeight,
                            StakingSheetLocation location)

getCommentWeight

public int getCommentWeight()
Weight value assigned to each unit comment.


setCommentWeight

public void setCommentWeight(int newCommentWeight)
Weight value assigned to each unit comment.


getLocationWeight

public int getLocationWeight()
Weight value assigned to each location.


setLocationWeight

public void setLocationWeight(int newLocationWeight)
Weight value assigned to each location.


getUnitWeight

public int getUnitWeight()
Weight value assigned to each unit aggregate at a location.


setUnitWeight

public void setUnitWeight(int newUnitWeight)
Weight value assigned to each unit aggregate at a location.


getLoadLimit

public int getLoadLimit()
Maximum total weight allowed for a section.


setLoadLimit

public void setLoadLimit(int newLimit)