[ class tree: Science_Chemistry ] [ index: Science_Chemistry ] [ all elements ]

Class: Science_Chemistry_Macromolecule

Source Location: /Science_Chemistry-1.0.2/Chemistry/Macromolecule.php

Class Overview

Represents a macromolecule, composed of several Science_Chemistry_Molecule objects



  • 1.0



Child classes:

Represents a PDB macromolecule, composed of several Science_Chemistry_Residue_PDB objects

Inherited Variables

Inherited Methods

Class Details

[line 35]
Represents a macromolecule, composed of several Science_Chemistry_Molecule objects

[ Top ]

Class Variables

$name =

[line 43]

Macromolecule's name

Type:   string

[ Top ]

Method Detail

Science_Chemistry_Macromolecule (Constructor)   [line 72]

object Science_Chemistry_Macromolecule Science_Chemistry_Macromolecule( string $name, [optional $molecules = ""])

Constructor for the class, requires a macromolecule name and an optional array of Science_Chemistry_Molecule objects


string   $name   — 
optional   $molecules   —  array $molecules

[ Top ]

addMolecule   [line 107]

boolean addMolecule( object Science_Chemistry_Molecule $mol)

Adds a Science_Chemistry_Molecule object to the list of molecules in the macromolecule


[ Top ]

getMolecules   [line 124]

array getMolecules( )

Returns an array of Science_Chemistry_Molecule objects
  • See: $molecules
  • Access: public

[ Top ]

initMacromolecule   [line 90]

boolean initMacromolecule( array $molecules)

Initializes the array of Science_Chemistry_Molecule objects


array   $molecules   — 

[ Top ]

isMacromolecule   [line 135]

boolean isMacromolecule( object Science_Chemistry_Macromolecule $obj)

Checks if the object is an instance of Science_Chemistry_Macromolecule
  • Access: public


[ Top ]

toCML   [line 167]

string toCML( [optional $title = "macromolecule"], [optional $id = "macromol1"], [ $connect = false])

Returns a CML representation of the molecule Accepts an optional id, and a flag to signal printing of the connection table
  • Access: public


optional   $title   —  string $id
optional   $id   —  boolean $connect
   $connect   — 

[ Top ]

toString   [line 150]

string toString( )

Returns a string representation of the macromolecule as a multiple molecule XYZ-format file
  • Access: public

[ Top ]

Documentation generated on Thu, 10 Dec 2015 05:30:55 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.