com.yosokumo.core
Class Predictor

java.lang.Object
  extended by com.yosokumo.core.Predictor

public class Predictor
extends java.lang.Object

A column of values, an independent variable. Other terminology that is sometimes used: An attribute or an input. These are the primary characteristics of a Predictor:


Nested Class Summary
static class Predictor.Level
          Indicates the level of measurement for the feature.
static class Predictor.Status
          Provides a logical delete facility.
static class Predictor.Type
          Describes the quality of the predictor and determines the statistical operations that can be performed on the feature.
 
Field Summary
private  Predictor.Level level
           
private  long name
           
private  Predictor.Status status
           
private  Predictor.Type type
           
 
Constructor Summary
Predictor(long name)
          Initializes a newly created Predictor object with default attributes.
Predictor(long name, Predictor.Status status, Predictor.Type type, Predictor.Level level)
          Initializes a newly created Predictor object with attributes specified by the input parameters.
 
Method Summary
 Predictor.Level getLevel()
          Return the predictor level.
 long getPredictorName()
          Return the predictor name.
 Predictor.Status getStatus()
          Return the predictor status.
 Predictor.Type getType()
          Return the predictor type.
 void setLevel(Predictor.Level L)
          Set the predictor level.
 void setPredictorName(long name)
          Set the predictor name.
 void setStatus(Predictor.Status s)
          Set the predictor status.
 void setType(Predictor.Type t)
          Set the predictor type.
 java.lang.String toString()
          Return a string representation of this Predictor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private long name

status

private Predictor.Status status

type

private Predictor.Type type

level

private Predictor.Level level
Constructor Detail

Predictor

public Predictor(long name)
Initializes a newly created Predictor object with default attributes.

Parameters:
name - the name of the predictor.

Predictor

public Predictor(long name,
                 Predictor.Status status,
                 Predictor.Type type,
                 Predictor.Level level)
Initializes a newly created Predictor object with attributes specified by the input parameters.

Parameters:
name - the name of the predictor.
status - the status of the predictor.
type - the type of the predictor.
level - the level of the predictor.
Method Detail

setPredictorName

public void setPredictorName(long name)
Set the predictor name.

Parameters:
name - the name to assign to this predictor. This is the unique identification of the predictor. It must be positive.

getPredictorName

public long getPredictorName()
Return the predictor name.

Returns:
the name of this predictor, which is the unique identification of the predictor.

setStatus

public void setStatus(Predictor.Status s)
Set the predictor status.

Parameters:
s - the status to assign to this predictor.

getStatus

public Predictor.Status getStatus()
Return the predictor status.

Returns:
the status of this predictor.

setType

public void setType(Predictor.Type t)
Set the predictor type.

Parameters:
t - the type to assign to this predictor.

getType

public Predictor.Type getType()
Return the predictor type.

Returns:
the type of this predictor.

setLevel

public void setLevel(Predictor.Level L)
Set the predictor level.

Parameters:
L - the level to assign to this predictor.

getLevel

public Predictor.Level getLevel()
Return the predictor level.

Returns:
the level of this predictor.

toString

public java.lang.String toString()
Return a string representation of this Predictor.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of this Predictor.