Initializing help system before first use

XPRSobject

  • java.lang.Object
    • com.dashoptimization.XPRSobject
    • Constructor Summary

      Constructor Description
      XPRSobject()  
    • Method Summary

      Modifier and Type Method Description
      abstract void addMsgHandlerListener​(XPRSmsgHandlerListener listener)
      Set the listener for the MsgHandlercallback.
      abstract void addMsgHandlerListener​(XPRSmsgHandlerListener listener, java.lang.Object data)
      Set the listener for the MsgHandlercallback.
      void addMsgHandlerListener​(java.io.OutputStream os)
      Allow messages to be redirected to an OutputStream.
      void addMsgHandlerListener​(java.io.Writer w)
      Allow messages to be redirected to a Writer.
      abstract void close()
      Deallocates resources associated with an XPRSobject.
      void destroy()
      Deprecated.
      Use close() instead.
      abstract java.lang.String getLastError()
      Returns last error message that occurred on this XPRSobject
      boolean isDestroyed()
      Returns whether you've called destroyProb on this object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XPRSobject

        public XPRSobject()
    • Method Detail

      • isDestroyed

        public boolean isDestroyed()
        Returns whether you've called destroyProb on this object. Once an object has been destroyed, it can no longer be accessed.
        Returns:
        A boolean value indicating whether this object is destroyed.
      • destroy

        @Deprecated
        public final void destroy()
                           throws XPRSexception
        Deprecated.
        Use close() instead.
        Deallocates resources associated with an XPRSobject
        Throws:
        XPRSexception
      • close

        public abstract void close()
        Deallocates resources associated with an XPRSobject.
        Specified by:
        close in interface  java.lang.AutoCloseable
        Since:
        38
      • getLastError

        public abstract java.lang.String getLastError()
                                               throws XPRSexception
        Returns last error message that occurred on this XPRSobject
        Returns:
        The last error message that occurred on this instance.
        Throws:
        XPRSexception
      • addMsgHandlerListener

        public abstract void addMsgHandlerListener​(XPRSmsgHandlerListener listener)
                                            throws XPRSexception
        Set the listener for the MsgHandlercallback. Note that an object can have at most one MsgHandler listener.
        Parameters:
        listener - The listener to which the event will be dispatched.
        Throws:
        XPRSexception
      • addMsgHandlerListener

        public abstract void addMsgHandlerListener​(XPRSmsgHandlerListener listener,
                                                   java.lang.Object data)
                                            throws XPRSexception
        Set the listener for the MsgHandlercallback. Note that an object can have at most one MsgHandler listener.
        Parameters:
        listener - The listener to which the event will be dispatched.
        data - An additional object which will be passed down to the callback function
        Throws:
        XPRSexception
      • addMsgHandlerListener

        public void addMsgHandlerListener​(java.io.Writer w)
                                   throws XPRSexception
        Allow messages to be redirected to a Writer.
        Parameters:
        w - The writer to which messages are redirected.
        Throws:
        XPRSexception
      • addMsgHandlerListener

        public void addMsgHandlerListener​(java.io.OutputStream os)
                                   throws XPRSexception
        Allow messages to be redirected to an OutputStream.
        Parameters:
        os - The stream to which messages are redirected.
        Throws:
        XPRSexception

© 2001-2025 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.