|
GeneThello Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.genethello.brain.Feature
public class Feature
A feature of evaluation function, representing one of: flips, discs, mobility, corners, xsquares, and pattern.
| Field Summary | |
|---|---|
protected int |
id
Feature identification number. |
protected int |
max
Maximum value of feature. |
protected int |
min
Minimum value of feature. |
protected int |
value
Value of feature. |
| Constructor Summary | |
|---|---|
Feature(int id,
int value,
int min,
int max)
Creates new instance of feature. |
|
| Method Summary | |
|---|---|
int |
getId()
Gets the value of id |
int |
getMax()
Gets the value of max |
int |
getMin()
Gets the value of min |
int |
getValue()
Gets the value of value |
void |
setId(int id)
Sets the value of id |
void |
setMax(int max)
Sets the value of max |
void |
setMin(int min)
Sets the value of min |
void |
setValue(int value)
Sets the value of value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int id
protected int value
protected int min
protected int max
| Constructor Detail |
|---|
public Feature(int id,
int value,
int min,
int max)
id - identification numbervalue - value of featuremin - minimum value of featuremax - maximum value of feature| Method Detail |
|---|
public int getId()
public void setId(int id)
id - new value of idpublic int getValue()
public void setValue(int value)
value - new value of valuepublic int getMin()
public void setMin(int min)
min - new value of minpublic int getMax()
public void setMax(int max)
max - new value of max
|
GeneThello Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||