public class PairSiteAttributeGenerator extends SingleSiteAttributeGenerator
If there is only one site in a group, the mean elemental property of atoms on that site is used to describe it. If there are multiple sites in a group, then the maximum, mean, and minimum of that property is used to describe the site. The difference between all descriptions of each site group are used to compute attributes. Both the absolute value of the difference and the magnitude of the difference are generated.
Example: For a material with stoichiometry (AA')B2 there are two
groups of sites: (1) The group including the A and A' sites, and (2) the B site.
This class will generate 3 attributes. B-min(AA'), B-mean(AA'), and B-max(AA')
Usage: *No options*
PrototypeDataset
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected PrototypeSiteInformation |
SiteInfo
Information of this particular prototype
|
ElementalProperties, MultipleSites, SingleSites
Constructor and Description |
---|
PairSiteAttributeGenerator() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.String> |
generateAttributeNames(PrototypeSiteInformation siteInfo)
Generate names of attributes
|
protected void |
generateAttributes(PrototypeSiteInformation siteInfo,
PrototypeEntry entry,
PrototypeDataset data,
double[] attrs)
Compute attributes for a single entry
|
java.lang.String |
printDescription(boolean htmlFormat)
Print out description of attributes.
|
addAttributes, printElementalProperties, printUsage, setOptions
runCommand
protected PrototypeSiteInformation SiteInfo
protected java.util.List<java.lang.String> generateAttributeNames(PrototypeSiteInformation siteInfo)
SingleSiteAttributeGenerator
generateAttributeNames
in class SingleSiteAttributeGenerator
siteInfo
- Information about sites in this prototype structureprotected void generateAttributes(PrototypeSiteInformation siteInfo, PrototypeEntry entry, PrototypeDataset data, double[] attrs) throws java.lang.Exception
SingleSiteAttributeGenerator
generateAttributes
in class SingleSiteAttributeGenerator
siteInfo
- Information each site in this protoypeentry
- Entry being computeddata
- Dataset (link to property lookup tables)attrs
- [out] Temporary storage for attributes (to avoid recreating N double[] arrays)java.lang.Exception
public java.lang.String printDescription(boolean htmlFormat)
BaseAttributeGenerator
Implementation Notes
Format should look like
[Full Name of generator]: (Number of attributes) Text description of what these attributes are
For HTML format, omit the ":".
printDescription
in class SingleSiteAttributeGenerator
htmlFormat
- Whether to print in HTML format