public class Trait extends GenericModel
| 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 | getRawSamplingError()Gets the raw sampling error. | 
| Double | getRawScore()Gets the raw score. | 
| 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 | setRawSamplingError(Double rawSamplingError)Sets the raw sampling error. | 
| void | setRawScore(Double rawScore)Sets the raw score. | 
| void | setSamplingError(Double samplingError)Sets the sampling error of the percentage based on the number of words in the input. | 
equals, hashCode, toStringpublic String getCategory()
public List<Trait> getChildren()
public String getId()
public String getName()
public Double getPercentage()
public Double getRawSamplingError()
public Double getRawScore()
public Double getSamplingError()
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-1public void setRawSamplingError(Double rawSamplingError)
rawSamplingError - the new raw sampling errorpublic void setRawScore(Double rawScore)
rawScore - the new raw scorepublic void setSamplingError(Double samplingError)
samplingError - error the new sampling errorCopyright © 2015–2016 IBM Watson. All rights reserved.