crystals
Class Cbcc

java.lang.Object
  extended by crystals.AbstractCrystal
      extended by crystals.Cbcc

public class Cbcc
extends AbstractCrystal

Java Class containing all necessary operations for the Cubic Body Centered Bravais lattice.


Field Summary
 
Fields inherited from class crystals.AbstractCrystal
bMessagebox, darkgreen, ledges, lvertices, numberofledges, numberoflvertices
 
Constructor Summary
Cbcc()
           
 
Method Summary
 void calculate(Parameter param)
          Calculates the lattice points.
 double[] getCrystaldefault()
          Returns the default lattice parameter
 java.lang.String getCrystalID()
          Returns a short name for this lattice.
 GuiModel getguiModel()
          Initializes and returns a guiModel appropriate for the lattice.
 java.lang.String getName()
          Returns the Name of the Lattice.
 java.lang.String getThumbnailID()
          Every lattice has its own icon
 
Methods inherited from class crystals.AbstractCrystal
addBase, addBasis, addEdge, addEdge, addEdge, addEdge, addPoint, addPoint, addPoint, addPoint, addSymmetricEdge, addSymmetricEdge, addSymmetricEdge, addSymmetricPoint, getLabeledEdges, getLabeledVertices, precalculating
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cbcc

public Cbcc()
Method Detail

getName

public java.lang.String getName()
Description copied from class: AbstractCrystal
Returns the Name of the Lattice. Like it is used in the choice box.

Specified by:
getName in class AbstractCrystal
Returns:
Long and detailed name of this lattice.

getCrystalID

public java.lang.String getCrystalID()
Description copied from class: AbstractCrystal
Returns a short name for this lattice. Like it is used in ParamTest to ask for the lattice. The same name is used as parameter for the applet.

Specified by:
getCrystalID in class AbstractCrystal
Returns:
Short name of this lattice.

getguiModel

public GuiModel getguiModel()
Description copied from class: AbstractCrystal
Initializes and returns a guiModel appropriate for the lattice.

Specified by:
getguiModel in class AbstractCrystal

calculate

public void calculate(Parameter param)
Description copied from class: AbstractCrystal
Calculates the lattice points. Uses param to calculate the appropriate lattice points in the reciprocal lattice space. The results are stored in the public Arrays AbstractCrystal.lvertices and AbstractCrystal.ledges. Every subclass should do this differently.

Specified by:
calculate in class AbstractCrystal
Parameters:
param - All necessery parameters, especially the lattice constants.

getCrystaldefault

public double[] getCrystaldefault()
Description copied from class: AbstractCrystal
Returns the default lattice parameter

Specified by:
getCrystaldefault in class AbstractCrystal
Returns:
a,b,c, alpha,beta,gamma in an array

getThumbnailID

public java.lang.String getThumbnailID()
Description copied from class: AbstractCrystal
Every lattice has its own icon

Specified by:
getThumbnailID in class AbstractCrystal
Returns:
String of the filename