XPRMNativeType
- java.lang.Object
-
- com.dashoptimization.XPRMNativeType
-
- All Implemented Interfaces:
- XPRMIdentifier, XPRMTyped
public class XPRMNativeType extends java.lang.ObjectA native type (published by a module).
-
-
Field Summary
-
Fields inherited from interface com.dashoptimization.XPRMTyped
GRP_DYN, GRP_GEN, MSK_FIN, MSK_GRP, MSK_STR, MSK_TYP, STR_ARRAY, STR_CONST, STR_LIST, STR_MEM, STR_NTYP, STR_PROB, STR_PROC, STR_REC, STR_REF, STR_SET, STR_UTYP, TYP_BOOL, TYP_EXTN, TYP_INT, TYP_LINCTR, TYP_MPVAR, TYP_NOT, TYP_REAL, TYP_STRING
-
-
Method Summary
Modifier and Type Method and Description intgetFlag()Get the flag property of the type.java.lang.StringgetName()Get the identifier name.intgetStructCode()Structure code.java.lang.StringgetStructName()String representation of structure.intgetTypeCode()Type code.java.lang.StringgetTypeName()String representation of type.booleanhasAppend()Check whether the 'copy' operator supports 'append'.booleanhasCompare()Check whether the type publishes a 'compare' operator.booleanhasCopy()Check whether the type publishes a 'copy' operator.booleanhasCreate()Check whether the type publishes a default constructor.booleanhasDelete()Check whether the type publishes a destructor.booleanhasFromString()Check whether the type publishes a 'fromstring' initialiser.booleanhasPRTBL()Check whether 'tostring' function can be called after execution.booleanhasRefCount()Check whether the type supports reference counting.booleanhasResetOnly()Check whether the type only supports 'reset'.booleanhasToString()Check whether the type publishes a 'tostring' converter.booleanisProblem()Check whether the type is a problem.java.lang.StringtoString()Name of the type.
-
-
-
Method Detail
-
getFlag
public int getFlag()
Get the flag property of the type. This flag is the bit encoded version of all the properties of the type. These properties may also be retrieved usinghas*methods of this class.- Returns:
- Bit encoded version of the type properties
-
hasCreate
public boolean hasCreate()
Check whether the type publishes a default constructor.- Returns:
-
trueif the 'create' function is available for this type
-
hasDelete
public boolean hasDelete()
Check whether the type publishes a destructor.- Returns:
-
trueif the 'delete' function is available for this type
-
hasRefCount
public boolean hasRefCount()
Check whether the type supports reference counting.- Returns:
-
trueif both 'create' and 'delete' functions are available and support reference counting
-
hasToString
public boolean hasToString()
Check whether the type publishes a 'tostring' converter.- Returns:
-
trueif the 'tostring' function is available for this type
-
hasFromString
public boolean hasFromString()
Check whether the type publishes a 'fromstring' initialiser.- Returns:
-
trueif the 'fromstring' function is available for this type
-
hasResetOnly
public boolean hasResetOnly()
Check whether the type only supports 'reset'.- Returns:
-
trueif only the operation 'reset' is supported by the 'copy' operator
-
hasCopy
public boolean hasCopy()
Check whether the type publishes a 'copy' operator.- Returns:
-
trueif the 'copy' function is available for this type
-
hasAppend
public boolean hasAppend()
Check whether the 'copy' operator supports 'append'.- Returns:
-
trueif the 'copy' function of this type supports 'append'
-
hasCompare
public boolean hasCompare()
Check whether the type publishes a 'compare' operator.- Returns:
-
trueif the 'compare' function is available for this type
-
hasPRTBL
public boolean hasPRTBL()
Check whether 'tostring' function can be called after execution.- Returns:
-
trueif 'tostring' function can be called after execution
-
isProblem
public boolean isProblem()
Check whether the type is a problem.- Returns:
-
trueif the type is a problem
-
toString
public java.lang.String toString()
Name of the type.- Overrides:
-
toStringin classjava.lang.Object - Returns:
- Name of the type as a string
-
getTypeName
public java.lang.String getTypeName()
Description copied from interface:XPRMTypedString representation of type.- Specified by:
-
getTypeNamein interfaceXPRMTyped - Returns:
- Type name
-
getStructCode
public int getStructCode()
Description copied from interface:XPRMTypedStructure code. The code is one of theSTR_*values.- Returns:
- Encoded structure
-
getStructName
public java.lang.String getStructName()
Description copied from interface:XPRMTypedString representation of structure.- Returns:
- Structure name
-
getTypeCode
public final int getTypeCode()
Description copied from interface:XPRMTypedType code. The code is one of theTYP_*values.- Specified by:
-
getTypeCodein interfaceXPRMTyped - Returns:
- Encoded type
-
getName
public java.lang.String getName()
Description copied from interface:XPRMIdentifierGet the identifier name.- Specified by:
-
getNamein interfaceXPRMIdentifier - Returns:
- The identifier name
-
-
© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
