Package pl.poznan.put.rna
Class InteractionType
- java.lang.Object
-
- pl.poznan.put.rna.InteractionType
-
- All Implemented Interfaces:
Serializable,Comparable<InteractionType>
- Direct Known Subclasses:
ImmutableInteractionType
@Immutable public abstract class InteractionType extends Object implements Serializable, Comparable<InteractionType>
A type of interaction between two nucleotides.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static InteractionTypeBASE_BASEA base-base interaction, base pair.static InteractionTypeBASE_BASE_1HA weak base-base interaction, based on a single hydrogen bond only.static InteractionTypeBASE_PHOSPHATEA base-phosphate interaction (seeBPh).static InteractionTypeBASE_RIBOSEA base-ribose interaction (seeBR).static InteractionTypeOTHERAnother interaction type.static InteractionTypeSTACKINGA stacking interaction.static InteractionTypeSUGAR_SUGARA ribose-ribose interaction.
-
Constructor Summary
Constructors Constructor Description InteractionType()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(InteractionType t)Stringdescription()InteractionTypeinvert()abstract booleanisPairing()Checks if this interaction is a basis for base pairing.abstract NucleotideComponentTypeleft()abstract NucleotideComponentTyperight()StringtoString()
-
-
-
Field Detail
-
BASE_BASE
public static final InteractionType BASE_BASE
A base-base interaction, base pair.
-
BASE_BASE_1H
public static final InteractionType BASE_BASE_1H
A weak base-base interaction, based on a single hydrogen bond only.
-
BASE_PHOSPHATE
public static final InteractionType BASE_PHOSPHATE
A base-phosphate interaction (seeBPh).
-
BASE_RIBOSE
public static final InteractionType BASE_RIBOSE
A base-ribose interaction (seeBR).
-
SUGAR_SUGAR
public static final InteractionType SUGAR_SUGAR
A ribose-ribose interaction.
-
STACKING
public static final InteractionType STACKING
A stacking interaction.
-
OTHER
public static final InteractionType OTHER
Another interaction type.
-
-
Method Detail
-
left
public abstract NucleotideComponentType left()
- Returns:
- The first interacting partner.
-
right
public abstract NucleotideComponentType right()
- Returns:
- The second interacting partner.
-
isPairing
public abstract boolean isPairing()
Checks if this interaction is a basis for base pairing.- Returns:
- True for
BASE_BASE, false for all other types.
-
description
@Default public String description()
- Returns:
- The description of this interaction type.
-
compareTo
public final int compareTo(InteractionType t)
- Specified by:
compareToin interfaceComparable<InteractionType>
-
invert
public final InteractionType invert()
- Returns:
- An instance where first and second interacting partners are inverted.
-
-