Package edu.uchsc.ccp.nlp.ei.mutation
Class Mutation
- java.lang.Object
-
- edu.uchsc.ccp.nlp.ei.mutation.Mutation
-
- Direct Known Subclasses:
PointMutation
public class Mutation extends Object
Mutation is a base class for different types of mutations. Currently the only Mutation type defined is a PointMutation, but in the future Insertion and Deletion objects may also be defined.- Version:
- 1.0
- Author:
- William A. Baumgartner, Jr.
william.baumgartner@uchsc.edu
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)To be overridden by subclassesprotected voiderror(String message)intgetPosition()Retrieves the mutation sequence positioninthashCode()To be overridden by subclassesStringtoString()To be overridden by subclassesprotected voidupdateMapping(Map<String,String> inputMap, Map<String,String> additionalMappings)protected voidwarn(String message)
-
-
-
Constructor Detail
-
Mutation
public Mutation(int position) throws MutationException- Parameters:
position- -- the sequence position or start position of the mutation- Throws:
MutationException
-
Mutation
public Mutation(String position) throws MutationException
- Parameters:
position- -- the sequence position or start position of the mutation- Throws:
MutationException
-
-
Method Detail
-
getPosition
public int getPosition()
Retrieves the mutation sequence position- Returns:
- an int representing the position or start position of the mutation
-
updateMapping
protected void updateMapping(Map<String,String> inputMap, Map<String,String> additionalMappings)
-
warn
protected void warn(String message)
-
error
protected void error(String message)
-
equals
public boolean equals(Object obj)
To be overridden by subclasses
-
-