de.zimek.proteinfeatures.attributeAssigner
Class AbstractGroupAssigner

java.lang.Object
  extended byde.zimek.proteinfeatures.attributeAssigner.AbstractArffRealAttributeAssigner
      extended byde.zimek.proteinfeatures.attributeAssigner.AbstractGroupAssigner
All Implemented Interfaces:
ArffAttributeAssigner
Direct Known Subclasses:
AbstractGroupCompositionAssigner, AbstractGroupDistributionAssigner, AbstractGroupTransitionAssigner

public abstract class AbstractGroupAssigner
extends AbstractArffRealAttributeAssigner

Author:
Arthur Zimek

Field Summary
protected  Group group
           
protected  java.lang.String type
           
 
Fields inherited from class de.zimek.proteinfeatures.attributeAssigner.AbstractArffRealAttributeAssigner
WHITESPACE
 
Fields inherited from interface de.zimek.proteinfeatures.attributeAssigner.ArffAttributeAssigner
ATTRIBUTE_MARK
 
Constructor Summary
AbstractGroupAssigner()
           
 
Method Summary
 java.lang.String getAttributeDefinition()
          Provides the attribute-definition in arff-format with an ending newline.
protected  int getGroupIndex(Protein protein, int index)
          Returns the group-index for the given index of the protein, with respect to the group.
 
Methods inherited from class de.zimek.proteinfeatures.attributeAssigner.AbstractArffRealAttributeAssigner
attributes, getAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected java.lang.String type

group

protected Group group
Constructor Detail

AbstractGroupAssigner

public AbstractGroupAssigner()
Method Detail

getGroupIndex

protected int getGroupIndex(Protein protein,
                            int index)
Returns the group-index for the given index of the protein, with respect to the group. If the group is an instance of SS, the group-index with respect to SS is returned, else the group-index with respect to the amino acid at the given index.

Parameters:
protein -
index -
Returns:
int

getAttributeDefinition

public java.lang.String getAttributeDefinition()
Description copied from interface: ArffAttributeAssigner
Provides the attribute-definition in arff-format with an ending newline.

Returns:
String
See Also:
ArffAttributeAssigner.getAttributeDefinition()