Initializing help system before first use

XPRSobject

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

      Constructor and Description
      XPRSobject() 
    • Method Summary

      Modifier and Type Method and Description
      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 addMsgHandlerListener(XPRSmsgHandlerListener listener)
      Set the listener for the MsgHandlercallback.
      abstract void addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data)
      Set the listener for the MsgHandlercallback.
      abstract void destroy()
      Deallocates resources associated with an XPRSobject
      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.
      abstract void removeMsgHandlerListener()
      Remove the listener for the MsgHandlercallback.
      • 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.
      • destroy

        public abstract void destroy()
                              throws XPRSexception
        Deallocates resources associated with an XPRSobject
        Throws:
        XPRSexception
      • getLastError

        public abstract java.lang.String getLastError()
                                               throws XPRSexception
        Returns last error message that occurred on this XPRSobject
        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
      • removeMsgHandlerListener

        public abstract void removeMsgHandlerListener()
                                               throws XPRSexception
        Remove the listener for the MsgHandlercallback.
        Throws:
        XPRSexception
      • addMsgHandlerListener

        public void addMsgHandlerListener(java.io.Writer w)
                                   throws XPRSexception
        Allow messages to be redirected to a Writer
        Throws:
        XPRSexception
      • addMsgHandlerListener

        public void addMsgHandlerListener(java.io.OutputStream os)
                                   throws XPRSexception
        Allow messages to be redirected to an OutputStream
        Throws:
        XPRSexception