IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.ft.value
Class PropertyWeight

java.lang.Object   extended by com.rational.test.ft.value.PropertyWeight

public class PropertyWeight
extends java.lang.Object

Determines how important one property is compared to the other properties in a set. The weight associated with the property is an integer value in the range 0 to 100, where 0 implies no importance and 100 implies highest importance. All weight values must be in this range.

Since:
RFT1.0

Constructor Summary
PropertyWeight(int weight)
           
PropertyWeight(int weight, boolean fixed)
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Overloads the core java.lang.Object implementation to compare the weight directly.
 int getWeight()
          Accesses the associated weight value.
 int hashCode()
          Overloads the core java.lang.Object implementation to hash the weight directly.
 boolean isFixedWeight()
          Specifies whether the weight can be updated.
 void setFixedWeight(boolean fixed)
          Specifies that the weight cannot be updated.
 void setWeight(int weight)
          Enables the associated weight to be updated.
 java.lang.String toString()
          Overloads the core java.lang.Object implementation to return a textual representation of the weight.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyWeight

public PropertyWeight(int weight)

PropertyWeight

public PropertyWeight(int weight,                       boolean fixed)
Method Detail

getWeight

public int getWeight()
Accesses the associated weight value.

Since:
RFT1.0

setWeight

public void setWeight(int weight)
Enables the associated weight to be updated.

Since:
RFT1.0

isFixedWeight

public boolean isFixedWeight()
Specifies whether the weight can be updated.

Since:
RFT1.0

setFixedWeight

public void setFixedWeight(boolean fixed)
Specifies that the weight cannot be updated.

Since:
RFT1.0

hashCode

public int hashCode()
Overloads the core java.lang.Object implementation to hash the weight directly.

Overrides:
hashCode in class java.lang.Object
Since:
RFT1.0

equals

public boolean equals(java.lang.Object other)
Overloads the core java.lang.Object implementation to compare the weight directly.

Overrides:
equals in class java.lang.Object
Since:
RFT1.0

toString

public java.lang.String toString()
Overloads the core java.lang.Object implementation to return a textual representation of the weight.

Overrides:
toString in class java.lang.Object
Since:
RFT1.0