XPRSobject
- java.lang.Object
-  
  - com.dashoptimization.XPRSobject
 
-  
   - Direct Known Subclasses:
- XPRSbranchobject, XPRSglobalenv, XPRSmipsolenum, XPRSmipsolpool, XPRSnamelist, XPRSprob
 
 
 public abstract class XPRSobject extends java.lang.Object
-  
    
   -  
        Constructor SummaryConstructor and Description XPRSobject()
 -  
        Method SummaryModifier and Type Method and Description voidaddMsgHandlerListener(java.io.OutputStream os)Allow messages to be redirected to an OutputStreamvoidaddMsgHandlerListener(java.io.Writer w)Allow messages to be redirected to a Writerabstract voidaddMsgHandlerListener(XPRSmsgHandlerListener listener)Set the listener for the MsgHandlercallback.abstract voidaddMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data)Set the listener for the MsgHandlercallback.abstract voiddestroy()Deallocates resources associated with an XPRSobjectabstract java.lang.StringgetLastError()Returns last error message that occurred on this XPRSobjectbooleanisDestroyed()Returns whether you've called destroyProb on this object.abstract voidremoveMsgHandlerListener()Remove the listener for the MsgHandlercallback.
 
-  
        
-  
    
    
    
   -  
        Method Detail-  isDestroyedpublic boolean isDestroyed() Returns whether you've called destroyProb on this object. Once an object has been destroyed, it can no longer be accessed.
 -  destroypublic abstract void destroy() throws XPRSexceptionDeallocates resources associated with an XPRSobject- Throws:
- 
         XPRSexception
 
 -  getLastErrorpublic abstract java.lang.String getLastError() throws XPRSexceptionReturns last error message that occurred on this XPRSobject- Throws:
- 
         XPRSexception
 
 -  addMsgHandlerListenerpublic 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
 
 -  addMsgHandlerListenerpublic 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
 
 -  removeMsgHandlerListenerpublic abstract void removeMsgHandlerListener() throws XPRSexceptionRemove the listener for the MsgHandlercallback.- Throws:
- 
         XPRSexception
 
 -  addMsgHandlerListenerpublic void addMsgHandlerListener(java.io.Writer w) throws XPRSexceptionAllow messages to be redirected to a Writer- Throws:
- 
         XPRSexception
 
 -  addMsgHandlerListenerpublic void addMsgHandlerListener(java.io.OutputStream os) throws XPRSexceptionAllow messages to be redirected to an OutputStream- Throws:
- 
         XPRSexception
 
 
-  
 
-  
        
 
