// $Id: OctreeAtomItem.java,v 1.1 2006/05/20 17:02:03 Sasha Buzko Exp $ // // Copyright (c) 2000-2003 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: OctreeAtomItem.java,v $ // Revision 1.1 2006/05/20 17:02:03 Sasha Buzko // Updated version // // Revision 1.1 2006/04/30 20:13:59 Sasha Buzko // New version of the app // // Revision 1.1 2006/04/15 19:42:26 Sasha Buzko // Initial commit // // Revision 1.1 2005/11/13 04:35:05 Administrator // *** empty log message *** // // Revision 1.1 2003/07/11 18:17:53 moreland // Modifed Apostol's Octree classes to genate Bonds from the BondFactory // and in turn the StructureMap class. // // Revision 1.2 2003/06/24 22:19:47 moreland // New object-oriented inferface for Octree data items. // package edu.sdsc.mbt.util; import edu.sdsc.mbt.*; /** * OctreeAtomItem class. * * @author John Moreland */ public class OctreeAtomItem implements OctreeDataItem { private Atom atom = null; private int index = -1; /** * Construct an OctreeAtomItem from an Atom object. */ public OctreeAtomItem( Atom atom, int index ) { this.atom = atom; this.index = index; } /** * Return the coordinate of the Atom. */ public double[] getCoordinate( ) { return atom.coordinate; } /** * Return the index associated with this data item. */ public int getIndex( ) { return index; } /** * Return the Atom associated with this data item. */ public Atom getAtom( ) { return atom; } }