org.encog.app.analyst.script
Class AnalystClassItem
- java.lang.Object
-
- org.encog.app.analyst.script.AnalystClassItem
-
- All Implemented Interfaces:
- java.lang.Comparable<AnalystClassItem>
public class AnalystClassItem extends java.lang.Object implements java.lang.Comparable<AnalystClassItem>
Holds a class item for the script. Some columns in a CSV are classes. This object holds the possible class types.
-
-
Constructor Summary
Constructors Constructor and Description AnalystClassItem(java.lang.String theCode, java.lang.String theName, int theCount)Construct a class item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompareTo(AnalystClassItem o)java.lang.StringgetCode()intgetCount()java.lang.StringgetName()voidincreaseCount()Increase the count.voidsetCode(java.lang.String theCode)voidsetName(java.lang.String theName)java.lang.StringtoString()
-
-
-
Constructor Detail
-
AnalystClassItem
public AnalystClassItem(java.lang.String theCode, java.lang.String theName, int theCount)Construct a class item.- Parameters:
theCode- The code, this is how it is in the CSV.theName- The name, a more meaningful name than code. Can be the same as code, if desired.theCount- The count.
-
-
Method Detail
-
compareTo
public int compareTo(AnalystClassItem o)
- Specified by:
compareToin interfacejava.lang.Comparable<AnalystClassItem>
-
getCode
public java.lang.String getCode()
- Returns:
- the code
-
getCount
public int getCount()
- Returns:
- The count.
-
getName
public java.lang.String getName()
- Returns:
- the name
-
increaseCount
public void increaseCount()
Increase the count.
-
setCode
public void setCode(java.lang.String theCode)
- Parameters:
theCode- the code to set
-
setName
public void setName(java.lang.String theName)
- Parameters:
theName- the name to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG