Class CLEG
java.lang.Object
org.jmol.symmetry.CLEG
A holding class for ClegData and ClegNode, which are called by
org.jmol.modelkit.Modelkit to process CLEG strings.
This code access multiple methods in Jmol, so it is not independently
implemented outside that context. But it enca psulates the essentals of
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classrunning data items for assignSpaceGroup iterationstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckFullSyntax(String[] tokens, SymmetryInterface sym, boolean allow300) Test nodes and transforms for valid syntax.static Stringstatic StringgetCalcType(String token) static intisProbableClegSetting(String name) Determine if the string is of the general form [/] :...,.... static booleanisTransform(String token, boolean checkColonRH) static booleanisTransformOnly(String token) static voidstandardizeTokens(String[] tokens, boolean isEnd)
-
Field Details
-
allow300
public static boolean allow300allows 300, 400, 500, 600 instead of p/ l/ r/ f/ could be turned on; this is for Jmol testing -
HEX_TO_RHOMB
- See Also:
-
RHOMB_TO_HEX
- See Also:
-
-
Constructor Details
-
CLEG
public CLEG()
-
-
Method Details
-
standardizeTokens
-
cleanCleg000
-
isProbableClegSetting
Determine if the string is of the general form [/] :...,.... but not checking for details of the it number or the setting allows optional / prefix where is one of 'p','l','r','f' - Parameters:
name-- Returns:
- position of ":" or -1;
-
checkFullSyntax
Test nodes and transforms for valid syntax. 133:b1 is OK, perhaps, at this point, but 142:0,0,0 is not and P2/m:a,b,c is not and IT numbers must be in the appropriate range- Parameters:
tokens-sym-allow300- allow CLEG extension to 301-317 for plane, 401-480 for layer, 501-575 for rod, 601-607 for frieze- Returns:
- true for OK syntax
-
getCalcType
-
isTransformOnly
-
isTransform
-