X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=srcjar%2Ffr%2Forsay%2Flri%2Fvarna%2Fmodels%2Ftemplates%2FRNANodeValueTemplateBasePair.java;fp=srcjar%2Ffr%2Forsay%2Flri%2Fvarna%2Fmodels%2Ftemplates%2FRNANodeValueTemplateBasePair.java;h=99c67b581da5ddfd227eaf72407501233ddc271d;hb=4f30214e8098748469c6a4269ac2ed6c5750e4b0;hp=0000000000000000000000000000000000000000;hpb=9dabc02511e3a334a5749a504f57f69d6c9017bd;p=jalview.git diff --git a/srcjar/fr/orsay/lri/varna/models/templates/RNANodeValueTemplateBasePair.java b/srcjar/fr/orsay/lri/varna/models/templates/RNANodeValueTemplateBasePair.java new file mode 100644 index 0000000..99c67b5 --- /dev/null +++ b/srcjar/fr/orsay/lri/varna/models/templates/RNANodeValueTemplateBasePair.java @@ -0,0 +1,48 @@ +package fr.orsay.lri.varna.models.templates; + +import fr.orsay.lri.varna.models.templates.RNATemplate.RNATemplateHelix; + + +/** + * See RNANodeValueTemplate. + * + * @author Raphael Champeimont + */ +public class RNANodeValueTemplateBasePair extends RNANodeValueTemplate { + + /** + * The original template element this node came from. + */ + private RNATemplateHelix helix; + + /** + * The position (in the 5' to 3' order) + * of this base pair in the original helix. + */ + private int positionInHelix; + + + + public String toGraphvizNodeName() { + return "H[" + positionInHelix + "]"; + } + + + + public RNATemplateHelix getHelix() { + return helix; + } + + public void setHelix(RNATemplateHelix helix) { + this.helix = helix; + } + + public int getPositionInHelix() { + return positionInHelix; + } + + public void setPositionInHelix(int positionInHelix) { + this.positionInHelix = positionInHelix; + } + +}