XPRSglobalenv
- java.lang.Object
-  
  - com.dashoptimization.XPRSobject
-  
    - com.dashoptimization.XPRSglobalenv
 
 
-  
   
 
 public class XPRSglobalenv extends XPRSobject 
-  
    
   -  
        Method SummaryModifier and Type Method and Description voidaddMsgHandlerListener(XPRSmsgHandlerListener listener)Add a listener for the MsgHandlercallback.voidaddMsgHandlerListener(XPRSmsgHandlerListener listener, int priority)Add the listener for the MsgHandlercallback.voidaddMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data)Add the listener for the MsgHandlercallback.voidaddMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data, int priority)Add the listener for the MsgHandlercallback.static booleanbeginLicensing()voiddestroy()The Global Environment is destroyed by XPRS.free() so this destroy function does nothingstatic voidendLicensing()voidfeatureQuery(java.lang.String FeatureName, IntHolder FeatureStatus)java.lang.StringgetBanner()voidgetBanner(StringHolder banner)booleangetCheckedMode()voidgetCheckedMode(BoolHolder r_checked_mode)intgetDaysLeft()voidgetDaysLeft(IntHolder daysleft)voidgetDebugMode(IntHolder ifDebugMode)java.lang.StringgetLastError()Returns last error message that occurred on this XPRSobjectjava.lang.StringgetLastError(IntHolder iMsgCode)voidgetSafeMode(IntHolder ifSafeMode)static java.lang.StringgetVersion()static voidgetVersion(StringHolder version)static intlicense(IntHolder _i1)static intlicense(IntHolder _i1, StringHolder _c1)voidremoveMsgHandlerListener()Removes all MsgHandler listeners from the object.voidremoveMsgHandlerListener(XPRSmsgHandlerListener listener)Removes the given MsgHandler listener from the object.voidremoveMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data)Removes the given MsgHandler listener with the given data value from the object.voidremoveMsgHandlerListeners()Remove all listeners for the MsgHandler callbackvoidsetArchConsistency(int ifArchConsistent)voidsetCheckedMode(boolean checked_mode)voidsetDebugMode(int ifDebugMode)voidsetSafeMode(int ifSafeMode)-  
          Methods inherited from class com.dashoptimization.XPRSobjectaddMsgHandlerListener, addMsgHandlerListener, isDestroyed
 
-  
          
 
-  
        
-  
    
   -  
        Method Detail-  destroypublic void destroy() throws XPRSexceptionThe Global Environment is destroyed by XPRS.free() so this destroy function does nothing- Specified by:
- 
         destroyin classXPRSobject
- Throws:
- 
         XPRSexception
 
 -  licensepublic static int license(IntHolder _i1, StringHolder _c1) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  licensepublic static int license(IntHolder _i1) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  beginLicensingpublic static boolean beginLicensing() throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  endLicensingpublic static void endLicensing() throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  setCheckedModepublic void setCheckedMode(boolean checked_mode) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getCheckedModepublic void getCheckedMode(BoolHolder r_checked_mode) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  getCheckedModepublic boolean getCheckedMode() throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getBannerpublic void getBanner(StringHolder banner) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  getBannerpublic java.lang.String getBanner() throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getVersionpublic static void getVersion(StringHolder version) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  getVersionpublic static java.lang.String getVersion() throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getDaysLeftpublic void getDaysLeft(IntHolder daysleft) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  getDaysLeftpublic int getDaysLeft() throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  featureQuerypublic void featureQuery(java.lang.String FeatureName, IntHolder FeatureStatus) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  setArchConsistencypublic void setArchConsistency(int ifArchConsistent) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  setSafeModepublic void setSafeMode(int ifSafeMode) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getSafeModepublic void getSafeMode(IntHolder ifSafeMode) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  setDebugModepublic void setDebugMode(int ifDebugMode) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getDebugModepublic void getDebugMode(IntHolder ifDebugMode) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  getLastErrorpublic java.lang.String getLastError() throws XPRSexceptionDescription copied from class:XPRSobjectReturns last error message that occurred on this XPRSobject- Specified by:
- 
         getLastErrorin classXPRSobject
- Throws:
- 
         XPRSexception
 
 -  getLastErrorpublic java.lang.String getLastError(IntHolder iMsgCode) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  addMsgHandlerListenerpublic void addMsgHandlerListener(XPRSmsgHandlerListener listener) throws XPRSexception Add a listener for the MsgHandlercallback. Note that an object can have multiple MsgHandler listeners.- Specified by:
- 
         addMsgHandlerListenerin classXPRSobject
- Parameters:
- 
         listener- The listener to which the event will be dispatched. (If null, all MsgHandler listeners will be removed.)
- Throws:
- 
         XPRSexception
 
 -  addMsgHandlerListenerpublic void addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data) throws XPRSexception Add the listener for the MsgHandlercallback. Note that an object can have multiple MsgHandler listeners.- Specified by:
- 
         addMsgHandlerListenerin classXPRSobject
- Parameters:
- 
         listener- The listener to which the event will be dispatched. (If null, all MsgHandler listeners will be removed.)
- 
         data- An additional object which will be passed down to the callback function
- Throws:
- 
         XPRSexception
 
 -  addMsgHandlerListenerpublic void addMsgHandlerListener(XPRSmsgHandlerListener listener, int priority) throws XPRSexception Add the listener for the MsgHandlercallback. Note that an object can have multiple MsgHandler listeners.- Parameters:
- 
         listener- The listener to which the event will be dispatched. (If null, all MsgHandler listeners will be removed.)
- 
         priority- Listeners with higher priorities are called first
- Throws:
- 
         XPRSexception
 
 -  addMsgHandlerListenerpublic void addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data, int priority) throws XPRSexception Add the listener for the MsgHandlercallback. Note that an object can have multiple MsgHandler listeners.- Parameters:
- 
         listener- The listener to which the event will be dispatched. (If null, all MsgHandler listeners will be removed.)
- 
         data- An additional object which will be passed down to the callback function
- 
         priority- Listeners with higher priorities are called first
- Throws:
- 
         XPRSexception
 
 -  removeMsgHandlerListenerpublic void removeMsgHandlerListener(XPRSmsgHandlerListener listener) throws XPRSexception Removes the given MsgHandler listener from the object.- Throws:
- 
         XPRSexception
 
 -  removeMsgHandlerListenerpublic void removeMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data) throws XPRSexception Removes the given MsgHandler listener with the given data value from the object.- Throws:
- 
         XPRSexception
 
 -  removeMsgHandlerListenerpublic void removeMsgHandlerListener() throws XPRSexceptionRemoves all MsgHandler listeners from the object. @deprecated as of Xpress 7.1, please useremoveMsgHandlerListener(XPRSmsgHandlerListener)orremoveMsgHandlerListeners()- Specified by:
- 
         removeMsgHandlerListenerin classXPRSobject
- Throws:
- 
         XPRSexception
 
 -  removeMsgHandlerListenerspublic void removeMsgHandlerListeners() throws XPRSexceptionRemove all listeners for the MsgHandler callback- Throws:
- 
         XPRSexception
 
 
-  
 
-  
        
© 2001-2020 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.
 
