ProGAL.proteins.beltaStructure.bnb
Class SegmentStructure

java.lang.Object
  extended by ProGAL.proteins.beltaStructure.bnb.SegmentStructure
All Implemented Interfaces:
Branchable

public class SegmentStructure
extends java.lang.Object
implements Branchable


Field Summary
 SecondaryStructure.SSSegment seg
           
 
Constructor Summary
SegmentStructure(int dirs, int rots, SecondaryStructure ss, SecondaryStructure.SSSegment seg, AminoAcidChain chain)
          Construct a segment structure for the specified segment with dirs directions, rots rotations
 
Method Summary
 java.util.List<java.lang.Integer> definedResidues()
           
 int getStructures()
          Return the number of structures in this segment.
static void main(java.lang.String[] args)
           
 void setStructure(int s)
          Sets the structure of this segment.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

seg

public final SecondaryStructure.SSSegment seg
Constructor Detail

SegmentStructure

public SegmentStructure(int dirs,
                        int rots,
                        SecondaryStructure ss,
                        SecondaryStructure.SSSegment seg,
                        AminoAcidChain chain)
Construct a segment structure for the specified segment with dirs directions, rots rotations

Parameters:
dirs -
rots -
ss - Secondary structure of entire chain
seg - Segment to determine the structure of
chain - The entire amino acid chain. Kept because the setStructure updates the chain atoms within the bounds of the segment.
Method Detail

definedResidues

public java.util.List<java.lang.Integer> definedResidues()
Specified by:
definedResidues in interface Branchable

setStructure

public void setStructure(int s)
Sets the structure of this segment. If backward==false this method places all calphas and cbetas from (including) seg.start to (not including) seg.end. If backwards

Specified by:
setStructure in interface Branchable

getStructures

public int getStructures()
Return the number of structures in this segment. Typically the number of rotations times the number of directions.

Specified by:
getStructures in interface Branchable

main

public static void main(java.lang.String[] args)