// $Id: Strand.java,v 1.2 2007/02/13 19:08:41 Sasha Buzko Exp $ // // Copyright (c) 2000-2002 San Diego Supercomputer Center (SDSC), // a facility operated jointly by the University of California, // San Diego (UCSD) and General Atomics, San Diego, California, USA. // // Users and possessors of this source code are hereby granted a // nonexclusive, royalty-free copyright and design patent license to // use this code in individual software. License is not granted for // commercial resale, in whole or in part, without prior written // permission from SDSC. This source is provided "AS IS" without express // or implied warranty of any kind. // // For further information, please see: http://mbt.sdsc.edu // // History: // $Log: Strand.java,v $ // Revision 1.2 2007/02/13 19:08:41 Sasha Buzko // *** empty log message *** // // Revision 1.1 2006/05/20 17:02:07 Sasha Buzko // Updated version // // Revision 1.1 2006/04/30 20:14:05 Sasha Buzko // New version of the app // // Revision 1.1 2006/04/15 19:42:28 Sasha Buzko // Initial commit // // Revision 1.1 2005/11/13 04:35:26 Administrator // *** empty log message *** // // Revision 1.3 2003/04/23 17:27:59 moreland // Removed StructureComponentID/scid and replaced it with a "structure" field // in the StructureComponent base class. // Changed "getType" method to "getStructureComponentType" to return dynamic // SC type (ie: class name). // // Revision 1.2 2003/02/03 22:33:31 moreland // Updated comments to reflect the toolkit's treatment of "strand" VS "sheet". // // Revision 1.1 2002/12/16 06:24:41 moreland // Changed code to support differentiation of Conformation into Coil, Helix, // Strand, and Turn sub-class types (at Eliot Clingman's suggestion). // // Revision 1.1 2002/10/24 17:54:01 moreland // Provides implementation for the improved Structure API/implementation. // // Revision 1.1.1.1 2002/07/16 18:00:18 moreland // Imported sources // // Revision 1.0 2002/06/10 23:38:39 moreland // package edu.sdsc.mbt; /** * Implements a StructureComponent container for Strand conformation * (secondary structure) data. *

* IMPORTANT!: Each individual SHEET record in most data sources * (eg: PDB and mmCIF files) really represents a single STRAND. And, it * takes multiple SHEET records in order to fully specify a sheet structure. * So, in this toolkit, we treat each individual sheet record as a Strand. *

* See the "PROGRAMMING NOTE" section of the StructureComponent class. *

* @see edu.sdsc.mbt.Structure * @see edu.sdsc.mbt.Conformation * @see edu.sdsc.mbt.StructureComponent *

* @author John L. Moreland */ public class Strand extends Conformation implements java.lang.Cloneable, java.io.Serializable { // // Constructor // /** * Creates a new Strand object. */ public Strand( ) { } /** * This method returns the fully qualified name of this class as a String * object. The String object is guaranteed to be a reference to the * same String object for all instances of a given sub-class. * This is used in a number of places by the toolkit: */ private static String className = null; public static String getClassName() { if ( className == null ) className = ((new Throwable()).getStackTrace())[0].getClassName(); return className; } /** * This method returns the fully qualified name of this class. */ public String getStructureComponentType( ) { return className; } // // StructureComponent methods // /** * Copy all of the field values from the parameter object into "this". */ public void copy( StructureComponent structureComponent ) { super.copy( structureComponent ); // Strand strand = (Strand) structureComponent; // localField = strand.localField; } /** * Clone this object. */ public Object clone( ) throws CloneNotSupportedException { return super.clone( ); } // // Strand fields // // None. private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { out.defaultWriteObject(); } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { in.defaultReadObject(); } public boolean isVisible(){ return true; } }