Package mekhq.campaign.rating
Interface IUnitRating
- All Known Implementing Classes:
- AbstractUnitRating,- FieldManualMercRevDragoonsRating
public interface IUnitRating
- Since:
- 3/12/2012
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final RoundingModestatic final BigDecimalstatic final int
- 
Method SummaryModifier and TypeMethodDescriptionmegamek.common.enums.SkillLevelReturns the unit's average experience level.intReturns the Unit Rating score for the force's contract success/failure record.Return's the commander of the force.intReturns the Unit Rating score for the force's commander.Returns a text description of how the Unit rating was calculated.intReturns the Unit Rating score for the force's average experience level.intReturns the Unit Rating score for the force's financial record.Returns descriptive text that should be displayed in a Help/About dialog to inform users of the means by which the Unit rating is calculated.intintgetScore()Returns the percentage of units that are properly supported.intReturns the Unit Rating score for the force's ratio of support to combat units.intReturns the Unit Rating score for the percentage of combat units greater than L1 tech.Returns the percentage of units that can be transported without outside help.intReturns the Unit Rating score for the force's ratio of transportation available to transportation needs.Calculates the force's Unit rating and returns the appropriate letter code.intgetUnitRating(int score) Returns the static constant representation of the passed in Unit rating.intReturns the static constant representation of the computed Unit/Dragoon's rating as an integer.Returns the typs of unit rating method used.getUnitRatingName(int rating) Returns the letter code of the passed in Unit rating.void
- 
Field Details- 
PRECISIONstatic final int PRECISION- See Also:
 
- 
HALF_EVEN
- 
ONE_HUNDRED
- 
DRAGOON_Fstatic final int DRAGOON_F- See Also:
 
- 
DRAGOON_Dstatic final int DRAGOON_D- See Also:
 
- 
DRAGOON_Cstatic final int DRAGOON_C- See Also:
 
- 
DRAGOON_Bstatic final int DRAGOON_B- See Also:
 
- 
DRAGOON_Astatic final int DRAGOON_A- See Also:
 
- 
DRAGOON_ASTARstatic final int DRAGOON_ASTAR- See Also:
 
 
- 
- 
Method Details- 
reInitializevoid reInitialize()
- 
getUnitRatingint getUnitRating(int score) Returns the static constant representation of the passed in Unit rating.- Parameters:
- score- The total Dragoon's score.
 
- 
getUnitRatingAsIntegerint getUnitRatingAsInteger()Returns the static constant representation of the computed Unit/Dragoon's rating as an integer.
- 
getScoreint getScore()
- 
getModifierint getModifier()
- 
getUnitRatingNameReturns the letter code of the passed in Unit rating.- Parameters:
- rating- The numeric rating to be converted.
 
- 
getUnitRatingString getUnitRating()Calculates the force's Unit rating and returns the appropriate letter code.
- 
getExperienceValueint getExperienceValue()Returns the Unit Rating score for the force's average experience level.
- 
getAverageExperiencemegamek.common.enums.SkillLevel getAverageExperience()Returns the unit's average experience level.
- 
getCommanderValueint getCommanderValue()Returns the Unit Rating score for the force's commander.
- 
getCommanderPerson getCommander()Return's the commander of the force.
- 
getCombatRecordValueint getCombatRecordValue()Returns the Unit Rating score for the force's contract success/failure record.
- 
getSupportPercentBigDecimal getSupportPercent()Returns the percentage of units that are properly supported.
- 
getSupportValueint getSupportValue()Returns the Unit Rating score for the force's ratio of support to combat units.
- 
getTransportPercentBigDecimal getTransportPercent()Returns the percentage of units that can be transported without outside help.
- 
getTransportValueint getTransportValue()Returns the Unit Rating score for the force's ratio of transportation available to transportation needs.
- 
getTechValueint getTechValue()Returns the Unit Rating score for the percentage of combat units greater than L1 tech.
- 
getFinancialValueint getFinancialValue()Returns the Unit Rating score for the force's financial record. If the unit has never been in debt, a value of 0 is returned. If the unit has been in debt, a negative number will be returned.
- 
getDetailsString getDetails()Returns a text description of how the Unit rating was calculated.
- 
getHelpTextString getHelpText()Returns descriptive text that should be displayed in a Help/About dialog to inform users of the means by which the Unit rating is calculated.
- 
getUnitRatingMethodUnitRatingMethod getUnitRatingMethod()Returns the typs of unit rating method used.
 
-