GeneThello Home

net.sf.genethello.brain
Class Feature

java.lang.Object
  extended by net.sf.genethello.brain.Feature

public class Feature
extends java.lang.Object

A feature of evaluation function, representing one of: flips, discs, mobility, corners, xsquares, and pattern.

Author:
praz

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

id

protected int id
Feature identification number.


value

protected int value
Value of feature.


min

protected int min
Minimum value of feature.


max

protected int max
Maximum value of feature.

Constructor Detail

Feature

public Feature(int id,
               int value,
               int min,
               int max)
Creates new instance of feature.

Parameters:
id - identification number
value - value of feature
min - minimum value of feature
max - maximum value of feature
Method Detail

getId

public int getId()
Gets the value of id

Returns:
the value of id

setId

public void setId(int id)
Sets the value of id

Parameters:
id - new value of id

getValue

public int getValue()
Gets the value of value

Returns:
the value of value

setValue

public void setValue(int value)
Sets the value of value

Parameters:
value - new value of value

getMin

public int getMin()
Gets the value of min

Returns:
the value of min

setMin

public void setMin(int min)
Sets the value of min

Parameters:
min - new value of min

getMax

public int getMax()
Gets the value of max

Returns:
the value of max

setMax

public void setMax(int max)
Sets the value of max

Parameters:
max - new value of max

GeneThello Home

Get GeneThello: Genetic Othello at SourceForge.net. Fast, secure and Free Open Source software downloads