public class Trait extends Object
| Constructor and Description |
|---|
Trait() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory()
Gets the personality model category.
|
List<Trait> |
getChildren()
Gets the characteristic children.
|
String |
getId()
Gets id of the characteristic, globally unique.,
|
String |
getName()
Gets the user-displayable name of the characteristic.
|
double |
getPercentage()
Gets the normalized value of the characteristic, from 0-1.
|
double |
getSamplingError()
Indicates the sampling error of the percentage, based on the
number of words in the input.
|
void |
setCategory(String category)
Sets personality model category.
|
void |
setChildren(List<Trait> children)
Sets the characteristic children.
|
void |
setId(String id)
Sets the id of the characteristic, globally unique.,
|
void |
setName(String name)
Sets the user-displayable name of the characteristic.
|
void |
setPercentage(double percentage)
Sets the normalized value of the characteristic, from 0-1.
|
void |
setSamplingError(double samplingError)
Sets the sampling error of the percentage based on the
number of words in the input.
|
String |
toString() |
public double getSamplingError()
public void setSamplingError(double samplingError)
sampling - error
the new sampling errorpublic String getCategory()
public List<Trait> getChildren()
public String getId()
public String getName()
public double getPercentage()
public void setCategory(String category)
category - the new categorypublic void setChildren(List<Trait> children)
children - the new childrenpublic void setId(String id)
id - the characteristic identifierpublic void setName(String name)
name - the new namepublic void setPercentage(double percentage)
percentage - the new percentage value from 0-1Copyright © 2015. All rights reserved.