com.huguesjohnson.jail.jdt
Class Attribute

java.lang.Object
  |
  +--com.huguesjohnson.jail.jdt.Attribute
All Implemented Interfaces:
java.io.Serializable

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

class Attribute

See Also:
Serialized Form

Constructor Summary
Attribute(java.lang.String name)
          constructor sets gain of attribute to default value of 0.0D
Attribute(java.lang.String name, double gain)
          constructor
 
Method Summary
 double getGain()
          retrieves gain of attribute
 java.lang.String getName()
          retrieves name of attribute
 void setGain(double gain)
          sets gain of attribute
 void setName(java.lang.String name)
          sets name of attribute
 java.lang.String toString()
          returns a string representation of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(java.lang.String name,
                 double gain)
constructor
Parameters:
name - name of the attribute
gain - gain of the attribute

Attribute

public Attribute(java.lang.String name)
constructor sets gain of attribute to default value of 0.0D
Parameters:
name - name of attribute
Method Detail

getName

public java.lang.String getName()
retrieves name of attribute
Returns:
name

getGain

public double getGain()
retrieves gain of attribute
Returns:
gain

setName

public void setName(java.lang.String name)
sets name of attribute
Parameters:
name - new name of attribute

setGain

public void setGain(double gain)
sets gain of attribute
Parameters:
gain - new gain of attribute

toString

public java.lang.String toString()
returns a string representation of the object
Overrides:
toString in class java.lang.Object
Returns:
string representation of the object