X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=blobdiff_plain;f=src2%2Ffr%2Forsay%2Flri%2Fvarna%2Fmodels%2Ftemplates%2FRNANodeValueTemplateBasePair.java;fp=src2%2Ffr%2Forsay%2Flri%2Fvarna%2Fmodels%2Ftemplates%2FRNANodeValueTemplateBasePair.java;h=99c67b581da5ddfd227eaf72407501233ddc271d;hp=0000000000000000000000000000000000000000;hb=665d2c2f4c1310e6985b93b7c2c8a8eec2fa9086;hpb=0e684f72690bd6532272a39ab6c188a27559fd09 diff --git a/src2/fr/orsay/lri/varna/models/templates/RNANodeValueTemplateBasePair.java b/src2/fr/orsay/lri/varna/models/templates/RNANodeValueTemplateBasePair.java new file mode 100644 index 0000000..99c67b5 --- /dev/null +++ b/src2/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; + } + +}