UIX 2.2.8

oracle.cabo.ui.laf
Class ScoreImpl

java.lang.Object
  |
  +--oracle.cabo.ui.laf.Score
        |
        +--oracle.cabo.ui.laf.ScoreImpl

public class ScoreImpl
extends Score

Implementation of Score which provides storage for all component scores.


Fields inherited from class oracle.cabo.ui.laf.Score
COMPARISON_MATCH, DONT_CARE_MATCH, EXACT_MATCH, NO_MATCH, RANGE_MATCH
 
Constructor Summary
ScoreImpl(int nameScore, int agentTypeScore, int agentApplicationScore, int agentVersionScore, int agentOSScore, int discriminantScore)
          Creates a ScoreImpl object based on the specified component scores.
 
Method Summary
 int getAgentApplicationScore()
          Returns the score for the Agent application.
 int getAgentOSScore()
          Returns the score for the Agent operating system.
 int getAgentTypeScore()
          Returns the score for the Agent type.
 int getAgentVersionScore()
          Returns the score for the Agent version.
 int getDiscriminantScore()
          Returns a discriminant score that is used as a tie-breaker when multiple LookAndFeels produce the same score.
 int getNameScore()
          Returns the score for the look and feel family name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoreImpl

public ScoreImpl(int nameScore,
                 int agentTypeScore,
                 int agentApplicationScore,
                 int agentVersionScore,
                 int agentOSScore,
                 int discriminantScore)
Creates a ScoreImpl object based on the specified component scores.

Each component score must be one of the MATCH constants specified above.

Parameters:
nameScore - The score for the look and feel family name
agentTypeScore - The score for the Agent type
agentApplicationScore - The score for the Agent application
agentVersionScore - The score for the Agent version
agentOSScore - The score for the Agent operating system
discriminantScore - A discriminant score that is used to resolve ties between multiple LookAndFeels.
Method Detail

getNameScore

public int getNameScore()
Returns the score for the look and feel family name.
Overrides:
getNameScore in class Score

getAgentTypeScore

public int getAgentTypeScore()
Returns the score for the Agent type.
Overrides:
getAgentTypeScore in class Score

getAgentApplicationScore

public int getAgentApplicationScore()
Returns the score for the Agent application.
Overrides:
getAgentApplicationScore in class Score

getAgentVersionScore

public int getAgentVersionScore()
Returns the score for the Agent version.
Overrides:
getAgentVersionScore in class Score

getAgentOSScore

public int getAgentOSScore()
Returns the score for the Agent operating system.
Overrides:
getAgentOSScore in class Score

getDiscriminantScore

public int getDiscriminantScore()
Returns a discriminant score that is used as a tie-breaker when multiple LookAndFeels produce the same score.
Overrides:
getDiscriminantScore in class Score

UIX 2.2.8