Package schrodinger :: Package application :: Package mcpro :: Module modelsystemwizard :: Class ModelSystem :: Class CtObj
[hide private]
[frames] | no frames]

Class CtObj


This class is created to group together all relevant data about a structure and to provide functions for displaying
the structure on Maestro workspace easily.
This class provides the following public attributes for each of its instances.
   ct          - The CT (a `Structure' object)
   entry_name  - PT entry name
   entry_id    - PT entry ID
   fname       - File name of the structure if it was imported from a file, `None' if it was created on Maestro

Instance Methods [hide private]
 
__init__(self, ct, species_name, fname, title=None)
This constructs the `CtObj', putting the CT into the PT with a proper entry name.
 
destroy(self)
 
show(self, should_show=True)
Shows the CT in Maestro workspace if `should_show' is `True', hides it if `False'.
 
show_only(self, should_show=True)
Shows the CT in Maestro workspace and hides other CTs if `should_show' is `True', hides it (not others) if `False'.
 
write(self, fname)
Writes the CT to a file, whose name is given by `fname'.
 
get_formal_charge(self)
Returns formal charge of object
 
_get_entry(self)
Finds the row in the project table and returns the row, returns None if the row not found.
Class Variables [hide private]
  entry = property(fget= _get_entry, doc= """Readonly property. ...
Class Variable Details [hide private]

entry

Value:
property(fget= _get_entry, doc= """Readonly property. Returns the entr\
y of the CT in the project table""")