cct.modelling
Class AtomTypeDef

java.lang.Object
  extended by cct.modelling.AtomTypeDef
All Implemented Interfaces:
AtomProperties

public class AtomTypeDef
extends java.lang.Object
implements AtomProperties

Title: Molecular Structure Viewer/Editor

Description:

Defines atom type

Copyright: Copyright (c) 2005

Company: ANU


Field Summary
(package private)  java.awt.Color atomColor
           
(package private)  float covalentRadius
           
(package private)  java.lang.String Description
           
protected  int Element
           
protected  int Geometry
           
protected  java.lang.String Name
           
protected  int Valence
           
(package private)  float Weight
           
 
Fields inherited from interface cct.modelling.AtomProperties
GEOMETRY_LINEAR, GEOMETRY_TETRAHEDRAL, GEOMETRY_TRIGONAL
 
Constructor Summary
AtomTypeDef(java.lang.String name, int element, int valence, int geometry)
           
AtomTypeDef(java.lang.String name, java.lang.String element, int valence, int geometry)
           
 
Method Summary
 java.lang.String getName()
          Get name (mnemonic) of atom type
 void Init(java.lang.String name, int element, int valence, int geometry)
           
 void setDescription(java.lang.String descr)
          Sets description for this atom type
 boolean setWeight(float weight)
          Set atomic weight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Name

protected java.lang.String Name

Element

protected int Element

Valence

protected int Valence

Geometry

protected int Geometry

atomColor

java.awt.Color atomColor

Weight

float Weight

covalentRadius

float covalentRadius

Description

java.lang.String Description
Constructor Detail

AtomTypeDef

public AtomTypeDef(java.lang.String name,
                   java.lang.String element,
                   int valence,
                   int geometry)

AtomTypeDef

public AtomTypeDef(java.lang.String name,
                   int element,
                   int valence,
                   int geometry)
Method Detail

Init

public void Init(java.lang.String name,
                 int element,
                 int valence,
                 int geometry)

getName

public java.lang.String getName()
Get name (mnemonic) of atom type

Returns:
String

setWeight

public boolean setWeight(float weight)
Set atomic weight

Parameters:
weight - float
Returns:
boolean "false" if atomic weight was wrong, "true" otherwise

setDescription

public void setDescription(java.lang.String descr)
Sets description for this atom type

Parameters:
descr - String