XPRMParameter
- java.lang.Object
-
- com.dashoptimization.XPRMParameter
-
- All Implemented Interfaces:
- XPRMIdentifier, XPRMTyped
public abstract class XPRMParameter extends java.lang.ObjectA module or model parameter.
-
-
Field Summary
-
Fields inherited from interface com.dashoptimization.XPRMTyped
GRP_DYN, GRP_GEN, MSK_FIX, MSK_GRP, MSK_STR, MSK_TYP, STR_ARRAY, STR_CONST, STR_CSREF, 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 abstract java.lang.StringgetDescription()Get parameter description.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.abstract XPRMValuegetValue()Get current value.abstract XPRMValuegetValue(XPRMModel m)Get current value for the given model.booleanisReadable()Check whether the parameter is readable.booleanisWriteable()Check whether the parameter is writeable.
-
-
-
Method Detail
-
getDescription
public abstract java.lang.String getDescription()
Get parameter description. Module parameters may provide a textual description of their functionality.- Returns:
-
description of the parameter or
nullif no description is available
-
getValue
public abstract XPRMValue getValue()
Get current value. Value of parameters are available only after the model has been executed.- Returns:
- current value of the parameter
-
getValue
public abstract XPRMValue getValue(XPRMModel m)
Get current value for the given model. Module parameters may have a different value for each model.- Parameters:
-
m- model reference - Returns:
- current value of the parameter
-
isWriteable
public boolean isWriteable()
Check whether the parameter is writeable. This method applies only to module parameters (model parameters are all writeable).- Returns:
-
trueif the module parameter can be modified usingsetparam
-
isReadable
public boolean isReadable()
Check whether the parameter is readable. This method applies only to module parameters (model parameters are all readable).- Returns:
-
trueif the module parameter can be read usinggetparam
-
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
-
getTypeName
public java.lang.String getTypeName()
Description copied from interface:XPRMTypedString representation of type.- Specified by:
-
getTypeNamein interfaceXPRMTyped - Returns:
- Type name
-
getName
public java.lang.String getName()
Description copied from interface:XPRMIdentifierGet the identifier name.- Specified by:
-
getNamein interfaceXPRMIdentifier - Returns:
- The identifier name
-
-
