XPRMExternal
- java.lang.Object
-
- com.dashoptimization.XPRMValue
-
- com.dashoptimization.XPRMReference
-
- com.dashoptimization.XPRMExternal
-
- All Implemented Interfaces:
- XPRMTyped
public class XPRMExternal extends XPRMReference
A reference to an external/native type. The only operation available is the generation of a text representation of the external type.
-
-
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 XPRMExternal
asExternal()
An external type value.int
getTypeCode()
Type code.java.lang.String
getTypeName()
String representation of type.java.lang.String
toString()
Text representation of the value.-
Methods inherited from class com.dashoptimization.XPRMReference
getStructCode, getStructName
-
-
-
-
Method Detail
-
asExternal
public final XPRMExternal asExternal()
Description copied from class:XPRMValue
An external type value. This function is defined if the actual object is of an external type.- Overrides:
-
asExternal
in classXPRMValue
- Returns:
-
The reference as a
XPRMExternal
-
toString
public final java.lang.String toString()
Text representation of the value.- Specified by:
-
toString
in classXPRMReference
- Returns:
- A string representation of the value
-
getTypeCode
public int getTypeCode()
Description copied from interface:XPRMTyped
Type code. The code is one of theTYP_*
values.- Returns:
- Encoded type
-
getTypeName
public java.lang.String getTypeName()
Description copied from interface:XPRMTyped
String representation of type.- Returns:
- Type name
-
-