starfish.chemistry
Class AngleConstraint

java.lang.Object
  extended by starfish.chemistry.AngleConstraint
All Implemented Interfaces:
Constraint

public class AngleConstraint
extends java.lang.Object
implements Constraint

Author:
brucejohnson

Nested Class Summary
 
Nested classes/interfaces inherited from interface starfish.chemistry.Constraint
Constraint.GenTypes
 
Field Summary
 double angle
           
 DistanceStat disStat
           
 double lower
           
 java.lang.String name
           
 SpatialSet[] spSets
           
 double upper
           
 
Constructor Summary
AngleConstraint(SpatialSet[] spSets)
           
AngleConstraint(java.lang.String name, SpatialSet[] spSets)
           
 
Method Summary
 int getActive()
           
static AngleConstraintSet getActiveSet()
           
 void getElem(tcl.lang.Interp interp, java.lang.String elemName, tcl.lang.TclObject arg)
           
 int getID()
           
static int getSize()
           
 SpatialSet getSpatialSet(int i)
           
 DistanceStat getStat()
           
 double getValue()
           
 double getViol(double angle)
           
 java.lang.String getViolChars(DistanceStat dStat)
           
 boolean isUserActive()
           
static void resetConstraints()
           
static void setActive(AngleConstraintSet noeSet)
           
 void setActive(int state)
           
 java.lang.String toSTARString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spSets

public SpatialSet[] spSets

lower

public double lower

upper

public double upper

angle

public double angle

name

public java.lang.String name

disStat

public DistanceStat disStat
Constructor Detail

AngleConstraint

public AngleConstraint(SpatialSet[] spSets)

AngleConstraint

public AngleConstraint(java.lang.String name,
                       SpatialSet[] spSets)
Method Detail

getSpatialSet

public SpatialSet getSpatialSet(int i)

getID

public int getID()
Specified by:
getID in interface Constraint

getStat

public DistanceStat getStat()
Specified by:
getStat in interface Constraint

getValue

public double getValue()
Specified by:
getValue in interface Constraint

isUserActive

public boolean isUserActive()
Specified by:
isUserActive in interface Constraint

setActive

public static void setActive(AngleConstraintSet noeSet)

setActive

public void setActive(int state)

getActive

public int getActive()

getActiveSet

public static AngleConstraintSet getActiveSet()

getSize

public static int getSize()

resetConstraints

public static void resetConstraints()

getElem

public void getElem(tcl.lang.Interp interp,
                    java.lang.String elemName,
                    tcl.lang.TclObject arg)
             throws tcl.lang.TclException
Throws:
tcl.lang.TclException

getViolChars

public java.lang.String getViolChars(DistanceStat dStat)

getViol

public double getViol(double angle)

toSTARString

public java.lang.String toSTARString()
Specified by:
toSTARString in interface Constraint


Copyright © 2010 One Moon Scientific, Inc. All Rights Reserved.