de.zimek.proteinfeatures.groups
Class CharGroup

java.lang.Object
  extended byde.zimek.proteinfeatures.groups.CharGroup
All Implemented Interfaces:
Group
Direct Known Subclasses:
AA, SS

public abstract class CharGroup
extends java.lang.Object
implements Group

Author:
Arthur Zimek

Field Summary
protected  char[] group
           
protected  java.lang.String[] groups
           
 
Constructor Summary
CharGroup()
           
 
Method Summary
 java.lang.String[] getGroups()
          Returns a name for each group
protected  void init()
           
 int mapping(char aa)
          Returns the index of the given amino acid in the current group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.zimek.proteinfeatures.groups.Group
getAttributeNamePrefix
 

Field Detail

group

protected char[] group

groups

protected java.lang.String[] groups
Constructor Detail

CharGroup

public CharGroup()
Method Detail

init

protected void init()

mapping

public int mapping(char aa)
Description copied from interface: Group
Returns the index of the given amino acid in the current group.

Specified by:
mapping in interface Group
Parameters:
aa - the aminoacid to return the index of
Returns:
int -1 if the aa is not assigned to a group, the index within the group otherwise
See Also:
Group.mapping(char)

getGroups

public java.lang.String[] getGroups()
Description copied from interface: Group
Returns a name for each group

Specified by:
getGroups in interface Group
Returns:
String[] array of names for each group
See Also:
Group.getGroups()