Package org.cip4.jdflib.core
Class JDFElement.EnumXYRelation
java.lang.Object
org.apache.commons.lang.enums.Enum
org.apache.commons.lang.enums.ValuedEnum
org.cip4.jdflib.core.JDFElement.EnumXYRelation
- All Implemented Interfaces:
Serializable,Comparable
- Enclosing class:
- JDFElement
XYRelation Enumeration
XML attributes of type XYRelation define the relationship between two ordered numbers.
gt X>Y
ge X>=Y
eq X==Y
le X<=Y
lt X<Y
ne X!=Y
see JDF Spec (Appendix A.3.4) for latest changes
XML attributes of type XYRelation define the relationship between two ordered numbers.
gt X>Y
ge X>=Y
eq X==Y
le X<=Y
lt X<Y
ne X!=Y
see JDF Spec (Appendix A.3.4) for latest changes
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JDFElement.EnumXYRelationstatic final JDFElement.EnumXYRelationstatic final JDFElement.EnumXYRelationstatic final JDFElement.EnumXYRelationstatic final JDFElement.EnumXYRelationstatic final JDFElement.EnumXYRelation -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluateXY(double x, double y, double nt, double pt) xyRelation - tests if relation x/y matches XYRelation enumeration valuestatic JDFElement.EnumXYRelationgetEnum(int enumValue) static JDFElement.EnumXYRelationstatic Liststatic Mapstatic Iteratoriterator()Methods inherited from class org.apache.commons.lang.enums.ValuedEnum
compareTo, getEnum, getValue, toStringMethods inherited from class org.apache.commons.lang.enums.Enum
equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve
-
Field Details
-
gt
-
ge
-
eq
-
le
-
lt
-
ne
-
-
Method Details
-
getEnum
- Parameters:
enumName- the name of the enum object to return- Returns:
- the enum object if enumName is valid. Otherwise null
-
getEnum
- Parameters:
enumValue- the value of the enum object to return- Returns:
- the enum object if enumName is valid. Otherwise null
-
getEnumMap
- Returns:
- a map of all XYRelation enums
-
getEnumList
- Returns:
- a list of all XYRelation enums
-
iterator
- Returns:
- an iterator over the enum objects
-
evaluateXY
public boolean evaluateXY(double x, double y, double nt, double pt) xyRelation - tests if relation x/y matches XYRelation enumeration value- Parameters:
x- x in XYRelation ( x/y )y- y in XYRelation ( x/y )nt- negative tolerancept- positive tolerance- Returns:
- true, if relation x/y matches specified enumerated value
-