|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.octet.util.BuilderKit
A collection of static utility methods for working with RepresentationBuilders.
| Method Summary | |
static AtomProxy |
addAtom(java.lang.String symbol,
RepresentationBuilder builder)
Returns an AtomProxy for an Atom represented by the specified one- or two-
letter atomic symbol. |
static void |
addRadical(AtomProxy atom,
RepresentationBuilder builder)
Adds a single radical center on atom using builder. |
static void |
configureAlkene(AtomProxy left,
AtomProxy topLeft,
AtomProxy bottomLeft,
AtomProxy right,
AtomProxy topRight,
AtomProxy bottomRight,
RepresentationBuilder builder)
Configures the specified AtomProxies in a planar arrangement about an
axis defined by a left and right AtomProxy. |
static void |
configureTetrahedron(AtomProxy center,
AtomProxy back,
AtomProxy first,
AtomProxy second,
AtomProxy third,
RepresentationBuilder builder)
Configures the specified AtomProxies in a tetrahedral arrangement about a central
AtomProxy using Builder. |
static void |
connectDouble(AtomProxy source,
AtomProxy target,
RepresentationBuilder builder)
Connects source with target using a localized double bond. |
static void |
connectMultiple(AtomProxy source,
AtomProxy target,
int bondOrder,
RepresentationBuilder builder)
Connects source with target using a localized multiple bond
of order order. |
static void |
connectSingle(AtomProxy source,
AtomProxy target,
RepresentationBuilder builder)
Connects source with target using a localized single bond. |
static void |
connectTriple(AtomProxy source,
AtomProxy target,
RepresentationBuilder builder)
Connects source with target using a localized triple bond. |
static void |
shareElectrons(AtomProxy atom,
BondingSystemProxy system,
int electronCount,
RepresentationBuilder builder)
Removes electronCount electrons from atom
and places them in system. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void connectSingle(AtomProxy source,
AtomProxy target,
RepresentationBuilder builder)
source with target using a localized single bond.
This operation creates a two-center, two-electron BondingSystem between
source and target. One electron is obtained from source
and the other obtained from target.
source - proxy to the source atomtarget - proxy to the target atom
NoSuchProxyExcpetion - if source or target
are not found
public static void connectDouble(AtomProxy source,
AtomProxy target,
RepresentationBuilder builder)
source with target using a localized double bond.
This operation creates a two-center, four-electron BondingSystem between
source and target. Two electrons are obtained from source
and the other two are obtained from target.
source - proxy to the source atomtarget - proxy to the target atom
NoSuchProxyExcpetion - if source or target
are not found
public static void connectTriple(AtomProxy source,
AtomProxy target,
RepresentationBuilder builder)
source with target using a localized triple bond.
This operation creates a two-center, six-electron BondingSystem between
source and target. Three electrons are obtained from
source and the other three are obtained from target.
source - proxy to the source atomtarget - proxy to the target atom
NoSuchProxyExcpetion - if source or target
are not found
public static void connectMultiple(AtomProxy source,
AtomProxy target,
int bondOrder,
RepresentationBuilder builder)
source with target using a localized multiple bond
of order order. bondOrder electrons are obtained from
source and target.
source - the source Atomtarget - the target AtombondOrder - the bond orderbuilder - the RepresentationBuilder
java.lang.IllegalArgumentException - if bondOrder is not 1, 2, or 3.
public static void shareElectrons(AtomProxy atom,
BondingSystemProxy system,
int electronCount,
RepresentationBuilder builder)
electronCount electrons from atom
and places them in system. Negative values of
electronCount reverse the direction of electron transfer.
atom - the proxy for the atom from which electrons will be takensystem - the proxy for the BondingSystem that will accept electronselectronCount - the number of electrons to transfer; positive values
move electrons from atom to system - negative values
move electrons from system to atom
NoSuchProxyExcpetion - if atom or system
are not found in builder
public static void addRadical(AtomProxy atom,
RepresentationBuilder builder)
atom using builder. The electron
is placed in a new, singly-occupied Orbital.
atom - the proxy for the Atom at which to add the radical centerbuilder - the RepresentationBuilder
public static AtomProxy addAtom(java.lang.String symbol,
RepresentationBuilder builder)
AtomProxy for an Atom represented by the specified one- or two-
letter atomic symbol.
symbol - the atomic symbol of the atombuilder - the RepresentationBuilder
java.lang.IllegalArgumentException - if symbol is unrecognized
public static void configureTetrahedron(AtomProxy center,
AtomProxy back,
AtomProxy first,
AtomProxy second,
AtomProxy third,
RepresentationBuilder builder)
Configures the specified AtomProxies in a tetrahedral arrangement about a central
AtomProxy using Builder. Nomenclature derives from the verticies of
a tetrahedron with one vertex pointed away from a viewer. One vertex, represented by center is
at the center of the tetrahedron. One vertex, repesented by back points
away from the viewer. The remaining verticies are arranged in clockwise orientation
about the center-back axis, with first represented by
first, and so on.
center may not be null, but any of the other AtomProxies may be.
center - the central AtomProxy - may not be nullback - the AtomProxy pointing away from the viewer - may be nullfirst - the first AtomProxy when traced clockwise - may be nullsecond - the second AtomProxy when traced clockwise - may be nullthird - the third AtomProxy when traced clockwise - may be nullbuilder - the RepresentationBuilder
java.lang.NullPointerException - if center is null
public static void configureAlkene(AtomProxy left,
AtomProxy topLeft,
AtomProxy bottomLeft,
AtomProxy right,
AtomProxy topRight,
AtomProxy bottomRight,
RepresentationBuilder builder)
AtomProxies in a planar arrangement about an
axis defined by a left and right AtomProxy. Four quadrants,
topLeft, bottomLeft, topRight, and bottomRight
are defined by the neighbors of the left and right AtomProxy.
left - the left atomtopLeft - the top left atom, a neighbor of leftbottomLeft - the bottom left atom, a neighbor of leftright - the right atom, a neighbor of lefttopRight - the top right atom, a neighbor of rightbottomRight - the bottom right atom, a neighbor of rightbuilder - the RepresentationBuilder
java.lang.NullPointerException - of either left or right are
null
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||